get_region_convexT_get_region_convexGetRegionConvexGetRegionConvexget_region_convex (算子名称)
名称
get_region_convexT_get_region_convexGetRegionConvexGetRegionConvexget_region_convex — Access convex hull as contour.
参数签名
Herror T_get_region_convex(const Hobject 区域, Htuple* Rows, Htuple* Columns)
def get_region_convex(区域: HObject) -> Tuple[Sequence[int], Sequence[int]]
描述
该算子 get_region_convexget_region_convexGetRegionConvexGetRegionConvexGetRegionConvexget_region_convex returns the convex hull of a region
as polygon. The polygon is the minimum result
of line (RowsRowsRowsRowsrowsrows) and column coordinates (ColumnsColumnsColumnsColumnscolumnscolumns)
describing the hull of the region. The polygon pixels lie
on the region.
The polygon starts at the smallest line number; in this line at the
pixel with the largest column index.
The rotation direction is clockwise. The first pixel of the polygon
is identical with the last.
该算子 get_region_convexget_region_convexGetRegionConvexGetRegionConvexGetRegionConvexget_region_convex returns the coordinates in the form
of tuples. An empty region is passed as empty tuple.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
区域区域区域区域区域区域 (input_object) region → objectHRegionHObjectHRegionHobject
Output region.
RowsRowsRowsRowsrowsrows (output_control) contour.y-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Line numbers of contour pixels.
ColumnsColumnsColumnsColumnscolumnscolumns (output_control) contour.x-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column numbers of the contour pixels.
Number of elements:
Columns == Rows
结果
该算子 get_region_convexget_region_convexGetRegionConvexGetRegionConvexGetRegionConvexget_region_convex 返回值 2 (
H_MSG_TRUE)
.
可能的前置算子
thresholdthresholdThresholdThresholdThresholdthreshold,
skeletonskeletonSkeletonSkeletonSkeletonskeleton,
dyn_thresholddyn_thresholdDynThresholdDynThresholdDynThresholddyn_threshold
可能的后置算子
disp_polygondisp_polygonDispPolygonDispPolygonDispPolygondisp_polygon
可替代算子
shape_transshape_transShapeTransShapeTransShapeTransshape_trans
参考其它
select_objselect_objSelectObjSelectObjSelectObjselect_obj,
get_region_contourget_region_contourGetRegionContourGetRegionContourGetRegionContourget_region_contour
模块
Foundation