local_max_contours_xldlocal_max_contours_xldLocalMaxContoursXldLocalMaxContoursXldlocal_max_contours_xld (算子)

名称

local_max_contours_xldlocal_max_contours_xldLocalMaxContoursXldLocalMaxContoursXldlocal_max_contours_xld — 选择具有局部最大灰度值的 XLD 轮廓。

签名

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)

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

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)

def local_max_contours_xld(contours: HObject, image: HObject, min_percent: Union[int, float], min_diff: int, distance: int) -> HObject

描述

local_max_contours_xldlocal_max_contours_xldLocalMaxContoursXldLocalMaxContoursXldLocalMaxContoursXldlocal_max_contours_xld 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 MinPercentMinPercentMinPercentMinPercentminPercentmin_percent 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 MinDiffMinDiffMinDiffMinDiffminDiffmin_diff 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 LocalMaxContoursLocalMaxContoursLocalMaxContoursLocalMaxContourslocalMaxContourslocal_max_contours

执行信息

参数

ContoursContoursContoursContourscontourscontours (输入对象)  xld_cont-array objectHXLDContHObjectHXLDContHobject

XLD contours to be examined.

ImageImageImageImageimageimage (输入对象)  singlechannelimage objectHImageHObjectHImageHobject (byte)

Corresponding gray value image.

LocalMaxContoursLocalMaxContoursLocalMaxContoursLocalMaxContourslocalMaxContourslocal_max_contours (输出对象)  xld_cont-array objectHXLDContHObjectHXLDContHobject *

Selected contours.

MinPercentMinPercentMinPercentMinPercentminPercentmin_percent (输入控制)  number HTupleUnion[int, float]HTupleHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double)

Minimum percentage of maximum points.

默认值: 70

建议值: 60, 70, 75, 80, 85, 90, 95

限制: 0.0 <= MinPercent && MinPercent <= 100.0

MinDiffMinDiffMinDiffMinDiffminDiffmin_diff (输入控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

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

默认值: 15

建议值: 5, 8, 10, 12, 15, 20

限制: 0 <= MinDiff && MinDiff <= 255

DistanceDistanceDistanceDistancedistancedistance (输入控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Maximum width of profile used to check for maxima.

默认值: 4

建议值: 2, 3, 4, 5, 6

限制: Distance >= 1

可能的前趋

gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld, lines_gausslines_gaussLinesGaussLinesGaussLinesGausslines_gauss, lines_facetlines_facetLinesFacetLinesFacetLinesFacetlines_facet, edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPixedges_sub_pix

可能的后继

gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXldgen_polygons_xld

另见

smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXldSmoothContoursXldsmooth_contours_xld

模块

基础