select_region_point select_region_point SelectRegionPoint SelectRegionPoint select_region_point (算子名称)
名称
select_region_point select_region_point SelectRegionPoint SelectRegionPoint select_region_point — Choose all regions containing a given pixel.
参数签名
def select_region_point (区域 : HObject, row : int, column : int) -> HObject
描述
该算子 select_region_point select_region_point SelectRegionPoint SelectRegionPoint SelectRegionPoint select_region_point selects all regions from 区域 区域 区域 区域 区域 区域
containing the test pixel (Row Row Row Row row row ,Column Column Column Column column column ), i.e.:
注意
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.
运行信息
多线程类型:可重入(与非独占操作符并行运行)。
多线程作用域:全局(可以从任何线程调用)。
在元组级别自动并行化。
参数表
区域 区域 区域 区域 区域 区域 (input_object) region-array → object HRegion HObject HRegion Hobject
Regions to be examined.
DestRegions DestRegions DestRegions DestRegions destRegions dest_regions (output_object) region-array → object HRegion HObject HRegion Hobject *
All regions containing the test pixel.
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
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
例程 (HDevelop)
read_image(Image,'fabrik')
regiongrowing(Image,Seg,3,3,5,0)
dev_set_color('red')
dev_set_draw('margin')
Button := 1
while (Button == 1)
get_mbutton(WindowHandle,Row,Column,Button)
select_region_point(Seg,Single,Row,Column)
dev_display(Image)
dev_display(Single)
endwhile
例程 (C)
read_image(&Image,"fabrik");
regiongrowing(Image,&Seg,3,3,5.0,0);
do {
printf("Select the region with the mouse (End right button \n");
get_mbutton(WindowHandle,&Row,&Column,&Button);
select_region_point(Seg,&Single,Row,Column);
clear(Single);
} while(Button != 4);
例程 (HDevelop)
read_image(Image,'fabrik')
regiongrowing(Image,Seg,3,3,5,0)
dev_set_color('red')
dev_set_draw('margin')
Button := 1
while (Button == 1)
get_mbutton(WindowHandle,Row,Column,Button)
select_region_point(Seg,Single,Row,Column)
dev_display(Image)
dev_display(Single)
endwhile
例程 (HDevelop)
read_image(Image,'fabrik')
regiongrowing(Image,Seg,3,3,5,0)
dev_set_color('red')
dev_set_draw('margin')
Button := 1
while (Button == 1)
get_mbutton(WindowHandle,Row,Column,Button)
select_region_point(Seg,Single,Row,Column)
dev_display(Image)
dev_display(Single)
endwhile
例程 (HDevelop)
read_image(Image,'fabrik')
regiongrowing(Image,Seg,3,3,5,0)
dev_set_color('red')
dev_set_draw('margin')
Button := 1
while (Button == 1)
get_mbutton(WindowHandle,Row,Column,Button)
select_region_point(Seg,Single,Row,Column)
dev_display(Image)
dev_display(Single)
endwhile
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).
结果
该算子 select_region_point select_region_point SelectRegionPoint SelectRegionPoint SelectRegionPoint select_region_point 返回值 2 (
H_MSG_TRUE )
如果参数都是正确的。
The behavior in case of empty input (no input regions available) is
set via 该算子 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
可替代算子
test_region_point test_region_point TestRegionPoint TestRegionPoint TestRegionPoint test_region_point
参考其它
get_mbutton get_mbutton GetMbutton GetMbutton GetMbutton get_mbutton ,
get_mposition get_mposition GetMposition GetMposition GetMposition get_mposition
模块
Foundation