Re: View 24-bit images [message #18821 is a reply to message #18815] |
Fri, 04 February 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Alvaro T. (atarela@usc.es ) writes:
> I' having problems about viewing 24-bit images.
> I have got an image in HDF format. The data is stored as INT (from -32000 to
> 32000) and use the HDF_... functions to get the image data. For viewing the
> data in the screen, I use:
>
> TV, imagedata, Order=1
>
> but almost I can't see anythig!. So, I try:
>
> TVScl, imagedata, Order=1
>
> Now I can see the image, but only 256 colors (or grey levels), so I'm losing
> bit values. Why?
> I'm using Windows in 32-bits mode and IDL has: !D.N_Colors=16777216,
> !D.Table_Size=256
>
> Who can help me? I'm a bit "lost" with managing colors in IDL.
Set the TRUE keyword to reflect the interleaving of your
24-bit image. Something like this:
TV, imagedata, True=1
Or, just use my TVIMAGE program, which is smart
enough to figure out if you have a 24-bit or 8-bit
image and set the proper keywords, decomposed state,
etc, etc. Saves you a LOT of coding to make the
display of an image device independent. :-)
http://www.dfanning.com/programs/tvimage.pro
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|