color from txt images

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

color from txt images

Naomi Barth
Hi can someone tell me what I need to do to have a txt image that when I
open it in image J I will get colors.  The file currently numbers from
0-255, but that can be changed to some rgb format.  So far when I have tried
saving differnt image types at txt images (8-bit color, rgb, etc), and then
opening  them up again in image J, they were all greyscale.

Thank you very much
Naomi Barth
Reply | Threaded
Open this post in threaded view
|

Re: color from txt images

Gabriel Landini
On Wednesday 22 March 2006 16:44, Naomi Barth wrote:
> Hi can someone tell me what I need to do to have a txt image that when I
> open it in image J I will get colors.  The file currently numbers from
> 0-255, but that can be changed to some rgb format.  So far when I have
> tried saving differnt image types at txt images (8-bit color, rgb, etc),
> and then opening  them up again in image J, they were all greyscale.

You could apply a colour Look Up Table (LUT) to the loaded image.
For instance:
run("Fire");
or
run("Ice");

Cheers,
G.
Reply | Threaded
Open this post in threaded view
|

Re: color from txt images

Batishko, Charles R
In reply to this post by Naomi Barth
Interesting...I have just the opposite problem. I generate an array in
Excel that I save as a text file and import into ImageJ as a text file
and it always opens as a 24-bit RGB image. Since I always want grayscale
in this application, I have to manually change it to grayscale before
saving as a TIFF.

I assume your question has to do with the image mode. If, in fact, it
has to do with the absence of color, that was addressed by Landini.

Optiker
[hidden email]
 

> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On
> Behalf Of Naomi Barth
> Sent: Wednesday, March 22, 2006 8:45 AM
> To: [hidden email]
> Subject: color from txt images
>
> Hi can someone tell me what I need to do to have a txt image
> that when I open it in image J I will get colors.  The file
> currently numbers from 0-255, but that can be changed to some
> rgb format.  So far when I have tried saving differnt image
> types at txt images (8-bit color, rgb, etc), and then opening
>  them up again in image J, they were all greyscale.
>
> Thank you very much
> Naomi Barth
>
Reply | Threaded
Open this post in threaded view
|

Re: color from txt images

Batishko, Charles R
In reply to this post by Naomi Barth
In a direct offline reply to me, Wayne questioned how I import since an
imported text file should open as a 32-bit (float) image. I was properly
importing, however, embarassingly, when this first happened, and
neglecting that it was 32-bit, I incorrectly jumped to the conclusion
that it was RGB - somehow in spite of it being 32-bit and not 24 or
36-bit. Needing 8-bit gray scale, I just got into the habit of
immediately chnaging the mode to 8-bit grayscale every time I imported a
text file and forgot about the problem until I saw the post I replied
to.

Therefore...thanks to Wayne for calling attention to my ovesight and
error, and my apologies to any who caught that and spent any time
pondering it.

Optiker
[hidden email]
 

> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On
> Behalf Of Batishko, Charles R
> Sent: Monday, March 27, 2006 8:17 AM
> To: [hidden email]
> Subject: Re: color from txt images
>
> Interesting...I have just the opposite problem. I generate an
> array in Excel that I save as a text file and import into
> ImageJ as a text file and it always opens as a 24-bit RGB
> image. Since I always want grayscale in this application, I
> have to manually change it to grayscale before saving as a TIFF.
>
> I assume your question has to do with the image mode. If, in
> fact, it has to do with the absence of color, that was
> addressed by Landini.
>
> Optiker
> [hidden email]
>  
>
> > -----Original Message-----
> > From: ImageJ Interest Group [mailto:[hidden email]] On
> Behalf Of
> > Naomi Barth
> > Sent: Wednesday, March 22, 2006 8:45 AM
> > To: [hidden email]
> > Subject: color from txt images
> >
> > Hi can someone tell me what I need to do to have a txt
> image that when
> > I open it in image J I will get colors.  The file currently numbers
> > from 0-255, but that can be changed to some rgb format.  So
> far when I
> > have tried saving differnt image types at txt images (8-bit color,
> > rgb, etc), and then opening  them up again in image J, they
> were all
> > greyscale.
> >
> > Thank you very much
> > Naomi Barth
> >
>