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

Home » Public Forums » archive » Re: 32 bits 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: 32 bits IMAGES [message #6930] Fri, 30 August 1996 00:00
peter is currently offline  peter
Messages: 80
Registered: February 1994
Member
Mario Noyon (mnoyon) wrote:
: How can I precise (if I can do it) how many bits represent a pixel. Can I tell
: somewhere that a pixel is represnted by 8, 16, or 32 bits.
: I want to visualize indeed 32 bits images.

If they are 32 bit grayscale, then you need to map them to 8 bit, since
that is all the grayscales that IDL (and probably your monitor)
supports. BYTSCL is the appropriate command.

Depending on your platform, even 8 bits (256 levels) is optimistic,
because you'll run out of colormap entries first. For displaying
medical imagery, I normally use a 7 bit gamma corrected gray ramp as the
first 128 entries in my color table, leaving the upper part of the table
for highlight colors, etc. The gamma correction is essential for not
losing the darker parts of the image. To window/level the image, the
edges of the gray ramp are moved in and out. If you'd like a routine
that implements this, drop me a line.

Peter
[Message index]
 
Read Message
Previous Topic: Re: format problem
Next Topic: xloadct for 24-bit display

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

Current Time: Fri Oct 10 22:55:13 PDT 2025

Total time taken to generate the page: 0.56843 seconds