clip_regionclip_regionClipRegionClipRegionclip_region (Operator)
名称
clip_regionclip_regionClipRegionClipRegionclip_region — 将区域剪裁为矩形。
签名
Herror clip_region(const Hobject Region, Hobject* RegionClipped, const Hlong Row1, const Hlong Column1, const Hlong Row2, const Hlong Column2)
Herror T_clip_region(const Hobject Region, Hobject* RegionClipped, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2)
描述
clip_regionclip_regionClipRegionClipRegionClipRegionclip_region clips the input regions to the rectangle
given by the four control parameters. clip_regionclip_regionClipRegionClipRegionClipRegionclip_region is
more efficient than calling intersectionintersectionIntersectionIntersectionIntersectionintersection with a
rectangle generated by gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1.
执行信息
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
参数
RegionRegionRegionRegionregionregion (input_object) region(-array) → objectHRegionHObjectHRegionHobject
Region to be clipped.
RegionClippedRegionClippedRegionClippedRegionClippedregionClippedregion_clipped (output_object) region(-array) → objectHRegionHObjectHRegionHobject *
Clipped regions.
Row1Row1Row1Row1row1row_1 (input_control) rectangle.origin.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row coordinate of the upper left corner of the
rectangle.
默认值:
0
建议值:
0, 128, 200, 256
值范围:
Row1
Row1
Row1
Row1
row1
row_1
(lin)
Column1Column1Column1Column1column1column_1 (input_control) rectangle.origin.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column coordinate of the upper left corner of the
rectangle.
默认值:
0
建议值:
0, 128, 200, 256
值范围:
Column1
Column1
Column1
Column1
column1
column_1
(lin)
Row2Row2Row2Row2row2row_2 (input_control) rectangle.corner.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row coordinate of the lower right corner of the
rectangle.
默认值:
256
建议值:
128, 200, 256, 512
值范围:
0
≤
Row2
Row2
Row2
Row2
row2
row_2
≤
511 (lin)
最小增量:
1
建议增量:
10
Column2Column2Column2Column2column2column_2 (input_control) rectangle.corner.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column coordinate of the lower right corner of the
rectangle.
默认值:
256
建议值:
128, 200, 256, 512
值范围:
0
≤
Column2
Column2
Column2
Column2
column2
column_2
≤
511 (lin)
最小增量:
1
建议增量:
10
结果
clip_regionclip_regionClipRegionClipRegionClipRegionclip_region returns 2 (
H_MSG_TRUE)
if all parameters are correct.
The behavior in case of empty input (no regions given) can be set
via set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)
and the behavior in case of an empty input region via
set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>).
If necessary, an exception is raised.
可能的前置算子
thresholdthresholdThresholdThresholdThresholdthreshold,
connectionconnectionConnectionConnectionConnectionconnection,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing,
pouringpouringPouringPouringPouringpouring
可能的后继算子
select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region
替代算子
intersectionintersectionIntersectionIntersectionIntersectionintersection,
gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1,
clip_region_relclip_region_relClipRegionRelClipRegionRelClipRegionRelclip_region_rel
模块
Foundation