disp_lut ( : : Row, Column, Scale : )

Graphical view of the look-up-table (lut).

disp_lut displays a graphical view of the look-up-table (lut) in the active window. A look-up-table defines the transformation of image gray values to colors/gray levels on the screen. On most systems this can be modified. disp_lut creates a graphical view of the table assigned to the currently used output window and displays it for every basic color (red, green, blue). Row and Column define the position of the centre of the graphic. Scale allows scaling of the graphic, whereas 1 means displaying all 256 values, 2 means displaying 128 values, 3 means displaying only 64 values, etc. Tables for monochrome-representations are displayed in the currently set color (see set_color, set_rgb, etc.). Tables for displaying "false colors" are viewed with red, green and blue for each color component.


Attention

draw_lut can only be used on hardware supporting look-up-tables for the output.


Parameters

Row (input_control)
point.y -> integer
Row of centre of the graphic.
Default value: 128
Range of values: 0 <= Row <= 511

Column (input_control)
point.x -> integer
Column of centre of the graphic.
Default value: 128
Range of values: 0 <= Column <= 511

Scale (input_control)
integer -> integer
Scaling of the graphic.
Default value: 1
List of values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Range of values: 0 <= Scale <= 20


Example
set_lut(::'color':) >
disp_lut(::256,256,1:) >
get_mbutton(:::_,_,_) >
set_lut(::'sqrt':) >
disp_lut(::128,128,2:).

Result

disp_lut returns TRUE if the hardware supports a look-up-table, a window is activated and the parameters are correct. Otherwise an exception is raised.


Possible Predecessors

set_lut


See also

open_window, open_textwindow, draw_lut, set_lut, set_window, set_fix, set_pixel, write_lut, get_lut, set_color



Copyright © 1996-1997 MVTec Software GmbH