Misplaced Pages

Relative luminance

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Ratiometric definition of luminance For other uses, see Luminance (disambiguation).
This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. (June 2020) (Learn how and when to remove this message)

Relative luminance Y {\displaystyle Y} follows the photometric definition of luminance L {\displaystyle L} including spectral weighting for human vision, but while luminance L {\displaystyle L} is a measure of light in units such as c d / m 2 {\displaystyle cd/m^{2}} , relative luminance Y {\displaystyle Y} values are normalized as 0.0 to 1.0 (or 1 to 100), with 1.0 (or 100) being a theoretical perfect reflector of 100% reference white. Like the photometric definition, it is related to the luminous flux density in a particular direction, which is radiant flux density weighted by the luminous efficiency function y ¯ ( λ ) {\displaystyle {\overline {y}}(\lambda )} of the CIE Standard Observer.

The use of relative values is useful in color or appearance models that describe perception relative to the eye's adaptation state and a reference white. For example, in prepress for print media, the absolute luminance of light reflecting off the print depends on the specific illumination, but a color appearance model using relative luminance can predict the appearance by referencing the given light source.

Relative luminance and colorimetric spaces

For CIE colorspaces XYZ and xyY, the letter Y {\displaystyle Y} refers to relative luminance. If the maximum luminance for a given example is L m a x {\displaystyle L_{max}} or L r e f {\displaystyle L_{ref}} , and the subject luminance is L s t i m u l u s {\displaystyle L_{stimulus}} then the relative luminance is

Y = L s t i m u l u s L r e f     {\displaystyle Y={L_{stimulus} \over L_{ref}}\ \ } or     Y s c a l e 100 = L s t i m u l u s L m a x   ×   100 {\displaystyle \ \ Y_{scale_{100}}={L_{stimulus} \over L_{max}}\ \times \ 100}

Relative luminance and "gamma encoded" colorspaces

Y {\displaystyle Y} (and L {\displaystyle L} ) are both linear to changes in the volume of light. Conversions from color spaces where light or lightness are encoded with a power curve, such as most image and video formats, must be linearized before being transformed to Y or the XYZ space.

The simple method is to apply the inverse power curve to each of the color channels, as an example for several common RGB color spaces, a 2.2 power curve is applied:

R l i n = R 2.2     G l i n = G 2.2     B l i n = B 2.2 {\displaystyle R_{lin}={R^{\prime }}^{2.2}\ \ G_{lin}={G^{\prime }}^{2.2}\ \ B_{lin}={B^{\prime }}^{2.2}}

Y {\displaystyle Y} can then be calculated for these colorspaces by using the coefficients for the Y component of the transform matrix. For instance, for ITU-R BT.709 and sRGB both of which use the same primaries and whitepoint, relative luminance can be calculated from linear RGB components: first convert the gamma-compressed RGB values to linear RGB, and then

Y = 0.2126 R l i n + 0.7152 G l i n + 0.0722 B l i n {\displaystyle Y=0.2126*R_{lin}+0.7152*G_{lin}+0.0722*B_{lin}}

The formula reflects the luminous efficiency function as "green" light is the major component of luminance, responsible for the majority of light perceived by humans, and "blue" light the smallest component.

Different linear coefficients are needed to determine luminance for a given colorspace, which are calculated from their primary chromaticities (defined by their x&y or uʹ&vʹ chromaticity coordinates). For RGB spaces that use real colors for primaries, these coefficients will be positive for the conversion into XYZ space, but may be negative for transforming back to RGB. The green coefficient is normally the largest and blue normally smallest, and normally form the middle row of the RGB-to-XYZ color transformation matrix.

For nonlinear gamma-compressed R′G′B′ color spaces as typically used for computer images, a linearization of the R′G′B′ components to RGB is needed before the linear combination.

Relative luminance should not be confused with luma Y {\displaystyle Y^{\prime }} (Y prime), which is a weighted sum of nonlinear (gamma encoded) R′G′B′ components, where in some implementations the weighting coefficients are applied to the gamma encoded signal. Also, in many instances, for technical reasons the weighting coefficients are not identical to those coefficients that naturally follow from the primaries and the white point; for example PAL SDTV signals, and also NTSC signals as specified since 1987, use weighting coefficients that were natural for the primaries of the original 1953 NTSC standard (mixing the three defined 1953 NTSC primaries in the proportions given by the weighting coefficients results in the defined 1953 NTSC white) but which aren’t the natural ones to use for their own specified primaries. In those cases, luma will not purely be a function of gamma-corrected brightness (however defined) but also depends to some extent on the hue and saturation of the color. Some colorspaces that use luma include Y′UV, Y′IQ, and Y′CbCr. To determine relative luminance, The Y {\displaystyle Y^{\prime }} must be used with the subcomponents to create the gamma encoded R′G′B′ components, which are then linearized to RGB by inverting the gamma correction. These linearized RGB channels can then have the appropriate linear coefficients applied (based on the primary chromaticities) and summed to relative luminance Y {\displaystyle Y} .

Relative luminance and perceptual spaces

Y {\displaystyle Y} is linear to light, but human perception has a non-linear response to lightness/darkness/brightness.

For L*a*b* and L*u*v* space, the L {\displaystyle L^{*}} component is perceptual lightness (also known as "Lstar" and not to be confused with L {\displaystyle L} luminance). L {\displaystyle L^{*}} is intended to be linear to human perception of lightness/darkness, and since human perception of light is non-linear, L {\displaystyle L^{*}} is a nonlinear function of relative luminance Y {\displaystyle Y} .

See also

References

  1. Poynton, Charles (2003). Digital Video and HDTV: Algorithms and Interfaces. Morgan Kaufmann. ISBN 1-55860-792-7.
  2. ITU Parameters for HDTV (PDF) (6 ed.). Item 3.2: ITU. 2015. p. 3. Retrieved 9 October 2021.{{cite book}}: CS1 maint: location (link)
  3. Lindbloom, Bruce. "RGB/XYZ Matrices". BruceLindbloom. Retrieved 9 October 2021.
  4. Maureen C. Stone (2003). A Field Guide to Digital Color. A K Peters, Ltd. ISBN 1-56881-161-6.
Color space
CAM
CIE
RGB
Y′UV
Other
Color systems
and standards
For the vision capacities of organisms or machines, see  Color vision.
Categories: