get_region_convexT_get_region_convexGetRegionConvexGetRegionConvexget_region_convex (算子名称)

名称

get_region_convexT_get_region_convexGetRegionConvexGetRegionConvexget_region_convex — Access convex hull as contour.

参数签名

get_region_convex(区域 : : : Rows, Columns)

Herror T_get_region_convex(const Hobject 区域, Htuple* Rows, Htuple* Columns)

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

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

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

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

def get_region_convex(区域: HObject) -> Tuple[Sequence[int], Sequence[int]]

描述

The operator 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.

运行信息

参数表

区域区域区域区域区域区域 (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

结果

The operator get_region_convexget_region_convexGetRegionConvexGetRegionConvexGetRegionConvexget_region_convex returns the value 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