Grayscale
From Includipedia, the inclusionist encyclopedia
| It has been suggested that this article or section be merged into monochrome. (Discuss) |
In computing, a grayscale or greyscale digital image is an image in which the value of each pixel is a single sample. Displayed images of this sort are typically composed of shades of gray, varying from black at the weakest intensity to white at the strongest, though in principle the samples could be displayed as shades of any color, or even coded with various colors for different intensities. Grayscale images are distinct from black-and-white images, which in the context of computer imaging are images with only two colors, black and white; grayscale images have many shades of gray in between. In most contexts other than digital imaging, however, the term "black and white" is used in place of "grayscale"; for example, photography in shades of gray is typically called "black-and-white photography". The term monochromatic in some digital imaging contexts is synonymous with grayscale, and in some contexts synonymous with black-and-white.
Grayscale images are often the result of measuring the intensity of light at each pixel in a single band of the electromagnetic spectrum (e.g. visible light).
The same picture in three different color modes. The picture on the left is the original photograph, in full color. The picture in the center is in grayscale; all the colors contained in it are black, white, or any shade of gray. The picture on the right is in black and white, or monochrome; the only colors used in the picture are black and white, with no intermediary grays.
[edit] Converting color to grayscale
To convert any color to its most approximate level of gray, first one must obtain the values of its red, green and blue (RGB) primaries.
Then, add 30% of the red value, 59% of the green value, and 11% of the blue value, together. Regardless of the scale employed (0.0 to 1.0, 0 to 255, 0% to 100%, etc.), the resultant number is the desired gray value, such that a new RGB color would have red, green, and blue values equal to the new number. These percentages are chosen due to the different relative sensitivity of the normal human eye to each of the primary colors (less sensitive to green, more to blue).
This is the method used to obtain the luminance in the YUV and related color models, used in standard color TV and video systems as PAL and NTSC, as well as in the L*a*b color model.
[edit] See also
- Binary image
- Halftone
- False-color
- Morphological image processing
- Channel (digital image)
- Sepia tone
- Duotone
- Cyanotype
[edit] External links
- Converting a Digital Color Photo Into Black and White, includes a background on color filter use in traditional film photography, how black and white conversion works, and a comparison of digital conversion techniques
- My Design Primer article
- http://www.stusharp.co.uk/GrayScaleOnline.aspx An online grayscale converter.de:Schwarzweiß
es:Escala de grises fr:Niveau de gris ka:ნაცრისფერი ფერის დონე pt:Nível de cinza ru:Серая шкала zh:灰度图像

