get_region_index get_region_index GetRegionIndex GetRegionIndex get_region_index (算子名称)
名称
get_region_index get_region_index GetRegionIndex GetRegionIndex get_region_index
— Index of all regions containing a given pixel.
参数签名
Herror get_region_index (const Hobject 区域 , const Hlong Row , const Hlong Column , Hlong* Index )
Herror T_get_region_index (const Hobject 区域 , const Htuple Row , const Htuple Column , Htuple* Index )
def get_region_index (区域 : HObject, row : int, column : int) -> Sequence[int]
def get_region_index_s (区域 : HObject, row : int, column : int) -> int
描述
The operator get_region_index get_region_index GetRegionIndex GetRegionIndex GetRegionIndex get_region_index
returns the index
of all regions in 区域 区域 区域 区域 区域 区域
(range of values: 1 to n)
containing the test pixel (Row Row Row Row row row
,Column Column Column Column column column
), i.e.:
The returned indices can be used, e.g., in select_obj select_obj SelectObj SelectObj SelectObj select_obj
to
select the regions containing the test pixel.
注意
If the regions overlap more than one region might contain the pixel.
In this case all these regions are returned.
If no region contains the indicated pixel the
empty tuple (= no region) is returned.
运行信息
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Processed without parallelization.
参数表
区域 区域 区域 区域 区域 区域
(input_object) region-array →
object HRegion HObject HRegion Hobject
Regions to be examined.
Row Row Row Row row row
(input_control) point.y →
HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Line index of the test pixel.
Default:
100
Value range:
Row
Row
Row
Row
row
row
(lin)
Column Column Column Column column column
(input_control) point.x →
HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Column index of the test pixel.
Default:
100
Value range:
Column
Column
Column
Column
column
column
(lin)
Index Index Index Index index index
(output_control) integer(-array) →
HTuple Sequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Index of the regions containing the test pixel.
Complexity
If F is the area of the region and N is the number of regions the
mean runtime complexity is O(ln(sqrt(F)) * N).
结果
The operator get_region_index get_region_index GetRegionIndex GetRegionIndex GetRegionIndex get_region_index
returns the value 2 (
H_MSG_TRUE )
if the parameters are correct.
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>)
.
If necessary an exception is raised.
可能的前置算子
threshold threshold Threshold Threshold Threshold threshold
,
regiongrowing regiongrowing Regiongrowing Regiongrowing Regiongrowing regiongrowing
,
connection connection Connection Connection Connection connection
可替代算子
select_region_point select_region_point SelectRegionPoint SelectRegionPoint SelectRegionPoint select_region_point
参考其它
get_mbutton get_mbutton GetMbutton GetMbutton GetMbutton get_mbutton
,
get_mposition get_mposition GetMposition GetMposition GetMposition get_mposition
,
test_region_point test_region_point TestRegionPoint TestRegionPoint TestRegionPoint test_region_point
模块
Foundation