home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / graphics / 12000 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.3 KB

  1. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!mucs!lilleyc
  2. From: lilleyc@cs.man.ac.uk (Chris Lilley)
  3. Newsgroups: comp.graphics
  4. Subject: Re: What is this Grayscaling Formula called ??
  5. Message-ID: <6760@m1.cs.man.ac.uk>
  6. Date: 17 Nov 92 02:20:59 GMT
  7. References: <1duplpINN8h4@uwm.edu>
  8. Sender: news@cs.man.ac.uk
  9. Organization: Dept Computer Science, University of Manchester, U.K.
  10. Lines: 48
  11.  
  12. In article <1duplpINN8h4@uwm.edu> govind@point.cs.uwm.edu (Govind
  13. Seshadri) writes: 
  14.  
  15. >I was wondering as to what the following formula which obtains the
  16. >corrosponding Grayscale (luminance) of the RGB triplet was called ?
  17. >i.e. what is the name of this formula...
  18.  
  19. >Grayscale =  0.299 * Red + 0.587 * Green + 0.114 * Blue ;
  20.  
  21. It is called the NTSC formula.
  22.  
  23. >What are the origins or the logic behind specifying these values ?
  24.  
  25. The origin of the formula is the US TV broadcast industry. The formula
  26. gives the value of one of the three components that go to make up an
  27. encoded TV picture.
  28.  
  29. It also gives you the measured brightness of that RGB colour if you
  30. were to first gamma correct the RGB values by a value of 2.2, then
  31. display it on a 1950s TV set.  Really.
  32.  
  33. >I have experimented with different values for the same but obviously
  34. >these seem to give me the best results.....
  35.  
  36. I suggest you continue your experiments. I very much doubt that these
  37. figure - to three decimals! - are the ones that give you the best results.
  38.  
  39. Remember you must first gamma correct the RGB values so the light
  40. levels are linear. Then try working around the following values
  41.  
  42.     0.2 R + 0.7 G + 0.1 B
  43.  
  44. as a basis for experimentation.
  45.  
  46. If you want to calculate accurate values, get the chromaticities of
  47. your monitor from the manufacturers and work them out. Mail me if you
  48. need to know how to do this. But for a rough greyscale, nothing fancy,
  49. just try experimenting round the values I suggested which are more
  50. typical of modern computer monitors.
  51.  
  52. --
  53. Chris Lilley
  54. ---------------------------------------------------------------------------
  55. Technical Author, ITTI Computer Graphics and Visualisation Training Project
  56. Computer Graphics Unit, Manchester Computing Centre, Manchester, UK
  57. Internet:   lilley@cgu.mcc.ac.uk        Janet:   lilley@uk.ac.mcc.cgu
  58. Voice:      +44 (0)61 275 6095          Fax:     +44 (0)61 275 6040
  59. ---------------------------------------------------------------------------
  60.