2002.01.16 11:07 "How to interpret 16-bit GrayScale image?", by Bad Badtz

2002.01.16 16:12 "Re: How to interpret 16-bit GrayScale image?", by Martí 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.