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
June 2009

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

2009.06.14 13:24 "Tiff 16 bit and 32 bit images", by Keshab Neupane
2009.06.14 16:50 "Re: Tiff 16 bit and 32 bit images", by Kai-uwe Behrmann
2009.06.14 23:11 "Re: Tiff 16 bit and 32 bit images", by Keshab Neupane
2009.06.14 23:48 "Re: Tiff 16 bit and 32 bit images", by Bob Friesenhahn
2009.06.15 00:00 "Re: Tiff 16 bit and 32 bit images", by Scott Ribe
2009.06.15 06:17 "Re: Tiff 16 bit and 32 bit images", by Joris Van Damme
2009.06.15 16:57 "Re: Tiff 16 bit and 32 bit images", by Chris Cox

2009.06.14 16:50 "Re: 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  images. Does this
> 16/32 bit means they are colored images or they can be greyscale too ?

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