2007.01.31 16:39 "[Tiff] 16bit grayscale with colormap", by Reinhard Mayr aka Czerwinski

2007.01.31 17:36 "Re: [Tiff] 16bit grayscale with colormap", by Phillip Crews

On 31-Jan-07, at 2:39 PM, Reinhard Mayr aka Czerwinski wrote:

I deal with 16bit grayscale TIFFs. The files originate from a 12bit CCD, so the linear conversion 16bit->8bit turns my image almost black.

Maybe I'm missing something, but why don't you just multiply by 16 before storing in TIFF?

Or by 16 1/273 (65535/4095) to preserve white.

(w<<4)|(w>>8) is usually close enough.

- Phillip