smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXld (Operator)
Name
smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXld
— Smooth an XLD contour.
Signature
Description
smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXldSmoothContoursXld
smooths the input XLD contours
ContoursContoursContoursContourscontours
and returns the smoothed contours in
SmoothedContoursSmoothedContoursSmoothedContoursSmoothedContourssmoothedContours
. 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
NumRegrPointsNumRegrPointsNumRegrPointsNumRegrPointsnumRegrPoints
on each side of the current contour point.
This operator should be called, for example, before contours are
scaled.
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
ContoursContoursContoursContourscontours
(input_object) xld_cont-array →
objectHXLDContHXLDContHobject
Contour to be smoothed.
SmoothedContoursSmoothedContoursSmoothedContoursSmoothedContourssmoothedContours
(output_object) xld_cont-array →
objectHXLDContHXLDContHobject *
Smoothed contour.
NumRegrPointsNumRegrPointsNumRegrPointsNumRegrPointsnumRegrPoints
(input_control) integer →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of points used to calculate the regression
line.
Default value: 5
Suggested values: 3, 5, 7, 9
Restriction: NumRegrPoints >= 3 && odd(NumRegrPoints)
Possible Predecessors
gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXld
,
lines_gausslines_gaussLinesGaussLinesGaussLinesGauss
,
lines_facetlines_facetLinesFacetLinesFacetLinesFacet
,
edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPix
Possible Successors
affine_trans_contour_xldaffine_trans_contour_xldAffineTransContourXldAffineTransContourXldAffineTransContourXld
,
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXld
,
local_max_contours_xldlocal_max_contours_xldLocalMaxContoursXldLocalMaxContoursXldLocalMaxContoursXld
See also
get_contour_xldget_contour_xldGetContourXldGetContourXldGetContourXld
Module
Foundation