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.
write_lut is only suitable for systems using 256 colors.
FileName (input_control) |
filename.named -> string |
File name (of file containing the look-up-table). | |
Default value: '/tmp/lut' |
read_image(:Image:'affe':) > disp_image(Image:::) > draw_lut(:::) > write_lut(::'test_lut':).
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.
set_lut, draw_lut, set_pixel, get_pixel