AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2018.11.13 14:14 "[Tiff] TIFF image has depth 0, bits per sample value 16 and samples per pixel value of 1", by Olumide
2018.11.13 14:45 "Re: [Tiff] TIFF image has depth 0, bits per sample value 16 and samples per pixel value of 1", by Roger Leigh
2018.11.13 16:57 "Re: [Tiff] TIFF image has depth 0, bits per sample value 16 and samples per pixel value of 1", by Bob Friesenhahn

2018.11.13 14:14 "[Tiff] TIFF image has depth 0, bits per sample value 16 and samples per pixel value of 1", by Olumide

Dear List,

I'm trying to analyze an image that has:

depth 0
bits per sample value 16
samples per pixel value 1

... see below. What sort of image is this? It does not fit the mould of any of the image types here http://www.mit.edu/afs.new/sipb/project/scanner/arch/i386_rhel3/bin/html/vuesc13.htm

uint32 depth = 0;
uint16 bitsPerSample, samplesPerPixel;

// Returns 0
TIFFGetField( tif, TIFFTAG_IMAGEDEPTH, &depth );

// Returns 16

TIFFGetField( tif, TIFFTAG_BITSPERSAMPLE, &bitsPerSample );

// Returns 1

TIFFGetField( tif, TIFFTAG_SAMPLESPERPIXEL, &samplesPerPixel );

Regards,

- Olumide