Name
select_region_pointselect_region_pointSelectRegionPointSelectRegionPoint — Choose all regions containing a given pixel.
The operator select_region_pointselect_region_pointSelectRegionPointSelectRegionPointSelectRegionPoint selects all regions from RegionsRegionsRegionsRegionsregions
containing the test pixel (RowRowRowRowrow,ColumnColumnColumnColumncolumn), 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.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
All regions containing the test pixel.
Line index of the test pixel.
Default value: 100
Column index of the test pixel.
Default value: 100
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
read_image(&Image,"fabrik");
open_window(0,0,-1,-1,0,"visible","",&WindowHandle);
regiongrowing(Image,&Seg,3,3,5.0,0);
set_color(WindowHandle,"red");
set_draw(WindowHandle,"margin");
do {
printf("Select the region with the mouse (End right buttonn \n");
get_mbutton(WindowHandle,&Row,&Column,&Button);
select_region_point(Seg,&Single,Row,Column);
disp_image(Image);
disp_region(Single,WindowHandle);
clear(Single);
} while(Button != 4);
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
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
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
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 select_region_pointselect_region_pointSelectRegionPointSelectRegionPointSelectRegionPoint 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>).
If necessary an exception is raised.
thresholdthresholdThresholdThresholdThreshold,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing,
connectionconnectionConnectionConnectionConnection
test_region_pointtest_region_pointTestRegionPointTestRegionPointTestRegionPoint
get_mbuttonget_mbuttonGetMbuttonGetMbuttonGetMbutton,
get_mpositionget_mpositionGetMpositionGetMpositionGetMposition
Foundation