set_pixel ( : : Pixel : )

Definition of a color lookup table index.

set_pixel sets pixel values: Colors (set_color, set_rgb, etc.) and greyvalues (set_grey) together are coded into a number, called pixel. This 'pixel' is an index in the color lookup table. It ranges from 0 to 1 in b/w images and 0 to 255 color images with 8 bit planes. It is different from the 'pixel' ("picture element") in image processing. Therefore HORUS distinguishes between pixel and image element (or grayvalue).

The current value can be queried with get_pixel.


Parameters

Pixel (input_control)
integer-array -> integer
color lookup table index.
Default value: 128
Range of values: 0 <= Pixel <= 255


Result

set_pixel returns TRUE, if the parameter is correct and a window is active. Otherwise an exception is raised.


Possible Predecessors

get_pixel


Possible Successors

disp_image, disp_region


Alternatives

set_rgb, set_color, set_hsi


See also

get_pixel, set_lut, disp_region, disp_image, disp_color



Copyright © 1996-1997 MVTec Software GmbH