2009.06.14 13:24 "[Tiff] Tiff 16 bit and 32 bit images", by Keshab Neupane

2009.06.14 16:50 "Re: [Tiff] Tiff 16 bit and 32 bit images", by Kai-Uwe Behrmann

Am 14.06.09, 06:24 -0700 schrieb Keshab Neupane:

For this, I need to handle all types of images. I am having trouble with tiff 16 bits signed/unsigned integer and 32 bit float Does this 16/32 bit means they are colored images or they can be greyscale too?   images.

Yes, colour, grayscale or whatever is independent from the data type.

I am using TIFFReadScanline to read the datas, but the problem is my buffer(this is constraint) is char* and how can I access this data if they are 16/32 bit?

You can simply cast to the according type. uint16_t * my_16bit_per_sample_buffer = (uint16_t*) my_char_buffer;

And also, how does this data relate to bpp,bps and spp?

bpp - bit per pixel
bps - bit per sample
spp - samples per pixel

A 16-bit RGBA image has:
64 bpp
16 bps
  4 spp

hope this helps,

Kai-Uwe Behrmann
developing for colour management
www.behrmann.name + www.oyranos.org