set_comprise ( : : Mode : )

Definition of the image matrix output clipping.

set_comprise defines the image matrix output clipping. If Mode is set to 'object', only greyvalues beloning to the output object are displayed. If set to 'image', the whole image matrix is displayted. Default is 'object'.


Attention

If Mode was set to 'image', undefined greyvalues may be displayed. Depending on the context they are black or can have random content. See the examples.


Parameters

Mode (input_control)
string -> string
clipping mode for greyvalue output.
Default value: 'object'
List of values: 'image', 'object'


Example
open_window(::0,0,-1,-1,'root','visible','':) >
read_image(:Image:'fabrik':) >
threshold__(Image:Seg:100,255:) >
set_system(::'init_new_image','false':) >
sobel_amp(Image:Sob:'sum_abs',3:) >
disp_image(Sob:::) >
get_comprise(:::Mode) >
fwrite_string(::['Current mode for grey values: ',Mode]:) >
fnew_line(:::) >
set_comprise(::'image':) >
get_mbutton(:::_,_,_) >
disp_image(Sob:::) >
fwrite_string(::['Current mode for grey values: image']:) >
fnew_line(:::).

Result

set_comprise returns TRUE, if Mode is correct and a window is active. Otherwise an exception is raised.


Possible Predecessors

get_comprise


Possible Successors

disp_image


See also

get_comprise, disp_image, disp_color



Copyright © 1996-1997 MVTec Software GmbH