Good day Yuri Gagarine,
the "Built-in Macro Functions"-Doc tells us:
"getPixel(x, y) Returns the value of the pixel at (x,y). Note that
pixels in RGB images contain red, green and blue components that need to
be extracted using shifting and masking. [...]"
The accompanying example tells us:
"v = getPixel(x,y);
red = (v>>16)&0xff; // extract red byte (bits 23-17)
green = (v>>8)&0xff; // extract green byte (bits 15-8)
blue = v&0xff; // extract blue byte (bits 7-0)"
HTH
Herbie
::::::::::::::::::::::::::::::::::::::
On 08.04.14 14:29, YuriGagarine wrote:
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html