draw_region ( : Region : : )

Interactive creation of a closed region.

draw_region produces an image. The region of that image spans exactly the image region entered interactively by mouse clicks (grey values remain undefined). Painting happens in the current ouput window while keeping the left mouse button pressed. The left mouse button even operates by clicking in the output window; through this a line between the previous clicked points is drawn. Clicking the right mouse button terminates input and closes the outline. Subsequently the image is "filled up". Also it contains the whole image area enclosed by the mouse.

Painting uses that color which has been set by set_color, set_rgb, etc. .


Attention

The output object's grey values are not defined.


Parameters

Region (output_object)
region -> object
Interactive created region.


Example
read_image(:Image:'fabrik':) >
disp_image(Image:::) >
draw_region(:Region::) >
reduce_domain(Image,Region:New::) >
regiongrowing__(New:Segmente:5,5,6,50:) >
set_colored(::12:) >
disp_region(Segmente:::).

Result

If a window is activated, draw_region returns TRUE. If necessary an exception is raised.


Possible Predecessors

open_window, set_window


Possible Successors

reduce_domain, disp_region, set_colored, set_line_width, set_draw


Alternatives

draw_circle, draw_ellipse, draw_rectangle1, draw_rectangle2


See also

draw_polygon, reduce_domain, fill_up, set_color



Copyright © 1996-1997 MVTec Software GmbH