get_region_convexT_get_region_convexGetRegionConvexGetRegionConvexget_region_convex (算子)

名称

get_region_convexT_get_region_convexGetRegionConvexGetRegionConvexget_region_convex — 访问凸包作为轮廓。

签名

get_region_convex(Region : : : Rows, Columns)

Herror T_get_region_convex(const Hobject Region, Htuple* Rows, Htuple* Columns)

void GetRegionConvex(const HObject& Region, HTuple* Rows, HTuple* Columns)

void HRegion::GetRegionConvex(HTuple* Rows, HTuple* Columns) const

static void HOperatorSet.GetRegionConvex(HObject region, out HTuple rows, out HTuple columns)

void HRegion.GetRegionConvex(out HTuple rows, out HTuple columns)

def get_region_convex(region: 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. The operator get_region_convexget_region_convexGetRegionConvexGetRegionConvexGetRegionConvexget_region_convex returns the coordinates in the form of tuples. An empty region is passed as empty tuple.

执行信息

参数

RegionRegionRegionRegionregionregion (输入对象)  region objectHRegionHObjectHRegionHobject

Output region.

RowsRowsRowsRowsrowsrows (输出控制)  contour.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Line numbers of contour pixels.

ColumnsColumnsColumnsColumnscolumnscolumns (输出控制)  contour.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column numbers of the contour pixels.

元素数量: 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

模块

基础