gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXld (Operator)
Name
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXld
— Approximate XLD contours by polygons.
Signature
Description
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXld
approximates XLD contours
(ContoursContoursContoursContourscontours
) by polygons. The type of the approximation
can be set by TypeTypeTypeTypetype
. The threshold for the approximation
is set via AlphaAlphaAlphaAlphaalpha
. The procedure is able to process open
as well as closed contours. The resulting approximating XLD
polygons are returned in PolygonsPolygonsPolygonsPolygonspolygons
.
Contours can be approximated by the algorithm of Ramer, which
approximates contours such that the Euclidian distance of the
approximating polygon to the contour is at most AlphaAlphaAlphaAlphaalpha
pixel
units.
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
Contours to be approximated.
PolygonsPolygonsPolygonsPolygonspolygons
(output_object) xld_poly-array →
objectHXLDPolyHXLDPolyHobject *
Approximating polygons.
TypeTypeTypeTypetype
(input_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Type of approximation.
Default value:
'ramer'
"ramer"
"ramer"
"ramer"
"ramer"
List of values: 'ramer'"ramer""ramer""ramer""ramer"
AlphaAlphaAlphaAlphaalpha
(input_control) number →
HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Threshold for the approximation.
Default value: 2.0
Suggested values: 1.0, 1.5, 2.0, 3.0, 4.0
Restriction: Alpha > 0.0
Possible Predecessors
gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXld
,
lines_gausslines_gaussLinesGaussLinesGaussLinesGauss
,
lines_facetlines_facetLinesFacetLinesFacetLinesFacet
,
edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPix
Possible Successors
gen_parallels_xldgen_parallels_xldGenParallelsXldGenParallelsXldGenParallelsXld
,
split_contours_xldsplit_contours_xldSplitContoursXldSplitContoursXldSplitContoursXld
See also
get_region_polygonget_region_polygonGetRegionPolygonGetRegionPolygonGetRegionPolygon
Module
Foundation