get_region_pointsT_get_region_pointsGetRegionPointsGetRegionPointsget_region_points (算子名称)

名称

get_region_pointsT_get_region_pointsGetRegionPointsGetRegionPointsget_region_points — Access the pixels of a region.

参数签名

get_region_points(区域 : : : Rows, Columns)

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

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

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

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

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

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

描述

The operator get_region_pointsget_region_pointsGetRegionPointsGetRegionPointsGetRegionPointsget_region_points returns the region data in the form of coordinate lists. The coordinates are sorted in the following order:

get_region_pointsget_region_pointsGetRegionPointsGetRegionPointsGetRegionPointsget_region_points returns the coordinates in the form of tuples. An empty region is passed as empty tuple.

注意

Only one region may be passed.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region objectHRegionHObjectHRegionHobject

This region is accessed.

RowsRowsRowsRowsrowsrows (output_control)  coordinates.y-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Line numbers of the pixels in the region

ColumnsColumnsColumnsColumnscolumnscolumns (output_control)  coordinates.x-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column numbers of the pixels in the region.

Number of elements: Columns == Rows

结果

The operator get_region_pointsget_region_pointsGetRegionPointsGetRegionPointsGetRegionPointsget_region_points normally returns the value 2 ( H_MSG_TRUE) . If more than one connection component is passed an exception is raised. The behavior in case of empty input (no input regions available) is set via the operator 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>).

可能的前置算子

sobel_ampsobel_ampSobelAmpSobelAmpSobelAmpsobel_amp, thresholdthresholdThresholdThresholdThresholdthreshold, connectionconnectionConnectionConnectionConnectionconnection

可替代算子

get_region_runsget_region_runsGetRegionRunsGetRegionRunsGetRegionRunsget_region_runs

参考其它

copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPointsgen_region_points

模块

Foundation