write_lut ( : : FileName : )

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 currently set 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

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


Example
read_image(:Image:'affe':) >
disp_image(Image:::) >
draw_lut(:::) >
write_lut(::'test_lut':).

Result

disp_lut returns TRUE if a window with the demanded properties (256 colors) is activated and the parameter (file-name) is correct. It returns FAIL if the specified file can't be opened. Otherwise an exception is raised.


Possible Predecessors

draw_lut, set_lut


See also

set_lut, draw_lut, set_pixel, get_pixel



Copyright © 1996-1997 MVTec Software GmbH