Image Interpolation with Geometric Contour Stencils
|
A single contour stencil . More...
Data Fields | |
double * | Alpha |
Alpha[k] is the x-component of the stencil in the kth cell. More... | |
double * | Beta |
Beta[k] is the y-component of the stencil in the kth cell. More... | |
double(* | Phi )(double, double, const void *) |
Function pointer to the stencil's distance function . More... | |
double | PhiTrans [2] |
Cosine and sine values of the stencil rotation. More... | |
const void * | PhiParam |
User-specified parameters to pass to stencilentry::Phi. More... | |
int(* | DrawFun )(pen *Pen, const void *Param) |
Function to draw the stencil. More... | |
const void * | DrawParam |
Parameter for DrawFun. More... | |
const float * | DrawColor |
Line drawing color. More... | |
A single contour stencil .
This data structure represents a single contour stencil . It comprises a list of vectors (Alpha[k],Beta[k]) = indicating the value of in the kth cell , a function pointer Phi (and supporting parameters) for the distance function from which the stencil was discretized, and "glyph" data used by DrawContours() for a graphical representation of the stencil.
The cell locations are stored in ssetstruct::Cell.
double* stencilentry::Alpha |
double* stencilentry::Beta |
const float* stencilentry::DrawColor |
int(* stencilentry::DrawFun)(pen *Pen, const void *Param) |
Function to draw the stencil.
This function should draw a representation of the stencil using the graphical commands in pen.h. The given pen object is transformed such that the origin is the center of the stencil and rotated according to stencilentry::PhiTrans.
double(* stencilentry::Phi)(double, double, const void *) |
Function pointer to the stencil's distance function .
Phi is a function with the syntax Phi(x,y,PhiParam), where stencilentry::PhiParam may be used to pass additional parameters to Phi. The function is rotated by stencilentry::PhiTrans.
const void* stencilentry::PhiParam |
User-specified parameters to pass to stencilentry::Phi.
PhiParam is passed as the third argument to Phi. PhiParam should be used to point to a data structure containing whatever additional parameters are needed for evaluating Phi. For example, CurveDist() uses PhiParam to specify the curviness parameter "a" of the parabola.
double stencilentry::PhiTrans[2] |