HALCON Reference Manual 10.0.2
Table of Contents / Regions / Creation ClassesClassesClasses | | | Operators

gen_region_polygon_xldgen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXld (Operator)

Name

gen_region_polygon_xldgen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXld — Create a region from an XLD polygon.

Signature

gen_region_polygon_xld(Polygon : Region : Mode : )

Herror gen_region_polygon_xld(const Hobject Polygon, Hobject* Region, const char* Mode)

Herror T_gen_region_polygon_xld(const Hobject Polygon, Hobject* Region, const Htuple Mode)

Herror gen_region_polygon_xld(Hobject Polygon, Hobject* Region, const HTuple& Mode)

HRegion HXLDPoly::GenRegionPolygonXld(const HTuple& Mode) const

void HOperatorSetX.GenRegionPolygonXld(
[in] IHUntypedObjectX* Polygon, [out] IHUntypedObjectX*Region, [in] VARIANT Mode)

IHRegionX* HXLDPolyX.GenRegionPolygonXld([in] BSTR Mode)

static void HOperatorSet.GenRegionPolygonXld(HObject polygon, out HObject region, HTuple mode)

HRegion HXLDPoly.GenRegionPolygonXld(string mode)

Description

gen_region_polygon_xldgen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXld creates a region RegionRegionRegionRegionregion from a subpixel XLD polygon PolygonPolygonPolygonPolygonpolygon. The polygon is sampled according to the Bresenham algorithm and influenced by the parameter 'neighborhood'"neighborhood""neighborhood""neighborhood""neighborhood" of the operator set_systemset_systemset_systemSetSystemSetSystem. Open polygons are closed before converting them to regions. Finally, the parameter ModeModeModeModemode defines whether the region is filled up ('filled'"filled""filled""filled""filled") or returned by its contour ('margin'"margin""margin""margin""margin").

Parallelization

Parameters

PolygonPolygonPolygonPolygonpolygon (input_object)  xld_poly objectHXLDPolyHXLDPolyHXLDPolyXHobject

Input polygon.

RegionRegionRegionRegionregion (output_object)  region objectHRegionHRegionHRegionXHobject *

Created region.

ModeModeModeModemode (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Fill mode of the region.

Default value: 'filled' "filled" "filled" "filled" "filled"

Suggested values: 'filled'"filled""filled""filled""filled", 'margin'"margin""margin""margin""margin"

Possible Predecessors

gen_polygons_xldgen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXld

Alternatives

gen_region_polygongen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygon, gen_region_contour_xldgen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXld

See also

set_systemset_systemset_systemSetSystemSetSystem

Module

Foundation


Table of Contents / Regions / Creation ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH