comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL tiff_write, palette class color
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL tiff_write, palette class color [message #6135] Fri, 19 April 1996 00:00
David Foster is currently offline  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
[Message index]
 
Read Message
Previous Topic: map_set problem
Next Topic: Re: regridding questions...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:54:26 PDT 2025

Total time taken to generate the page: 0.00333 seconds