ClassesClassesClassesClasses | | | | Operators

smooth_contours_xldsmooth_contours_xldSmoothContoursXldsmooth_contours_xldSmoothContoursXldSmoothContoursXld (Operator)

Name

smooth_contours_xldsmooth_contours_xldSmoothContoursXldsmooth_contours_xldSmoothContoursXldSmoothContoursXld — Smooth an XLD contour.

Signature

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)

Herror smooth_contours_xld(Hobject Contours, Hobject* SmoothedContours, const HTuple& NumRegrPoints)

HXLDContArray HXLDContArray::SmoothContoursXld(const HTuple& NumRegrPoints) const

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

HXLDCont HXLDCont::SmoothContoursXld(Hlong NumRegrPoints) const

void HOperatorSetX.SmoothContoursXld(
[in] IHUntypedObjectX* Contours, [out] IHUntypedObjectX*SmoothedContours, [in] VARIANT NumRegrPoints)

IHXLDContX* HXLDContX.SmoothContoursXld([in] Hlong NumRegrPoints)

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

HXLDCont HXLDCont.SmoothContoursXld(int numRegrPoints)

Description

smooth_contours_xldsmooth_contours_xldSmoothContoursXldsmooth_contours_xldSmoothContoursXldSmoothContoursXld smooths the input XLD contours ContoursContoursContoursContoursContourscontours and returns the smoothed contours in SmoothedContoursSmoothedContoursSmoothedContoursSmoothedContoursSmoothedContourssmoothedContours. 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 NumRegrPointsNumRegrPointsNumRegrPointsNumRegrPointsNumRegrPointsnumRegrPoints on each side of the current contour point. This operator should be called, for example, before contours are scaled.

Parallelization

Parameters

ContoursContoursContoursContoursContourscontours (input_object)  xld_cont-array objectHXLDContHXLDContHXLDContArrayHXLDContXHobject

Contour to be smoothed.

SmoothedContoursSmoothedContoursSmoothedContoursSmoothedContoursSmoothedContourssmoothedContours (output_object)  xld_cont-array objectHXLDContHXLDContHXLDContArrayHXLDContXHobject *

Smoothed contour.

NumRegrPointsNumRegrPointsNumRegrPointsNumRegrPointsNumRegrPointsnumRegrPoints (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (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_xldGenContoursSkeletonXldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXld, lines_gausslines_gaussLinesGausslines_gaussLinesGaussLinesGauss, lines_facetlines_facetLinesFacetlines_facetLinesFacetLinesFacet, edges_sub_pixedges_sub_pixEdgesSubPixedges_sub_pixEdgesSubPixEdgesSubPix

Possible Successors

affine_trans_contour_xldaffine_trans_contour_xldAffineTransContourXldaffine_trans_contour_xldAffineTransContourXldAffineTransContourXld, gen_polygons_xldgen_polygons_xldGenPolygonsXldgen_polygons_xldGenPolygonsXldGenPolygonsXld, local_max_contours_xldlocal_max_contours_xldLocalMaxContoursXldlocal_max_contours_xldLocalMaxContoursXldLocalMaxContoursXld

See also

get_contour_xldget_contour_xldGetContourXldget_contour_xldGetContourXldGetContourXld

Module

Foundation


ClassesClassesClassesClasses | | | | Operators