gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXldgen_region_polygon_xld (算子)
名称
gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXldgen_region_polygon_xld — 从 XLD 多边形创建区域。
签名
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)
def gen_region_polygon_xld(polygon: HObject, mode: str) -> HObject
描述
gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXldGenRegionPolygonXldgen_region_polygon_xld creates a region RegionRegionRegionRegionregionregion from a
subpixel XLD polygon PolygonPolygonPolygonPolygonpolygonpolygon. The polygon is sampled
according to the Bresenham algorithm and influenced by the
parameter 'neighborhood'"neighborhood""neighborhood""neighborhood""neighborhood""neighborhood" of the operator set_systemset_systemSetSystemSetSystemSetSystemset_system。Open
polygons are closed before converting them to regions. Finally, the
parameter ModeModeModeModemodemode defines whether the region is filled up
('filled'"filled""filled""filled""filled""filled") or returned by its contour ('margin'"margin""margin""margin""margin""margin").
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
PolygonPolygonPolygonPolygonpolygonpolygon (输入对象) xld_poly(-array) → objectHXLDPolyHObjectHXLDPolyHobject
Input polygon(s).
RegionRegionRegionRegionregionregion (输出对象) region(-array) → objectHRegionHObjectHRegionHobject *
Created region(s).
ModeModeModeModemodemode (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Fill mode of the region(s).
默认值:
'filled'
"filled"
"filled"
"filled"
"filled"
"filled"
建议值:
'filled'"filled""filled""filled""filled""filled", 'margin'"margin""margin""margin""margin""margin"
可能的前趋
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXldgen_polygons_xld
替代
gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygongen_region_polygon,
gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldGenRegionContourXldgen_region_contour_xld
另见
set_systemset_systemSetSystemSetSystemSetSystemset_system
模块
基础