home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / graphics / tiff / unix / archive.z / archive / text0001.txt < prev    next >
Encoding:
Text File  |  1995-09-20  |  1.7 KB  |  47 lines

  1.  
  2. I have a question regarding the use of Lab in TIFF images. 
  3.  
  4. The "a" and "b" components are in the range -127 to +127.  My
  5. question is, how are these values stored in the TIFF file? 
  6.  
  7. The impression I get from the spec is that they are stored
  8. "as is", ie, as signed values in an 8-bit byte, although it
  9. is not explicitly stated anywhere.  It would seem
  10. preferable though to store them re-ranged as 0 - 255, ie,
  11. effectively add 127 to these components.  This is pretty
  12. much what happens to the Cb and Cr components for YCbCr
  13. (using the reference white and reference black field). 
  14.  
  15.  
  16. Simply storing -127 to +127 in a byte and then treating it
  17. as unsigned will place the extremes of the range (-127 and
  18. +127) right in the middle of the "new" range (0 through
  19. 255).  If lossy JPEG compression is performed that's
  20. expecting unsigned byte values as input, you'll get very
  21. bad things happening as -127 could easily change to +127
  22. (127 goes to 128 in the unsigned value) etc.  
  23.  
  24.  
  25. Is it as simple as defining reference black / reference
  26. white settings to perform the appropriate transform,
  27. like what happens with the Cb and Cr components of YCbCr? 
  28.  
  29. Lab is not mentioned at all in the reference white/black
  30. section of the colorimetry section of the spec. 
  31.  
  32.  
  33. Does anyone have any examples of Lab images that either
  34. they have generated or that they have picked up from
  35. somewhere?  If so, I'd appreciate a couple of them! 
  36.  
  37.  
  38. Thanks in advance,
  39.  
  40. - gordon
  41. ---
  42.     Never keep a dog and bark for yourself.            -- harrison
  43. Gordon Clare                                 Net: gordon@research.canon.oz.au
  44. Canon Information Systems Research Australia  Ph: +61 2 805 2738
  45. P.O. Box 313 North Ryde, NSW, Australia 2113 Fax: +61 2 805 2929
  46.  
  47.