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

Home » Public Forums » archive » Re: View 24-bit images
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: View 24-bit images [message #18819 is a reply to message #18815] Fri, 04 February 2000 00:00 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
"Alvaro T." wrote:

> 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

Alvaro,

Just so we're talking about the same thing, True Color images must have
dimensions of the form

[3, NX, NY] or [NX, 3, NY] or [NX, NY, 3]

where NX is the width of the image (number of columns), NY is the height of the
image (number of rows), and the dimension 3 refers to the red, green, and blue
image planes.

My IMDISP procedure does (IMHO) an excellent job of displaying True Color
images or Pseudo Color images, e.g.

read_jpeg, filepath('rose.jpg', subdir='examples/data'), image
imdisp, image
imdisp, image, order=1

Check out http://cimss.ssec.wisc.edu/~gumley/imdisp.html

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: READING MPEG FILES
Next Topic: 5.0.3 segfault?

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

Current Time: Sun Oct 12 12:16:23 PDT 2025

Total time taken to generate the page: 0.79906 seconds