gen_region_runs — 根据游程编码创建区域。
gen_region_runs( : Region : Row, ColumnBegin, ColumnEnd : )
算子 gen_region_runs creates a region described by the input
runlength structure. The runlength representation is created by examining
a region line by line with ascending line number (= from “top” to
“bottom”). Every line runs through from left to right
(ascending column number). All starting and ending points being stored
by region segments (=runs). Thus a region can be described
by a sequence of runs, a run being defined by line number
as well as starting and ending points (column number).
The storing is fastest when the runs are sorted. The order is as follows:
。
For runtime reasons, it is not checked whether the restriction
ColumnEnd >= ColumnBegin is fulfilled. Note that
if this restriction is violated, subsequent operations will likely
lead to errors or unexpected behavior.
Region (输出对象) region → object
Created region.
Row (输入控制) chord.y(-array) → (integer)
Lines of the runs.
默认值: 100
建议值: 0, 50, 100, 200, 300, 500
值范围:
Row
(lin)
最小增量: 1
建议增量: 10
ColumnBegin (输入控制) chord.x1(-array) → (integer)
Columns of the starting points of the runs.
元素数量: ColumnBegin == Row
默认值: 50
建议值: 0, 50, 100, 200, 300, 500
值范围:
ColumnBegin
(lin)
最小增量: 1
建议增量: 10
ColumnEnd (输入控制) chord.x2(-array) → (integer)
Columns of the ending points of the runs.
元素数量: ColumnEnd == Row
默认值: 200
建议值: 50, 100, 200, 300, 500
值范围:
ColumnEnd
(lin)
最小增量: 1
建议增量: 10
限制:
ColumnEnd >= ColumnBegin
F shall be the number of pixels. If the pixels are sorted in ascending order the runtime complexity is: O(F), otherwise it is O(log(F)*F).
If the data is correct the operator gen_region_runs 返回值 2 (
H_MSG_TRUE)
,否则将抛出异常。
The clipping according to the current image format is set via the
operator set_system('clip_region',<'true'/'false'>)。If an empty region is created (by the clipping or by an empty input)
the operator
set_system('store_empty_region',<'true'/'false'>) determines
whether the region is returned or an empty object tuple.
gen_region_points,
gen_region_polygon,
gen_region_line,
gen_region_polygon_filled
基础