| Table of Contents / Graphics / Parameters | Operators |
set_pixel — Define a color lookup table index.
set_pixel( : : WindowHandle, Pixel : )
set_pixel sets pixel values: colors (set_color, set_rgb, etc.) and gray values (set_gray) are coded together 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 HALCON distinguishes between pixel and image element (or gray value).
The current value can be queried with get_pixel.
Window_id.
Color lookup table index.
Default value: 128
Typical range of values: 0 ≤ Pixel ≤ 255
set_pixel returns 2 (H_MSG_TRUE) if the parameter is correct and the window is valid. Otherwise an exception is raised.
get_pixel, set_lut, disp_region, disp_image, disp_color
Foundation
| Table of Contents / Graphics / Parameters | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |