smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXldsmooth_contours_xld (算子)

名称

smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXldsmooth_contours_xld — 平滑 XLD 轮廓。

签名

smooth_contours_xld(Contours : SmoothedContours : NumRegrPoints : )

Herror smooth_contours_xld(const Hobject Contours, Hobject* SmoothedContours, const Hlong NumRegrPoints)

Herror T_smooth_contours_xld(const Hobject Contours, Hobject* SmoothedContours, const Htuple NumRegrPoints)

void SmoothContoursXld(const HObject& Contours, HObject* SmoothedContours, const HTuple& NumRegrPoints)

HXLDCont HXLDCont::SmoothContoursXld(Hlong NumRegrPoints) const

static void HOperatorSet.SmoothContoursXld(HObject contours, out HObject smoothedContours, HTuple numRegrPoints)

HXLDCont HXLDCont.SmoothContoursXld(int numRegrPoints)

def smooth_contours_xld(contours: HObject, num_regr_points: int) -> HObject

描述

smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXldSmoothContoursXldsmooth_contours_xld smooths the input XLD contours ContoursContoursContoursContourscontourscontours and returns the smoothed contours in SmoothedContoursSmoothedContoursSmoothedContoursSmoothedContourssmoothedContourssmoothed_contours. The smoothing is done by projecting the contours' points onto a local regression line (i.e., a least-squares approximating line), which is computed from NumRegrPointsNumRegrPointsNumRegrPointsNumRegrPointsnumRegrPointsnum_regr_points on each side of the current contour point. This operator should be called, for example, before contours are scaled.

执行信息

参数

ContoursContoursContoursContourscontourscontours (输入对象)  xld_cont-array objectHXLDContHObjectHXLDContHobject

Contour to be smoothed.

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

Smoothed contour.

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

Number of points used to calculate the regression line.

默认值: 5

建议值: 3, 5, 7, 9

限制: NumRegrPoints >= 3 && odd(NumRegrPoints)

可能的前趋

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

可能的后继

affine_trans_contour_xldaffine_trans_contour_xldAffineTransContourXldAffineTransContourXldAffineTransContourXldaffine_trans_contour_xld, gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXldgen_polygons_xld, local_max_contours_xldlocal_max_contours_xldLocalMaxContoursXldLocalMaxContoursXldLocalMaxContoursXldlocal_max_contours_xld

另见

get_contour_xldget_contour_xldGetContourXldGetContourXldGetContourXldget_contour_xld

模块

基础