Re: IDL tiff_write, palette class color [message #6135] |
Fri, 19 April 1996 00:00 |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
deb <summa@lanl.gov> wrote:
>
> I have a 2-D image which i've displayed using one of the predefined
> IDL color tables. I want to write out the color image to a
> tiff file. I can dump a greyscale tiff file by simply using
> the tiff-write command as described in the manual. When i try
> to dump a color image, however, i run into all kinds of trouble.
> The root of the problem (i think) lies in defining the
> red, green, and blue components in the tiff_write command.
If I understand you correctly, what you need to do to save the current
color table with the image to the tiff file is:
IDL> tvlct, r, g, b, /get
IDL> tiff_write, fname, array, red = r, green = g, blue = b
This assumes that you have used LOADCT or XLOADCT to load the
appropriate color table first.
Dave Foster
foster@bial1.ucsd.edu
|
|
|