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
December 2006

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

2006.12.05 15:52 "Grayscale, or is it?", by Joris Van Damme
2006.12.05 17:18 "Re: Grayscale, or is it?", by Bob Friesenhahn
2006.12.05 17:34 "Re: Grayscale, or is it?", by Joris Van Damme
2006.12.05 17:45 "Re: Grayscale, or is it?", by Bob Friesenhahn
2006.12.05 18:44 "Re: Grayscale, or is it?", by Joris Van Damme
2006.12.05 22:10 "Re: Grayscale, or is it?", by Frank Warmerdam
2006.12.05 20:37 "Re: Grayscale, or is it?", by Joris Van Damme
2006.12.05 21:16 "Re: Grayscale, or is it?", by Edward Lam
2006.12.05 21:30 "Re: Grayscale, or is it?", by Joris Van Damme
2006.12.05 22:28 "Re: Grayscale, or is it?", by Edward Lam
2006.12.05 22:41 "Re: Grayscale, or is it?", by Jean-yves Le Ridant
2006.12.05 23:13 "Re: Grayscale, or is it?", by Bob Friesenhahn
2006.12.05 23:29 "Re: Grayscale, or is it?", by Phillip Crews
2006.12.06 02:05 "Re: Grayscale, or is it?", by Graeme Gill
2006.12.05 22:56 "Re: Grayscale, or is it?", by Glenn Widener
2006.12.05 23:26 "Re: Grayscale, or is it?", by Toby Thain
2006.12.06 01:58 "Re: Grayscale, or is it?", by Graeme Gill
2006.12.06 04:45 "Re: Grayscale, or is it?", by Edward Lam
2006.12.06 20:56 "Re: Grayscale, or is it?", by Joris Van Damme
2006.12.06 22:19 "Re: Grayscale, or is it?", by Graeme Gill
2006.12.06 23:30 "Re: Grayscale, or is it?", by Joris Van Damme
2006.12.07 01:28 "Re: Grayscale, or is it?", by Graeme Gill
2006.12.07 07:45 "Re: Grayscale, or is it?", by Joris Van Damme
2006.12.06 20:56 "Re: Grayscale, or is it?", by Joris Van Damme
2006.12.06 21:57 "Re: Grayscale, or is it?", by Graeme Gill

2006.12.05 22:56 "Re: Grayscale, or is it?", by Glenn Widener

> Anyone has any advice on this matter?

Some, briefly.
 
> The TIFF spec, in "Section 4: Grayscale images" does not contain a good
> definition of grayscale. However, on page 73, "Comments for TIFF
> writers", in a discussion of gamma, it says "Be aware that the
> PhotometricInterpretation value of 0 or 1 (grayscale) implies linear
> data because no gamma is specified. The PhotometricInterpretation value
> of 2 (RGB data) specifies the NTSC gamma of 2.2 as a default."

We (SwiftView) used to obey the spec regarding a default gamma of 2.2. 
But we found no one else that does, so we can't either, and we changed
the default to a straight linear device RGB.  "No one else" includes at
least.Microsoft Office Document Imaging and Paint Shop Pro 6. 

> Now, what is linear data? Linear to what? What is grayscale, for that
> matter?

Linear means literally read, write and send the values to your display
unchanged - "linear device values".  If you don't know what the
correction is, or haven't been told, don't do any.
 
> 1) Greyscale is R=G=B. I think this interpretation is consistent with
> most common practice. It is also consistent with the LibTiff RGBA
> interface implementation, in that this just sets R, G, and B, to the
> greyscale read from the TIFF. It is however a clear violation of the
> above quoted remark on gamma.

The standard conversion from RGB to gray, documented in the textbooks, is
grey level =  .33R+.5G+.17B.  So a unitary conversion back to RGB is
fine.  Off the cuff, I would convert greyscale to RGB, apply whatever
color correction you wish, then convert back.  But then I'm not a color
space expert.  Converting gray levels 1:1 to the intensity component of a
color space that has an intensity component makes perfect sense to me.