Each pixel in a colour image has 3 components associated with it, the amount of red, green and blue in the pixel (R,G,B). A grayscale image has a single component, the intensity or luminance of the pixel, which determines how bright the pixel is. To convert a colour pixel to grayscale the red, green and blue components need to be combined to give a single luminance value. Each component is multiplied by a weighting and then the components are summed to give the luminance. Some common weightings are:
luminance = 0.333 R + 0.333 G + 0.334 B luminance = 0.299 R + 0.587 G + 0.114 B luminance = 0.2125 R + 0.7514 G + 0.0721 BThe first option is a simple average of the R,G,B values. Some computer systems have incorrectly computed brightness using this system. It does not match well with the properites of human vision.
The second option weights the R,G,B values to properly compute luminance for monitors as at the introduction of NTSC television in 1953. These values are still used in various video applications but do no acurately compute luminance for modern computer monitors.
The third option weights the R,G,B values to obtain the correct luminance for modern day computer monitors. Hence these values are used by default.
Other weightings can be used to make a particular colour more dominant. Usually your weightings would sum to 1 but the interface does not enforce this. Adjust the red, green and blue weightings by using the sliders. The value set by the slider will be displayed in the text area next to it. The text area is currently not editable.
Click the "Apply filter" button to update the grayscale filter to use your new weightings.