allow RGB color in grayscaleiamge

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

allow RGB color in grayscaleiamge

Manos COn
hi people,

I have built a macro in which I end up with a grayscale image. Due to the fact that the end values of this image are percentages, i.e. 0 to 100, the contrast is not that good and I need to color the grayscale with RGB values. I have tries the changeValues function which des not work because my end image is a 32-bit image and in greyscale.

Is there a way to programmatically change the values into color? Is there a way to allow the image to draw colors in grayscale?

thenks in advance for your replies,

Manos

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

Re: allow RGB color in grayscaleiamge

Christian Goosmann-2
Hi Manos,
if your Image is 32-bit greyscale containing only values between 0 and
100 it is bound to have virtually no contrast. You can adjust the range
with Image>Adjust>Brightness/Contrast. Then change the type into 8-bit
using Image>Type... . With your 8-bit image showing the right contrast
range in greyscale choose any colored Lookup Table in Image>Lookup
Tables... . To get an RGB image, then change the type into RGB using
Image>Type... again.
Very simple once you have played with these commands a bit.
Hth
Christian

---
Christian Goosmann
Mikroskopie
Max-Planck-Institut für Infektionsbiologie
Campus Charité Mitte
Charitéplatz 1
10117 Berlin
Tel.: +49 30 28460 388

Manos COn wrote:

> hi people,
>
> I have built a macro in which I end up with a grayscale image. Due to the fact that the end values of this image are percentages, i.e. 0 to 100, the contrast is not that good and I need to color the grayscale with RGB values. I have tries the changeValues function which des not work because my end image is a 32-bit image and in greyscale.
>
> Is there a way to programmatically change the values into color? Is there a way to allow the image to draw colors in grayscale?
>
> thenks in advance for your replies,
>
> Manos
>
> --
> 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: allow RGB color in grayscaleiamge

Manos COn
In reply to this post by Manos COn
thank you very much for your information. It works!

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