Image Demosaicking with Contour Stencils
|
Go to the source code of this file.
Macros | |
#define | NUMSTENCILS 8 |
Number of stencils. More... | |
#define | WEIGHT_PI_8_FACTOR 3.847759065022573512 |
The constant 1 + (cot(pi/6) - 1)/sqrt(2) More... | |
Typedefs | |
typedef edgelist | mstencil |
A mosaiced contour stencil. More... | |
Enumerations | |
enum | cfa_color { COLOR_RED, COLOR_GREEN, COLOR_BLUE } |
Functions | |
cfa_color | GetBayerColor (int RedX, int RedY, int x, int y) |
Determine the Bayer CFA color at (x,y) More... | |
double | EdgeLength (edge Edge) |
Compute the length of an edge. More... | |
double | StencilArcSum (mstencil Stencil) |
Compute the arc length sum of a stencil. More... | |
void | FreeStencils (mstencil *Stencils) |
Free an mstencil. More... | |
int | StencilEquals (mstencil A, mstencil B) |
Test if two stencils are equal. More... | |
mstencil * | ConstructMosaicedStencils (double Radius, cfa_color CenterPixel) |
Construct mosaiced stencils. More... | |
void | WriteTVComputation (char **Str, mstencil *Stencils, int j) |
Write TV computation code for an mstencil. More... | |
int | main (int argc, char *argv[]) |
#define NUMSTENCILS 8 |
Number of stencils.
Definition at line 25 of file gen_mstencils.c.
#define WEIGHT_PI_8_FACTOR 3.847759065022573512 |
The constant 1 + (cot(pi/6) - 1)/sqrt(2)
Definition at line 28 of file gen_mstencils.c.
A mosaiced contour stencil.
Definition at line 34 of file gen_mstencils.c.
enum cfa_color |
Enumerator | |
---|---|
COLOR_RED | |
COLOR_GREEN | |
COLOR_BLUE |
Definition at line 31 of file gen_mstencils.c.
Construct mosaiced stencils.
Radius | the radius of the neighborhood |
CenterPixel | cfa_color of the center pixel |
Definition at line 129 of file gen_mstencils.c.
double EdgeLength | ( | edge | Edge | ) |
Compute the length of an edge.
Definition at line 69 of file gen_mstencils.c.
void FreeStencils | ( | mstencil * | Stencils | ) |
Free an mstencil.
Definition at line 91 of file gen_mstencils.c.
cfa_color GetBayerColor | ( | int | RedX, |
int | RedY, | ||
int | x, | ||
int | y | ||
) |
Determine the Bayer CFA color at (x,y)
Definition at line 38 of file gen_mstencils.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
double StencilArcSum | ( | mstencil | Stencil | ) |
Compute the arc length sum of a stencil.
Definition at line 78 of file gen_mstencils.c.
Test if two stencils are equal.
Definition at line 106 of file gen_mstencils.c.
void WriteTVComputation | ( | char ** | Str, |
mstencil * | Stencils, | ||
int | j | ||
) |
Write TV computation code for an mstencil.
Str | the string to which to append |
Stencils | the mstencil array |
j | index of the mstencil to write |
Writes code for computing the TV of Stencils[j].
Definition at line 188 of file gen_mstencils.c.