Herror ::write_lut (
    const HTuple &WindowHandle,
    const HTuple &FileName
)
void HWindow::WriteLut (
    const HTuple &FileName
) const

Write look-up-table (lut) as file.

::write_lut saves the look-up-table (resp. the part of it that is relevant for displaying image gray values) of the valid output window into a file named 'FileName.lut'. It can be read again later with ::set_lut.


Attention

::write_lut is only suitable for systems using 256 colors.


Parameters

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

FileName (input_control)
filename -> HTuple.char *
File name (of file containing the look-up-table).
Default value: '/tmp/lut'


Example
read_image(&Image,"affe") ;
disp_image(Image,WindowHandle) ;
draw_lut(WindowHandle) ;
write_lut(WindowHandle,"test_lut") ;

Result

::disp_lut returns H_MSG_TRUE if the window with the demanded properties (256 colors) is valid and the parameter (file-name) is correct. It returns H_MSG_FAIL if the specified file can't be opened. Otherwise an exception handling is raised.


Possible Predecessors

::draw_lut, ::set_lut


See also

::set_lut, ::draw_lut, ::set_pixel, ::get_pixel


Module

System



Copyright © 1996-2002 MVTec Software GmbH