HALCON Reference Manual 10.0.2
Table of Contents / Legacy / Fourier Descriptor ClassesClassesClasses | | | Operators

prep_contour_fourierT_prep_contour_fourierprep_contour_fourierPrepContourFourierPrepContourFourier (Operator)

Name

prep_contour_fourierT_prep_contour_fourierprep_contour_fourierPrepContourFourierPrepContourFourier — Parameterize the passed contour.

Warning

prep_contour_fourierprep_contour_fourierprep_contour_fourierPrepContourFourierPrepContourFourier is obsolete and is only provided for reasons of backward compatibility.

Signature

prep_contour_fourier( : : Rows, Columns, TransMode : ParContour)

Herror T_prep_contour_fourier(const Htuple Rows, const Htuple Columns, const Htuple TransMode, Htuple* ParContour)

Herror prep_contour_fourier(const HTuple& Rows, const HTuple& Columns, const HTuple& TransMode, HTuple* ParContour)

void HOperatorSetX.PrepContourFourier(
[in] VARIANT Rows, [in] VARIANT Columns, [in] VARIANT TransMode, [out] VARIANT* ParContour)

VARIANT HMiscX.PrepContourFourier(
[in] VARIANT Rows, [in] VARIANT Columns, [in] BSTR TransMode)

static void HOperatorSet.PrepContourFourier(HTuple rows, HTuple columns, HTuple transMode, out HTuple parContour)

static HTuple HMisc.PrepContourFourier(HTuple rows, HTuple columns, string transMode)

Description

The operator prep_contour_fourierprep_contour_fourierprep_contour_fourierPrepContourFourierPrepContourFourier 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 TransModeTransModeTransModeTransModetransMode:

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.

Parallelization

Parameters

RowsRowsRowsRowsrows (input_control)  contour.y-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Row indices of the contour.

ColumnsColumnsColumnsColumnscolumns (input_control)  contour.x-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Column indices of the contour.

TransModeTransModeTransModeTransModetransMode (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Kind of parameterization.

Default value: 'signed_area' "signed_area" "signed_area" "signed_area" "signed_area"

Suggested values: 'arc'"arc""arc""arc""arc", 'unsigned_area'"unsigned_area""unsigned_area""unsigned_area""unsigned_area", 'signed_area'"signed_area""signed_area""signed_area""signed_area"

ParContourParContourParContourParContourparContour (output_control)  real-array HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Parameterized contour.

Example (C++)

get_region_contour(single,&row,&col);
move_contour_orig(row,col,&trow,&tcol);
prep_contour_fourier(trow,tcol,"unsigned_area",&param_scale);
fourier_1dim(trow,tcol,param_scale,&frow,&fcol);

Possible Predecessors

move_contour_origmove_contour_origmove_contour_origMoveContourOrigMoveContourOrig

Possible Successors

fourier_1dimfourier_1dimfourier_1dimFourier1dimFourier1dim

Module

Foundation


Table of Contents / Legacy / Fourier Descriptor ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH