regress_contours_xldregress_contours_xldRegressContoursXldRegressContoursXld (Operator)

Name

regress_contours_xldregress_contours_xldRegressContoursXldRegressContoursXld — Calculate the parameters of a regression line to an XLD contour.

Signature

regress_contours_xld(Contours : RegressContours : Mode, Iterations : )

Herror regress_contours_xld(const Hobject Contours, Hobject* RegressContours, const char* Mode, const Hlong Iterations)

Herror T_regress_contours_xld(const Hobject Contours, Hobject* RegressContours, const Htuple Mode, const Htuple Iterations)

void RegressContoursXld(const HObject& Contours, HObject* RegressContours, const HTuple& Mode, const HTuple& Iterations)

HXLDCont HXLDCont::RegressContoursXld(const HString& Mode, Hlong Iterations) const

HXLDCont HXLDCont::RegressContoursXld(const char* Mode, Hlong Iterations) const

HXLDCont HXLDCont::RegressContoursXld(const wchar_t* Mode, Hlong Iterations) const   (Windows only)

static void HOperatorSet.RegressContoursXld(HObject contours, out HObject regressContours, HTuple mode, HTuple iterations)

HXLDCont HXLDCont.RegressContoursXld(string mode, int iterations)

Description

regress_contours_xldregress_contours_xldRegressContoursXldRegressContoursXldRegressContoursXld calculates the following parameters for the input XLD contours ContoursContoursContoursContourscontours, and stores them with the resulting contours as global attributes:

See get_contour_global_attrib_xldget_contour_global_attrib_xldGetContourGlobalAttribXldGetContourGlobalAttribXldGetContourGlobalAttribXld for further information about global contour attributes.

For ModeModeModeModemode = 'no'"no""no""no""no", the parameters of the regression line are calculated for all points of the contour. In addition, three different kinds of outlier treatment can be applied. Outliers are contour points which do not lie on the general contour direction in an “obvious” manner, and thus “distort” the resulting regression line.

ModeModeModeModemode =

The calculation of the undistorted regression line can be iterated several times (IterationsIterationsIterationsIterationsiterations).

Execution Information

Parameters

ContoursContoursContoursContourscontours (input_object)  xld_cont-array objectHXLDContHXLDContHobject

Input XLD contours.

RegressContoursRegressContoursRegressContoursRegressContoursregressContours (output_object)  xld_cont-array objectHXLDContHXLDContHobject *

Resulting XLD contours.

ModeModeModeModemode (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Type of outlier treatment.

Default value: 'no' "no" "no" "no" "no"

List of values: 'drop'"drop""drop""drop""drop", 'gauss'"gauss""gauss""gauss""gauss", 'median'"median""median""median""median", 'no'"no""no""no""no"

IterationsIterationsIterationsIterationsiterations (input_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of iterations for the outlier treatment.

Default value: 1

Suggested values: 1, 2, 3, 5, 10, 20

Possible Predecessors

gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXld, lines_gausslines_gaussLinesGaussLinesGaussLinesGauss, lines_facetlines_facetLinesFacetLinesFacetLinesFacet, edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPix

Possible Successors

get_regress_params_xldget_regress_params_xldGetRegressParamsXldGetRegressParamsXldGetRegressParamsXld

See also

smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXldSmoothContoursXld, get_contour_global_attrib_xldget_contour_global_attrib_xldGetContourGlobalAttribXldGetContourGlobalAttribXldGetContourGlobalAttribXld, query_contour_global_attribs_xldquery_contour_global_attribs_xldQueryContourGlobalAttribsXldQueryContourGlobalAttribsXldQueryContourGlobalAttribsXld

References

H. Suesse, K. Voss: “Adaptive Ausgleichsrechnung und Ausreißerproblematik für die digitale Bildverarbeitung”; Proc. 15. DAGM Symposium, Springer Verlag, Lübeck 1993
R. Haralick, L. Shapiro: “Computer and Robot Vision” Vol. 2; Kapitel 14.9, Addison-Wesley 1992

Module

Foundation