get_region_convexT_get_region_convexGetRegionConvexGetRegionConvex (Operator)

Name

get_region_convexT_get_region_convexGetRegionConvexGetRegionConvex — Access convex hull as contour.

Signature

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)

Description

The operator get_region_convexget_region_convexGetRegionConvexGetRegionConvexGetRegionConvex returns the convex hull of a region as polygon. The polygon is the minimum result of line (RowsRowsRowsRowsrows) and column coordinates (ColumnsColumnsColumnsColumnscolumns) 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_convexGetRegionConvexGetRegionConvexGetRegionConvex returns the coordinates in the form of tuples. An empty region is passed as empty tuple.

Execution Information

Parameters

RegionRegionRegionRegionregion (input_object)  region objectHRegionHRegionHobject

Output region.

RowsRowsRowsRowsrows (output_control)  contour.y-array HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Line numbers of contour pixels.

ColumnsColumnsColumnsColumnscolumns (output_control)  contour.x-array HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column numbers of the contour pixels.

Number of elements: Columns == Rows

Result

The operator get_region_convexget_region_convexGetRegionConvexGetRegionConvexGetRegionConvex returns the value 2 (H_MSG_TRUE).

Possible Predecessors

thresholdthresholdThresholdThresholdThreshold, skeletonskeletonSkeletonSkeletonSkeleton, dyn_thresholddyn_thresholdDynThresholdDynThresholdDynThreshold

Possible Successors

disp_polygondisp_polygonDispPolygonDispPolygonDispPolygon

Alternatives

shape_transshape_transShapeTransShapeTransShapeTrans

See also

select_objselect_objSelectObjSelectObjSelectObj, get_region_contourget_region_contourGetRegionContourGetRegionContourGetRegionContour

Module

Foundation