Invideo,luma () represents the brightness in an image (the "black-and-white" or achromatic portion of the image).[1][2][3][4] Luma is typically paired withchrominance.[3][4] Luma represents theachromatic image, while the chroma components represent thecolor information. ConvertingR′G′B′ sources (such as the output of athree-CCD camera) into luma and chroma allows forchroma subsampling: because human vision has finer spatial sensitivity toluminance ("black and white") differences than chromatic differences, video systems can store and transmit chromatic information at lower resolution, optimizing perceived detail at a particular bandwidth.[3]
| 255, 147, 255 | 255, 170, 170 | 211, 211, 0 | |
| 192, 192, 255 | 200, 200, 200 | 122, 244, 0 | |
| 0, 235, 235 | 0, 250, 125 | 0, 255, 0 | |
| RGB values of example colors with the same relative luminance as the lightest primary color (green) using originalNTSC (1953) primaries for ' (gamma correction) = 2.2 | |||
| 255, 203, 255 | 255, 208, 208 | 227, 227,0 | |
| 216, 216, 255 | 219, 219, 219 | 124, 248, 0 | |
| 0, 244, 244 | 0, 252, 126 | 0, 255, 0 | |
| RGB values of example colors with the same relative luminance as the lightest primary color (green) usingBT. 709 primaries for ' (gamma correction) = 2.2 | |||
Luma is the weighted sum of gamma-compressed R′G′B′ components of a color video—theprime symbols ′ denotegamma compression. The word was proposed to prevent confusion between luma as implemented in video engineering andrelative luminance as used in color science (i.e. as defined byCIE). Relative luminance is formed as a weighted sum oflinear RGB components, not gamma-compressed ones. Even so, luma is sometimes erroneously called luminance.[2]SMPTE EG 28 recommends the symbol to denote luma and the symbol to denote relative luminance.[1]
While luma is more often encountered, relative luminance is sometimes used in video engineering when referring to the brightness of a monitor. The formula used to calculate relative luminance uses coefficients based on theCIE color matching functions and the relevant standard chromaticities of red, green, and blue (e.g., the originalNTSC primaries,SMPTE C, orRec. 709).
For the Rec. 709 (andsRGB) primaries, the linear combination, based on pure colorimetric considerations and the definition of relative luminance is:
The formula used to calculate luma in the Rec. 709 spec arbitrarily also uses these same coefficients, but with gamma-compressed components:
where the prime symbol ′ denotesgamma compression.
| 158, 0, 79 | 165, 0, 0 | 140, 70, 0 | |
| 142, 0, 142 | 95, 95, 95 | 100, 100, 0 | |
| 104, 0, 208 | 58, 116, 0 | ||
| 0, 0, 255 | 0, 119, 0 | ||
| 0,91,182 | 0, 112, 112 | 0, 118, 59 | |
| RGB values of example colors with the same relative luminance as the darkest primary color (blue) using originalNTSC (1953) primaries forgamma correction equal to 2.2. | |||
| 152, 0, 76 | 156, 0, 0 | 122, 61, 0 | |
| 137, 0, 137 | 77, 77, 77 | 80, 80, 0 | |
| 102, 0, 204 | 44, 88, 0 | ||
| 0, 0, 255 | 0, 90, 0 | ||
| 0, 76, 152 | 0, 86, 86 | 0, 90, 45 | |
| RGB values of example colors with the same relative luminance as the darkest primary color (blue) usingBT. 709 primaries forgamma correction equal to 2.2. | |||
For digital formats followingCCIR 601 (i.e. most digital standard definition formats), luma is calculated with this formula:
Formats followingITU-R RecommendationBT. 709 (i.e. most digital high definition formats) use a different formula:
ModernHDTV systems use the 709 coefficients, while transitional1035i HDTV (MUSE) formats may use theSMPTE 240M coefficients:
These coefficients correspond to the SMPTE RP 145 primaries (also known as "SMPTE C") in use at the time the standard was created.[5]
The change in the luma coefficients is to provide the "theoretically correct" coefficients that reflect the corresponding standard chromaticities ('colors') of the primaries red, green, and blue. However, there is some controversy regarding this decision.[6] The difference in luma coefficients requires that component signals must be converted between Rec. 601 and Rec. 709 to provide accurate colors. In consumer equipment, the matrix required to perform this conversion may be omitted (to reduce cost), resulting in inaccurate color.
As well, the Rec. 709 luma coefficients may not necessarily provide better performance. Because of the difference between luma and relative luminance, luma does not exactly represent the luminance in an image. As a result, errors in chroma can affect luminance. Luma alone does not perfectly represent luminance; accurate luminance requires both accurate luma and chroma. Hence, errors in chroma "bleed" into the luminance of an image.
Note the bleeding in lightness near the borders. Due to the widespread usage ofchroma subsampling, errors in chroma typically occur when it is lowered in resolution/bandwidth. This lowered bandwidth, coupled with high frequency chroma components, can cause visible errors in luminance. An example of a high frequency chroma component would be the line between the green and magenta bars of theSMPTE color bars test pattern. Error in luminance can be seen as a dark band that occurs in this area.[7]