Re: reading channel display color
Posted by
Michael Schmid on
Oct 27, 2020; 5:18pm
URL: http://imagej.273.s1.nabble.com/reading-channel-display-color-tp5024126p5024130.html
Hi Leoncio,
the color information is in the LUT (color lookup table) of each channel.
In a macro, you can read the LUT with
getLut(reds, greens, blues)
and set it with
setLut(reds, greens, blues)
You have to transfer the LUT for each channel.
Michael
________________________________________________________________
On 27.10.20 16:52, Leoncio Vergara wrote:
> Hi, I have a very simple question. Is there a macro instruction to read the display color for a channel in image J? I can read the min and max display values for the gray values, I can also setup the color for a given channel, but if I want to et the information from an open image and transfer it to another one, I cant find the solution. I would appreciate if anybody could point me in the right direction.
>
> Thank you
>
> Leo Vergara
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html