crop_contours_xldcrop_contours_xldCropContoursXldCropContoursXldcrop_contours_xld (算子)
名称
crop_contours_xldcrop_contours_xldCropContoursXldCropContoursXldcrop_contours_xld — 裁剪 XLD 轮廓。
签名
Herror crop_contours_xld(const Hobject Contours, Hobject* CroppedContours, double Row1, double Col1, double Row2, double Col2, const char* CloseContours)
Herror T_crop_contours_xld(const Hobject Contours, Hobject* CroppedContours, const Htuple Row1, const Htuple Col1, const Htuple Row2, const Htuple Col2, const Htuple CloseContours)
void CropContoursXld(const HObject& Contours, HObject* CroppedContours, const HTuple& Row1, const HTuple& Col1, const HTuple& Row2, const HTuple& Col2, const HTuple& CloseContours)
HXLDCont HXLDCont::CropContoursXld(const HTuple& Row1, const HTuple& Col1, const HTuple& Row2, const HTuple& Col2, const HString& CloseContours) const
HXLDCont HXLDCont::CropContoursXld(double Row1, double Col1, double Row2, double Col2, const HString& CloseContours) const
HXLDCont HXLDCont::CropContoursXld(double Row1, double Col1, double Row2, double Col2, const char* CloseContours) const
HXLDCont HXLDCont::CropContoursXld(double Row1, double Col1, double Row2, double Col2, const wchar_t* CloseContours) const
(
Windows only)
static void HOperatorSet.CropContoursXld(HObject contours, out HObject croppedContours, HTuple row1, HTuple col1, HTuple row2, HTuple col2, HTuple closeContours)
HXLDCont HXLDCont.CropContoursXld(HTuple row1, HTuple col1, HTuple row2, HTuple col2, string closeContours)
HXLDCont HXLDCont.CropContoursXld(double row1, double col1, double row2, double col2, string closeContours)
描述
crop_contours_xldcrop_contours_xldCropContoursXldCropContoursXldCropContoursXldcrop_contours_xld crops all XLD contours given in ContoursContoursContoursContourscontourscontours,
i.e., only contour segments contained in the rectangle given by
Row1Row1Row1Row1row1row_1, Col1Col1Col1Col1col1col_1, Row2Row2Row2Row2row2row_2 and Col2Col2Col2Col2col2col_2 are
returned on output. While in clip_contours_xldclip_contours_xldClipContoursXldClipContoursXldClipContoursXldclip_contours_xld all contour
segments that intersect a boundary line are omitted, here they
are cropped at the exact intersection point with the cropping rectangle.
If necessary, contours are split and several new contours are produced.
Closed contours can, however, be closed again using the parameter
CloseContoursCloseContoursCloseContoursCloseContourscloseContoursclose_contours. If it is set to 'true'"true""true""true""true""true", a closed contour is
transformed into one or several contours that are closed via segments
on the cropping rectangle. If it is 'false'"false""false""false""false""false", all
contours end at the points where they leave the cropping rectangle.
The resulting contours are returned in CroppedContoursCroppedContoursCroppedContoursCroppedContourscroppedContourscropped_contours。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 在元组级别上自动并行化。
参数
ContoursContoursContoursContourscontourscontours (输入对象) xld_cont(-array) → objectHXLDContHObjectHXLDContHobject
Input contours.
CroppedContoursCroppedContoursCroppedContoursCroppedContourscroppedContourscropped_contours (输出对象) xld_cont(-array) → objectHXLDContHObjectHXLDContHobject *
Output contours.
Row1Row1Row1Row1row1row_1 (输入控制) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Upper border of the cropping
rectangle.
默认值:
0
建议值:
0, 500, 1000, 1500, 2000
Col1Col1Col1Col1col1col_1 (输入控制) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Left border of the cropping rectangle.
默认值:
0
建议值:
0, 500, 1000, 1500, 2000
Row2Row2Row2Row2row2row_2 (输入控制) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Lower border of the cropping rectangle.
默认值:
512
建议值:
512, 1024, 1536, 2048
Col2Col2Col2Col2col2col_2 (输入控制) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Right border of the cropping rectangle.
默认值:
512
建议值:
512, 1024, 1536, 2048
CloseContoursCloseContoursCloseContoursCloseContourscloseContoursclose_contours (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Should closed contours produce closed output
contours?
默认值:
'true'
"true"
"true"
"true"
"true"
"true"
值列表:
'false'"false""false""false""false""false", 'true'"true""true""true""true""true"
替代
clip_contours_xldclip_contours_xldClipContoursXldClipContoursXldClipContoursXldclip_contours_xld
另见
clip_regionclip_regionClipRegionClipRegionClipRegionclip_region,
crop_partcrop_partCropPartCropPartCropPartcrop_part,
clip_contours_xldclip_contours_xldClipContoursXldClipContoursXldClipContoursXldclip_contours_xld
模块
基础