gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldgen_contour_region_xld (算子名称)

名称

gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldgen_contour_region_xld — Generate XLD contours from regions.

参数签名

gen_contour_region_xld(区域 : Contours : Mode : )

Herror gen_contour_region_xld(const Hobject 区域, Hobject* Contours, const char* Mode)

Herror T_gen_contour_region_xld(const Hobject 区域, Hobject* Contours, const Htuple Mode)

void GenContourRegionXld(const HObject& 区域, HObject* Contours, const HTuple& Mode)

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

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

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

void HXLDCont::HXLDCont(const HRegion& 区域, const HString& Mode)

void HXLDCont::HXLDCont(const HRegion& 区域, const char* Mode)

void HXLDCont::HXLDCont(const HRegion& 区域, const wchar_t* Mode)   ( Windows only)

static void HOperatorSet.GenContourRegionXld(HObject 区域, out HObject contours, HTuple mode)

HXLDCont HRegion.GenContourRegionXld(string mode)

public HXLDCont(HRegion 区域, string mode)

def gen_contour_region_xld(区域: HObject, mode: str) -> HObject

描述

gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldGenContourRegionXldgen_contour_region_xld generates XLD contours ContoursContoursContoursContourscontourscontours from the regions given in 区域区域区域区域区域区域. This operator is useful if regions have been obtained from segmentation operations, but higher level operators, e.g., polygon approximation and extraction of parallels, are to be performed on their boundaries. For each connected component of the input regions a closed contour of the boundary is generated. The parameter ModeModeModeModemodemode can take on the following values:

The difference between the modes is demonstrated using the following region:

image/svg+xml
Example region.

Computing the contour with the different values available for ModeModeModeModemodemode returns the following result contours:

image/svg+xml image/svg+xml image/svg+xml
( 1) ( 2) ( 3)
Result for 'center'"center""center""center""center""center" (1), 'border'"border""border""border""border""border" (2), and 'border_holes'"border_holes""border_holes""border_holes""border_holes""border_holes" mode (3).

This means, for example, that contours generated with 'border'"border""border""border""border""border" will in general have a much larger Euclidean length (see length_xldlength_xldLengthXldLengthXldLengthXldlength_xld) than contours generated with 'center'"center""center""center""center""center". This results from the fact that for diagonal border elements 'border'"border""border""border""border""border" uses two contour segments of length 1 each, whereas 'center'"center""center""center""center""center" uses a single segment of length . Other features, e.g., the area (see area_center_xldarea_center_xldAreaCenterXldAreaCenterXldAreaCenterXldarea_center_xld), will obviously also have different values.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Input regions.

ContoursContoursContoursContourscontourscontours (output_object)  xld_cont(-array) objectHXLDContHObjectHXLDContHobject *

Resulting contours.

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

Mode of contour generation.

Default: 'border' "border" "border" "border" "border" "border"

List of values: 'border'"border""border""border""border""border", 'border_holes'"border_holes""border_holes""border_holes""border_holes""border_holes", 'center'"center""center""center""center""center"

可能的后置算子

smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXldSmoothContoursXldsmooth_contours_xld, gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXldgen_polygons_xld

可替代算子

gen_contour_polygon_xldgen_contour_polygon_xldGenContourPolygonXldGenContourPolygonXldGenContourPolygonXldgen_contour_polygon_xld, get_region_contourget_region_contourGetRegionContourGetRegionContourGetRegionContourget_region_contour

参考其它

gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld

模块

Foundation