Colour the image with different CT intensity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Colour the image with different CT intensity

Yongqiang Chen
Hi ImageJ users,

I want to know how to set colour for a continuum intensity range. For example, I want to set the colour from Red to pink for intensity from 255 to 0. Can ImageJ do this work?

Best Regards,
Yongqiang


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Colour the image with different CT intensity

Michael Schmid
Hi Yongqiang,

You need to create a suitable lookup table (=LUT).

Use Image>Color>Edit LUT.
Press "Set", have 2 colors (with interpolation).
Click on one color field to set it to red (R=255, G=0, B=0).
Set the other color to pink (R=255, G=128, B=128).
For more complicated luts (e.g. from red to pink to yellow) you need
more than two colors.

If you need this LUT often, save it into the ImageJ/luts directory. When
you restart ImageJ, your new LUT will appear in the Image>Lookup Tables
menu (LUTs in the "luts" directory appear below the 2nd separator line
of that menu).


Michael
________________________________________________________________
On 23.10.19 19:07, Yongqiang Chen wrote:

> Hi ImageJ users,
>
> I want to know how to set colour for a continuum intensity range. For example, I want to set the colour from Red to pink for intensity from 255 to 0. Can ImageJ do this work?
>
> Best Regards,
> Yongqiang
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Colour the image with different CT intensity

Cammer, Michael-2
In reply to this post by Yongqiang Chen
See https://imagej.nih.gov/ij/developer/macro/functions.html

setLut(reds, greens, blues)
Creates a new lookup table and assigns it to the current image. Three input arrays are required, each containing 256 intensity values. See the LookupTables macros for examples.

 Cheers-
Michael C.

-----Original Message-----
From: Yongqiang Chen <[hidden email]>

Hi ImageJ users,

I want to know how to set colour for a continuum intensity range. For example, I want to set the colour from Red to pink for intensity from 255 to 0. Can ImageJ do this work?

Best Regards,
Yongqiang

 

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Colour the image with different CT intensity

Yongqiang Chen
Thank you, Michael.
It really helps. Tons of thank you.

Cheers,
Yongqiang

-----Original Message-----
From: Cammer, Michael <[hidden email]>
Sent: 23 October 2019 18:52
To: [hidden email]
Subject: Re: Colour the image with different CT intensity

See https://imagej.nih.gov/ij/developer/macro/functions.html

setLut(reds, greens, blues)
Creates a new lookup table and assigns it to the current image. Three input arrays are required, each containing 256 intensity values. See the LookupTables macros for examples.

 Cheers-
Michael C.

-----Original Message-----
From: Yongqiang Chen <[hidden email]>

Hi ImageJ users,

I want to know how to set colour for a continuum intensity range. For example, I want to set the colour from Red to pink for intensity from 255 to 0. Can ImageJ do this work?

Best Regards,
Yongqiang

 

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html