clip_contours_xldclip_contours_xldClipContoursXldClipContoursXldclip_contours_xld (算子)
名称
clip_contours_xldclip_contours_xldClipContoursXldClipContoursXldclip_contours_xld — 剪裁 XLD 轮廓。
签名
Herror clip_contours_xld(const Hobject Contours, Hobject* ClippedContours, const Hlong Row1, const Hlong Column1, const Hlong Row2, const Hlong Column2)
Herror T_clip_contours_xld(const Hobject Contours, Hobject* ClippedContours, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2)
描述
clip_contours_xldclip_contours_xldClipContoursXldClipContoursXldClipContoursXldclip_contours_xld clips all XLD contours given in
ContoursContoursContoursContourscontourscontours, i.e., only contour points contained in the
rectangle given by Row1Row1Row1Row1row1row_1, Column1Column1Column1Column1column1column_1, Row2Row2Row2Row2row2row_2,
and Column2Column2Column2Column2column2column_2 are returned on output. Note, that the rectangle
behaves like a region, i.e., the rectangle encloses the pixels completely.
If necessary, contours
are split, and several new contours are produced. The resulting
contours are returned in ClippedContoursClippedContoursClippedContoursClippedContoursclippedContoursclipped_contours。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
ContoursContoursContoursContourscontourscontours (输入对象) xld_cont(-array) → objectHXLDContHObjectHXLDContHobject
Contours to be clipped.
ClippedContoursClippedContoursClippedContoursClippedContoursclippedContoursclipped_contours (输出对象) xld_cont(-array) → objectHXLDContHObjectHXLDContHobject *
Clipped contours.
Row1Row1Row1Row1row1row_1 (输入控制) rectangle.origin.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row coordinate of the upper left corner of the clip
rectangle.
默认值:
0
建议值:
0, 500, 1000, 1500, 2000
Column1Column1Column1Column1column1column_1 (输入控制) rectangle.origin.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column coordinate of the upper left corner of the clip
rectangle.
默认值:
0
建议值:
0, 500, 1000, 1500, 2000
Row2Row2Row2Row2row2row_2 (输入控制) rectangle.corner.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row coordinate of the lower right corner of the clip
rectangle.
默认值:
512
建议值:
512, 1024, 1536, 2048
Column2Column2Column2Column2column2column_2 (输入控制) rectangle.corner.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column coordinate of the lower right corner of the clip
rectangle.
默认值:
512
建议值:
512, 1024, 1536, 2048
可能的前趋
gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld,
lines_gausslines_gaussLinesGaussLinesGaussLinesGausslines_gauss,
lines_facetlines_facetLinesFacetLinesFacetLinesFacetlines_facet,
edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPixedges_sub_pix
可能的后继
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXldgen_polygons_xld
替代
crop_contours_xldcrop_contours_xldCropContoursXldCropContoursXldCropContoursXldcrop_contours_xld
另见
clip_regionclip_regionClipRegionClipRegionClipRegionclip_region,
crop_partcrop_partCropPartCropPartCropPartcrop_part,
crop_contours_xldcrop_contours_xldCropContoursXldCropContoursXldCropContoursXldcrop_contours_xld
模块
基础