Herror ::draw_lut (
    const HTuple &WindowHandle
)
void HWindow::DrawLut (
    
) const

Manipulate look-up-table (lut) interactively.

::draw_lut allows interactive manipulation of the look-up-table of the device currently displaying the output window.

By pressing and holding down the left mouse button one can change (from "left to right") the red-, green- and blue-intensity displayed in a 2 dimensional diagram with the gray values on the x-axis. The left mouse button also is used for choosing the color channel that should be changed. As an alternative, one can map pure gray levels (gray "color channel") to the gray values on the x-axis. The right mouse button is used for terminating the change-process. The modified look-up-table can be saved by ::write_lut and reloaded later by ::set_lut. ::get_lut succeeding ::draw_lut returns directly the RGB tuple of the look-up-table. These are suitable as input of ::set_lut.


Attention

::draw_lut can only be used on hardware supporting look-up-tables for the output and allow dynamic changing of the tables.


Parameters

WindowHandle (input_control)
window -> HTuple.long
Window identifier.


Example
read_image(&Image,"fabrik") ;
disp_image(Image,WindowHandle) ;
draw_lut(WindowHandle) ;
write_lut(WindowHandle,"my_lut") ;
...
read_image(&Image,"fabrik") ;
set_lut(WindowHandle,"my_lut") ;

Result

::draw_lut returns H_MSG_TRUE if the window is valid. Otherwise an exception handling is raised.


Possible Successors

::set_lut_style, ::set_lut, ::write_lut, ::disp_lut


Alternatives

::set_fix, ::set_rgb


See also

::write_lut, ::set_lut, ::get_lut, ::disp_lut


Module

System



Copyright © 1996-2002 MVTec Software GmbH