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.16 12:52 "Re: How to interpret 16-bit GrayScale image?", by Marti Maria

Hi,

This means that this grayscale does use 65535 levels of gray to 
store the image. Note than there are devices, like some printers, 
that are not limited to 255 or minus of monitors.

You must convert to 8 bits per sample before display. If you don't 
care about gamma stuff, simply divide each pixel by 257 

One can just do a >> 8 to gain speed if don't care roundup, 
but this is not completly accurate, for example:

    0x2e9 = 745

   745 / 257 = 2.898, rounding = 3
   745 >> 8 = 2


Hope this helps.
Marti Maria.