get_region_runsT_get_region_runsGetRegionRunsGetRegionRunsget_region_runs(算子)

名称

get_region_runsT_get_region_runsGetRegionRunsGetRegionRunsget_region_runs — 访问区域的游程编码。

签名

get_region_runs(Region : : : Row, ColumnBegin, ColumnEnd)

Herror T_get_region_runs(const Hobject Region, Htuple* Row, Htuple* ColumnBegin, Htuple* ColumnEnd)

void GetRegionRuns(const HObject& Region, HTuple* Row, HTuple* ColumnBegin, HTuple* ColumnEnd)

void HRegion::GetRegionRuns(HTuple* Row, HTuple* ColumnBegin, HTuple* ColumnEnd) const

static void HOperatorSet.GetRegionRuns(HObject region, out HTuple row, out HTuple columnBegin, out HTuple columnEnd)

void HRegion.GetRegionRuns(out HTuple row, out HTuple columnBegin, out HTuple columnEnd)

def get_region_runs(region: HObject) -> Tuple[Sequence[int], Sequence[int], Sequence[int]]

描述

算子 get_region_runsget_region_runsGetRegionRunsGetRegionRunsGetRegionRunsget_region_runs returns the region data in the form of chord tuples. The chord representation is caused by examining a region line by line with ascending line number (= from “top” to “bottom”). Every line is passed from left to right (ascending column number); storing all starting and ending points of region segments (= chords). Thus a region can be described by a sequence of chords, a chord being defined by line number, starting and ending points (column number). The operator get_region_runsget_region_runsGetRegionRunsGetRegionRunsGetRegionRunsget_region_runs returns the three components of the chords in the form of tuples. In case of an empty region three empty tuples are returned.

注意

Only one region may be passed.

执行信息

参数

RegionRegionRegionRegionregionregion (输入对象)  region objectHRegionHObjectHRegionHobject

Output region.

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

Line numbers of the chords.

ColumnBeginColumnBeginColumnBeginColumnBegincolumnBegincolumn_begin (输出控制)  chord.x1-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column numbers of the starting points of the chords.

元素数量: ColumnBegin == Row

ColumnEndColumnEndColumnEndColumnEndcolumnEndcolumn_end (输出控制)  chord.x2-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column numbers of the ending points of the chords.

元素数量: ColumnEnd == Row

结果

算子 get_region_runsget_region_runsGetRegionRunsGetRegionRunsGetRegionRunsget_region_runs normally returns the value 2 ( H_MSG_TRUE )。 If more than one region is passed an exception is raised. 当输入为空(无可用输入区域)时,可设置行为通过算子 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>)

可能的前趋

thresholdthresholdThresholdThresholdThresholdthreshold, connectionconnectionConnectionConnectionConnectionconnection

替代

get_region_pointsget_region_pointsGetRegionPointsGetRegionPointsGetRegionPointsget_region_points

另见

copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj, gen_region_runsgen_region_runsGenRegionRunsGenRegionRunsGenRegionRunsgen_region_runs

模块

基础