Skip to content

select_contours_xldSelectContoursXldSelectContoursXldselect_contours_xldselect_contours_xldπŸ”—

Short descriptionπŸ”—

select_contours_xldSelectContoursXldSelectContoursXldselect_contours_xldselect_contours_xld β€” Select XLD contours according to several features.

SignatureπŸ”—

select_contours_xld( xld_cont Contours, out xld_cont SelectedContours, string Feature, real Min1, real Max1, real Min2, real Max2 )void SelectContoursXld( const HObject& Contours, HObject* SelectedContours, const HTuple& Feature, const HTuple& Min1, const HTuple& Max1, const HTuple& Min2, const HTuple& Max2 )static void HOperatorSet.SelectContoursXld( HObject contours, out HObject selectedContours, HTuple feature, HTuple min1, HTuple max1, HTuple min2, HTuple max2 )def select_contours_xld( contours: HObject, feature: str, min_1: float, max_1: float, min_2: float, max_2: float ) -> HObject

Herror select_contours_xld( const Hobject Contours, Hobject* SelectedContours, const char* Feature, double Min1, double Max1, double Min2, double Max2 )

Herror T_select_contours_xld( const Hobject Contours, Hobject* SelectedContours, const Htuple Feature, const Htuple Min1, const Htuple Max1, const Htuple Min2, const Htuple Max2 )

HXLDCont HXLDCont::SelectContoursXld( const HString& Feature, double Min1, double Max1, double Min2, double Max2 ) const

HXLDCont HXLDCont::SelectContoursXld( const char* Feature, double Min1, double Max1, double Min2, double Max2 ) const

HXLDCont HXLDCont::SelectContoursXld( const wchar_t* Feature, double Min1, double Max1, double Min2, double Max2 ) const (Windows only)

HXLDCont HXLDCont.SelectContoursXld( string feature, double min1, double max1, double min2, double max2 )

DescriptionπŸ”—

select_contours_xldSelectContoursXld selects XLD contours from the input contours Contourscontourscontours according to the following features (parameter Featurefeaturefeature):

If Min1min1min_1 = Max1max1max_1 = 0 or Min2min2min_2 = Max2max2max_2 = 0 is used for the selection according to curvature, the respective feature has no influence on the selection.

AttentionπŸ”—

Before contour can be filtered by select_contours_xldSelectContoursXld according to 'direction'"direction" or 'curvature'"curvature", the parameters of the regression lines to the contours must be calculated with regress_contours_xldRegressContoursXld. If this has not been done, select_contours_xldSelectContoursXld calls regress_contours_xldRegressContoursXld internally with the parameters Modemodemode \(=\) 'no'"no" and Iterationsiterationsiterations \(=\) 11. If a different mode should be used, regress_contours_xldRegressContoursXld must be called explicitly.

Execution informationπŸ”—

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

ParametersπŸ”—

Contourscontourscontours (input_object) xld_cont-array β†’ objectHObjectHXLDContHObjectHobject

Input XLD contours.

SelectedContoursselectedContoursselected_contours (output_object) xld_cont-array β†’ objectHObjectHXLDContHObjectHobject *

Output XLD contours.

Featurefeaturefeature (input_control) string β†’ (string)HTuple (HString)HTuple (string)strHtuple (char*)

Feature to select contours with.

Default: 'contour_length'"contour_length"
List of values: 'closed', 'contour_length', 'curvature', 'direction', 'maximum_extent', 'open'"closed", "contour_length", "curvature", "direction", "maximum_extent", "open"

Min1min1min_1 (input_control) real β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Lower threshold.

Default: 0.50.5

Max1max1max_1 (input_control) real β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Upper threshold.

Default: 200.0200.0

Min2min2min_2 (input_control) real β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Lower threshold.

Default: -0.5-0.5

Max2max2max_2 (input_control) real β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Upper threshold.

Default: 0.50.5

Combinations with other operatorsπŸ”—

Combinations

Possible predecessors

regress_contours_xldRegressContoursXld

See also

get_contour_xldGetContourXld, get_contour_attrib_xldGetContourAttribXld, gen_contours_skeleton_xldGenContoursSkeletonXld, lines_gaussLinesGauss, lines_facetLinesFacet, edges_sub_pixEdgesSubPix, get_regress_params_xldGetRegressParamsXld, get_contour_global_attrib_xldGetContourGlobalAttribXld, query_contour_global_attribs_xldQueryContourGlobalAttribsXld

ReferencesπŸ”—

R. Haralick, L. Shapiro: β€œComputer and Robot Vision” Vol. 1; Kapitel 3.2, Addison-Wesley 1992

ModuleπŸ”—

Foundation