Herror ::prep_contour_fourier (
const HTuple &Rows,
const HTuple &Columns,
const HTuple &TransMode,
HTuple *ParContour
)
Parameterize the passed contour.
The operator ::prep_contour_fourier parameterizes the
transmitted contour in order to prepare it for the one dimensional
Fourier transformation. Hereby the contour must be available
in closed form. Three parameter functions are available for
the control parameter TransMode:
arc: Parameterization by the radian.
signed_area: Parameterization by the signed area.
unsigned_area: Parameterization by the absolute area.
Please note that in contrast to the signed or
unsigned area the affine mapping of the radian will not
be transformed linearly.
Parameters
Rows (input_control)
|
contour.y-array -> HTuple.long
|
|
Row indices of the contour. |
Columns (input_control)
|
contour.x-array -> HTuple.long
|
|
Column indices of the contour. |
TransMode (input_control)
|
string -> HTuple.char *
|
|
Kind of parameterization. |
|
Default value: 'signed_area' |
|
Suggested values: 'arc', 'unsigned_area', 'signed_area' |
ParContour (output_control)
|
real-array -> HTuple.double *
|
|
Parameterized contour. |
Example
get_region_contour(single,&row,&col);
move_contour_orig(row,col,&trow,&tcol);
prep_contour_fourier(trow,tcol,"unsigned_area",¶m_scale);
fourier_1dim(trow,tcol,param_scale,&frow,&fcol);
Possible Predecessors
::move_contour_orig
Possible Successors
::fourier_1dim
Module
Fourier descriptors
Copyright © 1996-2002 MVTec Software GmbH