gen_region_polygon_xld ( Polygon : Region : Mode : )

Create a region from an XLD polygon.

gen_region_polygon_xld creates a region Region from a subpixel XLD polygon Polygon. The polygon is sampled according to the Bresenham algorithm and influenced by the parameter neighborhood of the operator set_system. Open polygons are closed before converting them to regions. Finally, the parameter Mode defines whether the region is filled up (filled) or returned by its contour (margin).


Parameters

Polygon (input_object)
xld_poly -> object
Input polygon.

Region (output_object)
region -> object
Created region.

Mode (input_control)
string -> string
Fill mode of the region.
Default value: 'filled'
Suggested values: 'filled', 'margin'


Parallelization Information

gen_region_polygon_xld is reentrant and processed without parallelization.


Possible Predecessors

gen_polygons_xld


Alternatives

gen_region_polygon, gen_region_contour_xld


See also

set_system


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH