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.16 17:12 "Re: Tiff 16 bit and 32 bit images + some more questions about tiff file format", by Keshab Neupane
2009.06.16 18:26 "Re: Tiff 16 bit and 32 bit images + some more questions about tiff file format", by Chris Cox
2009.06.16 21:50 "Re: Tiff 16 bit and 32 bit images + some more questions about tiff file format", by Keshab Neupane
2009.06.16 21:56 "Re: Tiff 16 bit and 32 bit images + some more questions about tiff file format", by Chris Cox
2009.06.16 22:18 "Re: Tiff 16 bit and 32 bit images + some more questions about tiff file format", by Toby Thain
2009.06.16 22:33 "Re: Tiff 16 bit and 32 bit images + some more questions about tiff file format", by Keshab Neupane
2009.06.16 19:23 "Re: Tiff 16 bit and 32 bit images + some more questions about tiff file format", by Bob Friesenhahn

2009.06.16 21:56 "Re: Tiff 16 bit and 32 bit images + some more questions about tiff file format", by Chris Cox

It doesn't say bilevel, it says min-is-black:  aka grayscale.
See the TIFF6 spec., section 3.

Zero is black, higher values are brighter.  For the integer forms, that
means that the full scale value is white.  For floating point the white
point is undefined, but is typically 1.0.

Chris


On 6/16/09 2:50 PM, "Keshab Neupane" <neupane.keshab@yahoo.com> wrote:

Hi,

Bilevel images only need 1 bit per pixel.
Larger values make no sense for bilevel images - I think you have made a
mistake in parsing those files.

Here, what I get from tiffinfo...please note that these are not normal tiff
images but geotiff images....

TIFF Directory at offset 0x8 (8)
  Image Width: 2160 Image Length: 900
 Bits/Sample: 16
 Sample Format: unsigned integer
  Compression Scheme: None
  Photometric Interpretation: min-is-black
 Samples/Pixel: 1
  Rows/Strip: 1
  Planar Configuration: single image plane
==> bps = 16, but bi-level images ??

 TIFF Directory at offset 0x8 (8)
  Image Width: 2160 Image Length: 900
 Bits/Sample: 16
  Sample Format: signed integer
 Compression Scheme: None
  Photometric Interpretation: min-is-black
 Samples/Pixel: 1
  Rows/Strip: 1
  Planar Configuration: single image plane
==> bps = 16, but signed integer sample format, and bi-level images ??

TIFF Directory at offset 0xac074 (704628) (why the offset isn't at 8)
 Image Width: 719 Image Length: 245
 Bits/Sample: 32
  Sample Format: IEEE floating point
 Compression Scheme: None
 Photometric Interpretation: min-is-black
 Samples/Pixel: 1
  Rows/Strip: 2
  Planar Configuration: single image plane
==> bps = 32, but bi-level-images and floating point sample format

This is what made me confused. Thanks to Chris and Bob for your support.
I just started playing with tiff files, definitely a long way to go. :)

Cheers,
Keshab