Operator Reference
gen_polygons_xld (Operator)
gen_polygons_xld
— Approximate XLD contours by polygons.
Signature
Description
gen_polygons_xld
approximates XLD contours
(Contours
) by polygons. The type of the approximation
can be set by Type
. The threshold for the approximation
is set via Alpha
. The procedure is able to process open
as well as closed contours. The resulting approximating XLD
polygons are returned in Polygons
.
Contours can be approximated by the algorithm of Ramer, which
approximates contours such that the Euclidean distance of the
approximating polygon to the contour is at most Alpha
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
Contours
(input_object) xld_cont-array →
object
Contours to be approximated.
Polygons
(output_object) xld_poly-array →
object
Approximating polygons.
Type
(input_control) string →
(string)
Type of approximation.
Default: 'ramer'
List of values: 'ramer'
Alpha
(input_control) number →
(real / integer)
Threshold for the approximation.
Default: 2.0
Suggested values: 1.0, 1.5, 2.0, 3.0, 4.0
Restriction:
Alpha > 0.0
Possible Predecessors
gen_contours_skeleton_xld
,
lines_gauss
,
lines_facet
,
edges_sub_pix
Possible Successors
gen_parallels_xld
,
split_contours_xld
See also
Module
Foundation