AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2002

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2002.01.16 11:07 "How to interpret 16-bit GrayScale image?", by Bad Badtz
2002.01.16 12:52 "Re: How to interpret 16-bit GrayScale image?", by Marti Maria
2002.01.16 14:52 "Re: How to interpret 16-bit GrayScale image?", by Paul Beaty
2002.01.21 03:06 "Re: How to interpret 16-bit GrayScale image?", by Bad Badtz
2002.01.21 05:21 "Re: How to interpret 16-bit GrayScale image?", by Peter Montgomery
2002.01.21 09:59 "Re: How to interpret 16-bit GrayScale image?", by Marti Maria
2002.01.21 10:47 "Re: How to interpret 16-bit GrayScale image?", by Bad Badtz
2002.01.21 15:53 "Re: How to interpret 16-bit GrayScale image?", by Marti Maria
2002.01.21 15:24 "Re: How to interpret 16-bit GrayScale image?", by Michael Dechaine
2002.01.21 16:33 "Re: How to interpret 16-bit GrayScale image?", by Bob Friesenhahn
2002.01.21 17:23 "Re: How to interpret 16-bit GrayScale image?", by Daniel Mccoy
2002.01.21 23:06 "Re: How to interpret 16-bit GrayScale image?", by Marti Maria
2002.01.21 23:57 "Re: How to interpret 16-bit GrayScale image?", by Daniel Mccoy
2002.01.23 04:18 "Re: How to interpret 16-bit GrayScale image?", by Kevin D Quitt
2002.01.24 01:47 "Re: How to interpret 16-bit GrayScale image?", by Bad Badtz
2002.01.24 05:07 "Re: How to interpret 16-bit GrayScale image?", by Kevin D Quitt
2002.01.25 14:27 "Re: How to interpret 16-bit GrayScale image?", by Thomas Kumlehn

2002.01.21 15:53 "Re: How to interpret 16-bit GrayScale image?", by Marti Maria

Hi,
 
> I had constructed a windows bitmap using HBITMAPINFOHEADER and had hoped to 
> get an unsigned 16-bit grayscale image. But unfortunately, like what Marti 
> Maria and Peter had said, I got a colored image instead. I realized that 
> once the bitCount is more than 8 bits, the image is taken as RGB image with 
> no color table.
> 
> Thanks Marti for your help on converting the 16-bit grayscale image to 8 
> bit, but as I can't afford to lose the information, i might need to spend 
> more effort and convert the 16-bit to 24-bit instead.

Welcome, but I'm afraid you will not advance further, since even in 24-bit
mode you still get only 256 grays. From device point of view, you get gray
by setting R=G=B, so there are only 256 possible values. Gamma then does
collapse several of these values, so you could end in 200 or less effective
shades of gray. There are techniques to get more grays by specifying colors
not totally gray, i.e. (230, 231, 229). But the value of these depends heavely
of the monitor colorimetry, and most times this does give more headeaches 
that benefits.

 
> A question, does TIFF supports both unsigned 16-bit colored and grayscale 
> images?

Yes. TIFF can deal with almost anything. But note that TIFF is only a storage scheme,
not tied with  the display adapter, that usually can manage only 8 bps. There are some 
medical instruments rendering 11 bps, and some printers can even give more, but these 
are really expensive. TIFF in the other hand, can store images that no device can 
render (LogLuv ones, for example)

Regards,
Marti.