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