ClassesClassesClassesClasses | | | | Operators

local_max_contours_xldlocal_max_contours_xldLocalMaxContoursXldlocal_max_contours_xldLocalMaxContoursXldLocalMaxContoursXld (Operator)

Name

local_max_contours_xldlocal_max_contours_xldLocalMaxContoursXldlocal_max_contours_xldLocalMaxContoursXldLocalMaxContoursXld — Select XLD contours with a local maximum of gray values.

Signature

local_max_contours_xld(Contours, Image : LocalMaxContours : MinPercent, MinDiff, Distance : )

Herror local_max_contours_xld(const Hobject Contours, const Hobject Image, Hobject* LocalMaxContours, const Hlong MinPercent, const Hlong MinDiff, const Hlong Distance)

Herror T_local_max_contours_xld(const Hobject Contours, const Hobject Image, Hobject* LocalMaxContours, const Htuple MinPercent, const Htuple MinDiff, const Htuple Distance)

Herror local_max_contours_xld(Hobject Contours, Hobject Image, Hobject* LocalMaxContours, const HTuple& MinPercent, const HTuple& MinDiff, const HTuple& Distance)

HXLDContArray HXLDContArray::LocalMaxContoursXld(const HImage& Image, const HTuple& MinPercent, const HTuple& MinDiff, const HTuple& Distance) const

void LocalMaxContoursXld(const HObject& Contours, const HObject& Image, HObject* LocalMaxContours, const HTuple& MinPercent, const HTuple& MinDiff, const HTuple& Distance)

HXLDCont HXLDCont::LocalMaxContoursXld(const HImage& Image, const HTuple& MinPercent, Hlong MinDiff, Hlong Distance) const

HXLDCont HXLDCont::LocalMaxContoursXld(const HImage& Image, Hlong MinPercent, Hlong MinDiff, Hlong Distance) const

void HOperatorSetX.LocalMaxContoursXld(
[in] IHUntypedObjectX* Contours, [in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*LocalMaxContours, [in] VARIANT MinPercent, [in] VARIANT MinDiff, [in] VARIANT Distance)

IHXLDContX* HXLDContX.LocalMaxContoursXld(
[in] IHImageX* Image, [in] VARIANT MinPercent, [in] Hlong MinDiff, [in] Hlong Distance)

static void HOperatorSet.LocalMaxContoursXld(HObject contours, HObject image, out HObject localMaxContours, HTuple minPercent, HTuple minDiff, HTuple distance)

HXLDCont HXLDCont.LocalMaxContoursXld(HImage image, HTuple minPercent, int minDiff, int distance)

HXLDCont HXLDCont.LocalMaxContoursXld(HImage image, int minPercent, int minDiff, int distance)

Description

local_max_contours_xldlocal_max_contours_xldLocalMaxContoursXldlocal_max_contours_xldLocalMaxContoursXldLocalMaxContoursXld selects XLD contours from the contours passed in ContoursContoursContoursContoursContourscontours, which have a local maximum in gray values across the direction of the contour. In order to be selected, at least MinPercentMinPercentMinPercentMinPercentMinPercentminPercent of the contour points must have a local maximum perpendicular to the direction of the contour. The contours' direction is determined by fitting a regression line through five neighboring points of the contour. In order to decide whether there is a local maximum for a contour point, a gray value profile that is DistanceDistanceDistanceDistanceDistancedistance points wide and perpendicular to the contour is computed on both sides of the contour. If the gray value at the contour point is at least MinDiffMinDiffMinDiffMinDiffMinDiffminDiff larger than the gray value at at least one point on each side of the profile, the contour point is labeled as a local maximum. The selected contours are returned in LocalMaxContoursLocalMaxContoursLocalMaxContoursLocalMaxContoursLocalMaxContourslocalMaxContours.

Parallelization

Parameters

ContoursContoursContoursContoursContourscontours (input_object)  xld_cont-array objectHXLDContHXLDContHXLDContArrayHXLDContXHobject

XLD contours to be examined.

ImageImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHImageHImageXHobject (byte)

Corresponding gray value image.

LocalMaxContoursLocalMaxContoursLocalMaxContoursLocalMaxContoursLocalMaxContourslocalMaxContours (output_object)  xld_cont-array objectHXLDContHXLDContHXLDContArrayHXLDContXHobject *

Selected contours.

MinPercentMinPercentMinPercentMinPercentMinPercentminPercent (input_control)  number HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Minimum percentage of maximum points.

Default value: 70

Suggested values: 60, 70, 75, 80, 85, 90, 95

Restriction: 0.0 <= MinPercent && MinPercent <= 100.0

MinDiffMinDiffMinDiffMinDiffMinDiffminDiff (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Minimum amount by which the gray value at the maximum must be larger than in the profile.

Default value: 15

Suggested values: 5, 8, 10, 12, 15, 20

Restriction: 0 <= MinDiff && MinDiff <= 255

DistanceDistanceDistanceDistanceDistancedistance (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Maximum width of profile used to check for maxima.

Default value: 4

Suggested values: 2, 3, 4, 5, 6

Restriction: Distance >= 1

Possible Predecessors

gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXld, lines_gausslines_gaussLinesGausslines_gaussLinesGaussLinesGauss, lines_facetlines_facetLinesFacetlines_facetLinesFacetLinesFacet, edges_sub_pixedges_sub_pixEdgesSubPixedges_sub_pixEdgesSubPixEdgesSubPix

Possible Successors

gen_polygons_xldgen_polygons_xldGenPolygonsXldgen_polygons_xldGenPolygonsXldGenPolygonsXld

See also

smooth_contours_xldsmooth_contours_xldSmoothContoursXldsmooth_contours_xldSmoothContoursXldSmoothContoursXld

Module

Foundation


ClassesClassesClassesClasses | | | | Operators