set_pixelπ
Short descriptionπ
set_pixel β Define a color lookup table index.
Warningπ
set_pixel is obsolete and is only provided for
reasons of backward compatibility.
Signatureπ
set_pixel( window WindowHandle, integer Pixel )
Descriptionπ
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.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
WindowHandle (input_control) window β (handle)
Window handle.
Pixel (input_control) integer(-array) β (integer)
Color lookup table index.
Default: 128
Value range: 0 β€ Pixel β€ 255
Resultπ
set_pixel returns 2 (H_MSG_TRUE) if the parameter is correct and
the window is valid. Otherwise an exception is raised.
Combinations with other operatorsπ
Combinations
Possible predecessors
Possible successors
Alternatives
See also
Moduleπ
Foundation