home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / graphics / 8854 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  4.7 KB

  1. Path: sparky!uunet!mcsun!uknet!mucs!lilleyc
  2. From: lilleyc@cs.man.ac.uk (Chris Lilley)
  3. Newsgroups: comp.graphics
  4. Subject: Re: Is there a mathematical relationship RGB -> wavelength?
  5. Message-ID: <5760@m1.cs.man.ac.uk>
  6. Date: 14 Aug 92 13:32:23 GMT
  7. References: <92225.171906POLOWINJ@QUCDN.QueensU.CA> <dangold1.713711275@vincent1.iastate.edu> <1992Aug13.233117.21185@cco.caltech.edu>
  8. Sender: news@cs.man.ac.uk
  9. Reply-To: lilleyc@cs.man.ac.uk (Chris Lilley)
  10. Organization: Department of Computer Science, University of Manchester UK
  11. Lines: 108
  12.  
  13. In article <1992Aug13.233117.21185@cco.caltech.edu>
  14. nyet@cco.caltech.edu (n liu) writes: 
  15.  
  16. >dangold1@iastate.edu (Daniel M Goldman) writes:
  17.  
  18. >>In <92225.171906POLOWINJ@QUCDN.QueensU.CA> Joel Polowin
  19. <POLOWINJ@QUCDN.QueensU.CA> writes: 
  20.  
  21. >>> > For curiosity's sake, I was wondering if it is possible to take a set
  22. >>> > of RGB color fractions and come up with an approximate wavelength of
  23. >>> > the observed mixture.  [...]
  24.  
  25. >>    In dealing with real light, we run into metamers, colors which look
  26. >>    the same under one light source, but look like different colors
  27. >>    under a different light source. [...]
  28.  
  29. >Basically, the three coordinate system was made up since we have 3 mostly
  30. >independent color receptors. 
  31.  
  32. No, it was made up because matching studies showed that many colours
  33. could be matched with only three lights. All colours can be matched
  34. with any three colours, if you allow them the clever property of
  35. negative contributions.
  36.  
  37. This does not relate directly to the cones in the retina.
  38.  
  39. >RGB space manages to cover most (but not all)
  40. >of the color gamut we are able to see. 
  41.  
  42. Actually , a typical monitor covers less than a third of the colours.
  43. But it covers the most common, less vivid ones.
  44.  
  45. >Keep in mind that our color sense is
  46. >extremely crude, i.e. we can't tell the difference between pure magenta
  47. >and a spectrum that contains a spike at blue and a spike at red. 
  48.  
  49. Yes, all colours are seen as a single sensation.
  50.  
  51. >This is because
  52. >our receptors are stimulated "identically" in both cases. 
  53.  
  54. Not necessarily. There is a lot of processing going on, and a lot of
  55. psychological effects to consider.
  56.  
  57. >CIE did a huge survey
  58. >with a bunch of subjects (does this look the same distance in blue to this 
  59. >sample as the distance in blue between these other samples? etc.) and came
  60. >up with 
  61.  
  62. A set of matching functions for the three lamps they were using (the
  63. amount of each lamp required to match each single-wavelength colour
  64. (down to 1nm bands) throughout the visible spectrum. They transformed
  65. these to another set of imaginary primaries which do not ever have to
  66. be mixed in negative amounts to match any visible colour.
  67.  
  68. >an average cone response for each of the three cones. 
  69.  
  70. No, but I see why you said this.
  71.  
  72. >(foley and van damn has some stuff on this i think). 
  73.  
  74. Very little, and that not very clear. FvDFH is a great book for c.g
  75. geometry and stuff, but the section on colour is IMHO weak.
  76.  
  77. >The CIE colorspaces are a very close
  78. >approximation to these responses. 
  79.  
  80. The CIE colourspace is *exactly* these responses. Given the measured
  81. spectrum of a colour, the matching functions are used to compute the
  82. amount of each CIE primary required to match each band of wavelengths
  83. (by multiplication, ie a weighting scheme).
  84.  
  85. Adding these amounts over the whole spectrum gives the amount of CIE
  86. primaries to match the given colour. This is the CIE XYZ model,
  87. published in 1931
  88.  
  89. >In any case, you can look up these response
  90. >curves and do a bit of math by superposing the responses to a particular
  91. >wavelength and then convert to RGB (i forget what the standard wavelengths
  92. >are for RGB... 
  93.  
  94. Pretty close, see above. As you note, colours are indivisible
  95. sensations so by this point the actual wavelengths have become lost.
  96. If you think of it as information reduction - 10nm samples (say) from
  97. 380nm to 730 nm is a lot of info, boiled down to just 3 numbers (XYZ).
  98. The wavelength info has been lost by this point.
  99.  
  100. RGB do not correspond to individual wavelengths. They are not spectral
  101. (monochromatic) colours. Also, each RGB device has *different* colours
  102. of RGB (in some cases, very different. The NTSC monitor is a good
  103. example).
  104.  
  105. Given a colour in XYZ, and the spec of your monitor, and the gamma, an
  106. XYZ value can be converted to RGB for any desired monitor.
  107.  
  108.  
  109. >nyet@cco.caltech.edu
  110. >nyet@aerospace.aero.org
  111.  
  112.  
  113. --
  114. Chris Lilley
  115. ---------------------------------------------------------------------------
  116. Technical Author, ITTI Computer Graphics and Visualisation Training Project
  117. Computer Graphics Unit, Manchester Computing Centre, Manchester, UK
  118. Internet:   lilley@cgu.mcc.ac.uk        Janet:   lilley@uk.ac.mcc.cgu
  119. Voice:      +44 (0)61 275 6095          Fax:     +44 (0)61 275 6040
  120. ---------------------------------------------------------------------------
  121.