Posted by
Michael Schmid on
Oct 28, 2016; 3:00pm
URL: http://imagej.273.s1.nabble.com/Create-LUT-tp5017497p5017499.html
Hi Iris,
simply create three arrays reds, blues, greens, each with 256 entries
(byte arrays if you do it in java)
Then for the first 10 entries, set reds[i] to 255 (leave the others zero).
For entries 10-19 being orange, set reds[i] = 255 and greens[i] = 128.
For green, obviously, greens[i] = 255
Macro: setLut(reds, greens, blues)
Java: LUT lut = new LUT(8, 256, reds, greens, blues);
Michael
________________________________________________________________
On 2016-10-28 16:00, Ihiertje wrote:
> Hi,
>
> I have a question about creating my own LUT.
> For my code I would like to create my own LUT with about 3 colours for which
> I can define the values.
> So for example:
> red --> 0-10
> orange -->10-20
> Green -->20-30
>
> However I can't find a way in image J to create this LUT. It is possible to
> select the colors, but not to give them specific values. Is it possible to
> make such a LUT in imagej or is there another way to do the same thing?
>
> Thanks!
>
> Iris
>
>
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/Create-LUT-tp5017497.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html