gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldgen_region_contour_xld (算子名称)

名称

gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldgen_region_contour_xld — Create a region from an XLD contour.

参数签名

gen_region_contour_xld(Contour : 区域 : Mode : )

Herror gen_region_contour_xld(const Hobject Contour, Hobject* 区域, const char* Mode)

Herror T_gen_region_contour_xld(const Hobject Contour, Hobject* 区域, const Htuple Mode)

void GenRegionContourXld(const HObject& Contour, HObject* 区域, const HTuple& Mode)

HRegion HXLDCont::GenRegionContourXld(const HString& Mode) const

HRegion HXLDCont::GenRegionContourXld(const char* Mode) const

HRegion HXLDCont::GenRegionContourXld(const wchar_t* Mode) const   ( Windows only)

static void HOperatorSet.GenRegionContourXld(HObject contour, out HObject 区域, HTuple mode)

HRegion HXLDCont.GenRegionContourXld(string mode)

def gen_region_contour_xld(contour: HObject, mode: str) -> HObject

描述

gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldGenRegionContourXldgen_region_contour_xld creates a region 区域区域区域区域区域区域 from a subpixel XLD contour ContourContourContourContourcontourcontour. The contour 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 contours 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").

Please note that the coordinates of the contour points are rounded to their nearest integer pixel coordinates during the conversion. This may lead to unexpected results when passing the contour obtained by the operator gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldGenContourRegionXldgen_contour_region_xld to gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldGenRegionContourXldgen_region_contour_xld: When setting ModeModeModeModemodemode of gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldGenContourRegionXldgen_contour_region_xld to 'border'"border""border""border""border""border", the input region of gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldGenContourRegionXldgen_contour_region_xld and the output region of gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldGenRegionContourXldgen_region_contour_xld differ. For example, let us assume that the input region of gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldGenContourRegionXldgen_contour_region_xld consists of the single pixel (1,1). Then, the resulting contour that is obtained when calling gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldGenContourRegionXldgen_contour_region_xld with ModeModeModeModemodemode set to 'border'"border""border""border""border""border" consists of the five points (0.5,0.5), (0.5,1.5), (1.5,1.5), (1.5,0.5), and (0.5,0.5). Consequently, when passing this contour again to gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldGenRegionContourXldgen_region_contour_xld, the resulting region consists of the points (1,1), (1,2), (2,2), and (2,1).

运行信息

参数表

ContourContourContourContourcontourcontour (input_object)  xld_cont(-array) objectHXLDContHObjectHXLDContHobject

Input contour(s).

区域区域区域区域区域区域 (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Created region(s).

ModeModeModeModemodemode (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Fill mode of the region(s).

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

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

可能的前置算子

gen_contour_polygon_xldgen_contour_polygon_xldGenContourPolygonXldGenContourPolygonXldGenContourPolygonXldgen_contour_polygon_xld, gen_contour_polygon_rounded_xldgen_contour_polygon_rounded_xldGenContourPolygonRoundedXldGenContourPolygonRoundedXldGenContourPolygonRoundedXldgen_contour_polygon_rounded_xld

可替代算子

gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygongen_region_polygon, gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXldGenRegionPolygonXldgen_region_polygon_xld

参考其它

set_systemset_systemSetSystemSetSystemSetSystemset_system

模块

Foundation