MarketCIE 1931 color space
Company Profile

CIE 1931 color space

In 1931, the International Commission on Illumination (CIE) published the CIE 1931 color spaces which define the relationship between the visible spectrum and human color vision. The CIE color spaces are mathematical models that comprise a "standard observer", which is a static idealization of the color vision of a normal human. A useful application of the CIEXYZ colorspace is that a mixture of two colors in some proportion lies on the straight line between those two colors. One disadvantage is that it is not perceptually uniform. This disadvantage is remedied in subsequent color models such as CIELUV and CIELAB, but these and modern color models still use the CIE 1931 color spaces as a foundation.

Background
of human cone cells of short-, middle- and long-wavelength types Color vision Normal human color vision is trichromatic, which is enabled by three classes of cone cells (L, M & S). Each cone class contains a slightly different photopsin with a different spectral sensitivity. The spectral sensitivities are summarized by their peak wavelengths, which are at long ("L", ), medium ("M", ), and short ("S", ) wavelengths, sometimes shorthanded inexactly as red, green and blue cones, respectively. The differential excitation levels of these three cones comprise the tristimulus values, denoted "L", "M", and "S", and are the parameters that define the 3-dimensional "LMS color space", which is one of many color spaces devised to quantify human color vision. In principle, any human color sensation can be described by a set of tristimulus values. A continuous spectral power distribution of light S(\lambda) is converted to the discrete tristimulus values (in this case L, M & S) by integrating over a spectral sensitivity of one of the cone classes (\overline{L}(\lambda), \overline{M}(\lambda), or \overline{S}(\lambda)): :\begin{align} L &= \int_0^\infty S(\lambda)\,\overline{L}(\lambda)\,d\lambda, \\[6mu] M &= \int_0^\infty S(\lambda)\,\overline{M}(\lambda)\,d\lambda, \\[6mu] S &= \int_0^\infty S(\lambda)\,\overline{S}(\lambda)\,d\lambda. \end{align} These are all inner products and can be thought of as a projection of an infinite-dimensional spectrum to a three-dimensional color. This LMS color model is refined to the LMS color space when the spectral sensitivity "primaries" are defined according to the standard observer. The LMS color space can be further transformed into similar three-dimensional color spaces, such as RGB, XYZ, HSV or cognates thereof. The tristimulus values associated with a color space can be conceptualized as amounts of three primary colors in a trichromatic, additive color model. In some color spaces, including the LMS and XYZ spaces, the primary colors used are not real colors in the sense that they cannot be generated in any spectral power distribution of light. Metamerism and Grassmann's laws Since a lot of information is lost during the conversion (projection) of a continuous light spectrum to tristimulus values, it follows that there are disparate spectra that can stimulate the same tristimulus values. These disparate spectra are known as metamers. For example, a monochromatic (yellow) light is metameric with a dichromatic light spectrum comprising 2 parts monochromatic (green) light and 1 part monochromatic (red) light (accounting for luminosity). In 1853, Hermann Grassmann developed Grassmann's laws, which aimed to describe color mixing algebraically. These laws laid the theoretical framework necessary for color experiments performed by Hermann von Helmholtz (remembered for popularizing the trichromatic theory) and James Clerk Maxwell in the 1850's, and later in the experiments used to develop the CIE 1931 color spaces. The laws can be summarized in three principles: • Additivity: if a third light (z) is added equally to two metamers (a & b), the results are metamers (i.e. if a = b then a + z = b + z). • Proportionality: if the luminances of two metamers are equally increased or reduced by some constant (m), the results are metamers (i.e. if a = b then a*m = b*m). • Transitivity: If one of two metamers is metameric with a third color, then all colors are metameric (i.e. If a = b and b = c, then a = c) These laws assume that human color vision is linear, which is approximately true, but non-linear effects (such as the Helmholtz–Kohlrausch effect) are not considered in the CIE 1931 color model. ==Origin==
Origin
The CIE 1931 color spaces are 4 interrelated color spaces with the same origin. In the 1920s, two independent experiments on human color perception were conducted by W. David Wright The cut-offs at the short- and long-wavelength side of the diagram are chosen somewhat arbitrarily; the human eye can actually see light with wavelengths up to about , but with a sensitivity that is many thousand times lower than for green light. These color matching functions define what is known as the "1931 CIE standard observer". Rather than specify the brightness of each primary, the curves are normalized to have constant area beneath them. This area is fixed to a particular value by specifying that: : \int_0^\infty \overline{r}(\lambda)\,d\lambda = \int_0^\infty \overline{g}(\lambda)\,d\lambda = \int_0^\infty \overline{b}(\lambda)\,d\lambda. The resulting normalized color matching functions are then scaled in the r:g:b ratio of 1:4.5907:0.0601 for source luminance and 72.0962:1.3791:1 for source radiance to reproduce the true color matching functions. By proposing that the primaries be standardized, the CIE established an international system of objective color notation. Given these scaled color matching functions, the RGB tristimulus values for a color with a spectral power distribution S(\lambda) would then be given by: :\begin{align} R &= \int_0^\infty S(\lambda)\,\overline{r}(\lambda)\,d\lambda, \\[6mu] G &= \int_0^\infty S(\lambda)\,\overline{g}(\lambda)\,d\lambda, \\[6mu] B &= \int_0^\infty S(\lambda)\,\overline{b}(\lambda)\,d\lambda. \end{align} These are all inner products and can be thought of as a projection of an infinite-dimensional spectrum to a three-dimensional color. CIE XYZ color space After the definition of the RGB model of human vision using the CIE RGB matching functions, the CIE special commission wished to derive another color space from the CIE RGB color space. It was assumed that Grassmann's law held, and the new space would be related to the CIE RGB space by a linear transformation. The new space would be defined in terms of three new color matching functions \overline{x}(\lambda), \overline{y}(\lambda), and \overline{z}(\lambda), which would be chosen as having the following desirable properties: • The new color matching functions were to be everywhere greater than or equal to zero. In 1931, computations were done by hand or slide rule, and the specification of positive values was a useful computational simplification. • The \overline{y}(\lambda) color matching function would be exactly equal to the photopic luminous efficiency function V(λ) for the "CIE standard photopic observer". The luminance function describes the variation of perceived brightness with wavelength. The fact that the luminance function could be constructed by a linear combination of the RGB color matching functions was not guaranteed by any means but might be expected to be nearly true due to the near-linear nature of human sight. Again, the main reason for this requirement was computational simplification. • For the constant energy white point, it was required that . • By virtue of the definition of chromaticity and the requirement of positive values of x and y, it can be seen that the gamut of all colors will lie inside the triangle [1, 0], [0, 0], [0, 1]. It was required that the gamut fill this space practically completely. • It was found that the \overline{z}(\lambda) color matching function could be set to zero above while remaining within the bounds of experimental error. For computational simplicity, it was specified that this would be so. The derived CIE XYZ color space encompasses all color sensations that are perceptible to a typical human. The underlying color matching functions can be thought of as the spectral sensitivity curves of three linear light detectors yielding the CIE tristimulus values X, Y and Z. Collectively, these three functions describe the CIE standard observer. That is why CIE XYZ tristimulus values are a device-invariant representation of color. It serves as a standard reference against which many other color spaces are defined. A set of color-matching functions, like the spectral sensitivity curves of the LMS color space, but not restricted to non-negative sensitivities, associates physically produced light spectra with specific tristimulus values. Most wavelengths stimulate two or all three kinds of cone cell because the spectral sensitivity curves of the three kinds overlap. Certain tristimulus values are thus physically impossible: e.g. LMS tristimulus values that are non-zero for the M component and zero for both the L and S components. Furthermore pure spectral colors would, in any normal trichromatic additive color space, e.g., the RGB color spaces, imply negative values for at least one of the three primaries because the chromaticity would be outside the color triangle defined by the primary colors. To avoid these negative RGB values, and to have one component that describes the perceived brightness, "imaginary" primary colors and corresponding color-matching functions were formulated. The CIE 1931 color space defines the resulting tristimulus values, in which they are denoted by "X", "Y", and "Z". In XYZ space, all combinations of non-negative coordinates are meaningful, but many, such as the primary locations [1, 0, 0], [0, 1, 0], and [0, 0, 1], correspond to imaginary colors outside the space of possible LMS coordinates; imaginary colors do not correspond to any spectral distribution of wavelengths and therefore have no physical reality. Meaning of X, Y and Z for a standard observer in photopic vision In the CIE 1931 model, Y is the luminance, Z is quasi-equal to blue (of CIE RGB), and X is a mix of the three CIE RGB curves chosen to be nonnegative. Setting Y as luminance has the useful result that for any given Y value, the XZ plane will contain all possible chromaticities at that luminance. The unit of the tristimulus values , , and is often arbitrarily chosen so that or is the brightest white that a color display supports. In this case, the Y value is known as the relative luminance. The corresponding whitepoint values for and can then be inferred using the standard illuminants. Since the XYZ values are defined much earlier than the characterization of cone cells in the 1950s (by Ragnar Granit), the physiological meaning of these values were known only much later. The Hunt-Pointer-Estevez matrix from the 1980s relates XYZ with LMS. When inverted, it shows how the three cone responses add up to XYZ functions: : \begin{bmatrix} X\\Y\\Z \end{bmatrix} = \begin{bmatrix} 1.91020 & -1.11212 & 0.20191 \\ 0.37095 & 0.62905 & 0 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} L\\M\\S \end{bmatrix}_{\rm HPE} In other words, the Z value is solely made up of the S cone response, the Y value a mix of L and M responses, and X value a mix of all three. This fact makes XYZ values analogous to, but different from, the LMS cone responses of the human eye. CIE rg chromaticity space In geometrical terms, choosing the new color space amounts to choosing a new triangle in rg chromaticity space. In the figure above-right, the rg chromaticity coordinates are shown on the two axes in black, along with the gamut of the 1931 standard observer. Shown in red are the CIE xy chromaticity axes which were determined by the above requirements. The requirement that the XYZ coordinates be non-negative means that the triangle formed by Cr, Cg, Cb must encompass the entire gamut of the standard observer. The line connecting Cr and Cb is fixed by the requirement that the \overline{y}(\lambda) function be equal to the luminance function. This line is the line of zero luminance, and is called the alychne. The requirement that the \overline{z}(\lambda) function be zero above means that the line connecting Cg and Cr must be tangent to the gamut in the region of Kr. This defines the location of point Cr. The requirement that the equal energy point be defined by puts a restriction on the line joining Cb and Cg, and finally, the requirement that the gamut fill the space puts a second restriction on this line to be very close to the gamut in the green region, which specifies the location of Cg and Cb. The above described transformation is a linear transformation from the CIE RGB space to XYZ space. The standardized transformation settled upon by the CIE special commission was as follows: The CIE RGB space can be used to define chromaticity in the usual way: The chromaticity coordinates are r, g and b where: :\begin{align} r &= \frac{R}{R + G + B}, \\[5mu] g &= \frac{G}{R + G + B}, \\[5mu] b &= \frac{B}{R + G + B}. \end{align} The numbers in the conversion matrix below are exact, with the number of digits specified in CIE standards. :\begin{align} x &= \frac{X}{X+Y+Z} \\[5mu] y &= \frac{Y}{X+Y+Z} \\[5mu] z &= \frac{Z}{X+Y+Z} = 1 - x - y \end{align} That is, because each tristimulus parameter, X, Y, Z, is divided by the sum of all three, the resulting values, x, y, z, each represent a proportion of the whole and so their sum must be equal to one. Therefore, the value z can be deduced by knowing x and y, and consequently the latter two values are sufficient for describing the chromaticity of any color. The derived color space specified by x, y, and Y is known as the CIE xyY color space and is widely used to specify colors in practice. The X and Z tristimulus values can be calculated back from the chromaticity values x and y and the Y tristimulus value: :\begin{align} X &= \frac{Y}{y}x, \\[5mu] Z &= \frac{Y}{y}(1 - x - y). \end{align} Mathematically the colors of the chromaticity diagram occupy a region of the real projective plane. ====
{{vanchor|Chromaticity diagram}}
, so the colors outside the sRGB gamut are not displayed properly. Depending on the color space and calibration of your display device, the sRGB colors may not be displayed properly either. This diagram displays the maximally saturated bright colors that can be produced by a computer monitor or television set. s, such as those used in printing. The color names are from the Munsell color system. The solid curve with dots on it, through the middle, is the Planckian locus, with the dots corresponding to a few select black-body temperatures that are indicated just above the x-axis. The figures on the right show the related chromaticity diagram. The outer curved boundary is the spectral locus, with wavelengths shown in nanometers. The chromaticity diagram is a tool to specify the quality of a color regardless of its brightness. For examples, grey has the same chromaticity as white, and teal has the same chromaticity as cyan, because the only difference between them is their brightness, not their spectral purity. The chromaticity diagram illustrates a number of interesting properties of the CIE XYZ color space: • The diagram represents all of the chromaticities visible to the average person. These are shown in color and this region is called the gamut of human vision. The gamut of all visible chromaticities on the CIE plot is the tongue-shaped or horseshoe-shaped figure shown in color. The curved edge of the gamut is called the spectral locus and corresponds to monochromatic light (each point representing a pure hue of a single wavelength), with wavelengths listed in nanometers. The straight edge on the lower part of the gamut is called the line of purples. These colors, although they are on the border of the gamut, have no counterpart in monochromatic light. Less saturated colors appear in the interior of the figure with white at the center. • It is seen that all visible chromaticities correspond to non-negative values of x, y, and z (and therefore to non-negative values of X, Y, and Z). • If one chooses any two points of color on the chromaticity diagram, then all the colors that lie in a straight line between the two points can be formed by mixing these two colors. It follows that the gamut of colors must be convex in shape. All colors that can be formed by mixing three sources are found inside the triangle formed by the source points on the chromaticity diagram (and so on for multiple sources). • An equal, additive mixture of two colors will not generally lie on the midpoint of that line segment, unless the sum of the X, Y, and Z values of one color is equal to the sum of the X, Y, and Z values of the other color (that is, both colors lie in the same plane of the type X + Y + Z = n). • A distance on the CIE xy chromaticity diagram does not correspond to the perceived difference between two colors. In the early 1940s, David MacAdam studied the nature of visual sensitivity to color differences, and summarized his results in the concept of a MacAdam ellipse. Based on the work of MacAdam, the CIE 1960, CIE 1964, and CIE 1976 color spaces were developed, with the goal of achieving perceptual uniformity (have an equal distance in the color space correspond to equal differences in color). Although they were a distinct improvement over the CIE 1931 system, they were not completely free of distortion. • It can be seen that, given three real sources, these sources cannot cover the gamut of human vision. Geometrically stated, there are no three points within the gamut that form a triangle that includes the entire gamut; or more simply, the gamut of human vision is not a triangle. • Light with a flat power spectrum in terms of wavelength (equal power in every interval) corresponds to the point (illuminant E). Color mixing in CIE xyY When two or more colors are additively mixed, the x and y chromaticity coordinates of the resulting color (xmix, ymix) may be calculated from the chromaticities of the mixture components (x1, y1; x2, y2; ...; xn, yn) and their corresponding luminances (L1, L2, ..., Ln) with the following formulas: : x_{\mathrm{mix}} = \frac{ \dfrac{x_1}{y_1}L_1 + \dfrac{x_2}{y_2}L_2 + \dots + \dfrac{x_n}{y_n}L_n } { \dfrac{L_1}{y_1} + \dfrac{L_2}{y_2} + \dots + \dfrac{L_n}{y_n} } \quad,\quad y_{\mathrm{mix}} = \frac{ L_1 + L_2 + \dots + L_n } { \dfrac{L_1}{y_1} + \dfrac{L_2}{y_2} + \dots + \dfrac{L_n}{y_n} } These formulas can be derived from the definitions of the x and y chromaticity coordinates by taking advantage of the fact that XYZ (tristimulus) values are additive. In place of the luminance values L1, L2, etc., one can use any photometric quantity proportional to the tristimulus value Y (including, of course, Y itself) in the context of interest; this also applies to the following mixing ratio computation. As previously stated, when two colors are mixed, the resulting color xmix, ymix lies on the straight line segment that connects them on the CIE xy chromaticity diagram. The mixing ratio of colors x1, y1 and x2, y2 that results in a given xmix, ymix on this line segment is given by : \frac{L_1}{L_2} = \frac{ y_1 \left ( x_2 - x_{\mathrm{mix}} \right ) }{ y_2 \left ( x_{\mathrm{mix}} - x_1 \right ) } = \frac{ y_1 \left ( y_2 - y_{\mathrm{mix}} \right ) }{ y_2 \left ( y_{\mathrm{mix}} - y_1 \right ) } where L1 is the luminance of color x1, y1 and L2 the luminance of color x2, y2. Because ymix is unambiguously determined by xmix and vice versa (unless x1 = x2 or y1 = y2), one is enough to compute the mixing ratio. ==Computing XYZ from spectral data==
Computing XYZ from spectral data
Emissive case The tristimulus values for a color with a spectral radiance Le,Ω,λ are given in terms of the standard observer by: :\begin{align} X &= \int_\lambda L_{\mathrm{e},\Omega,\lambda}(\lambda)\,\overline{x}(\lambda)\,d\lambda, \\[6mu] Y &= \int_\lambda L_{\mathrm{e},\Omega,\lambda}(\lambda)\,\overline{y}(\lambda)\,d\lambda, \\[6mu] Z &= \int_\lambda L_{\mathrm{e},\Omega,\lambda}(\lambda)\,\overline{z}(\lambda)\,d\lambda. \end{align} where \lambda is the wavelength of the equivalent monochromatic light (measured in nanometers), and customary limits of the integral are \lambda\in[380, 780]. The values of X, Y, and Z are bounded if the radiance spectrum Le,Ω,λ is bounded. Reflective and transmissive cases The reflective and transmissive cases are very similar to the emissive case, with a few differences. The spectral radiance Le,Ω,λ is replaced by the spectral reflectance (or transmittance) S(λ) of the object being measured, multiplied by the spectral power distribution of the illuminant I(λ). :\begin{align} X &= \frac{K}{N}\int_\lambda S(\lambda)\,I(\lambda)\,\overline{x}(\lambda)\,d\lambda, \\[8mu] Y &= \frac{K}{N}\int_\lambda S(\lambda)\,I(\lambda)\,\overline{y}(\lambda)\,d\lambda, \\[8mu] Z &= \frac{K}{N}\int_\lambda S(\lambda)\,I(\lambda)\,\overline{z}(\lambda)\,d\lambda, \end{align} where :N = \int_\lambda I(\lambda)\,\overline{y}(\lambda)\,d\lambda, K is a scaling factor (usually 1 or 100), and \lambda is the wavelength of the equivalent monochromatic light (measured in nanometers), and the standard limits of the integral are \lambda\in[380, 780]. == Subsequent refinements ==
Subsequent refinements{{anchor|Similar color spaces}}{{anchor|Other observers}}
A few other XYZ-style color-matching functions have been available, correcting for known issues in the original 1931 color space. These functions imply their own XYZ-like and xyY-like color spaces. and Speranskaya. For the 10° experiments, the observers were instructed to ignore the central 2° spot. The 1964 supplementary standard observer function is recommended when dealing with more than about a 4° field of view, but some prefer to use it always as "human wide field color discrimination is about 2 to 3 times more accurate than foveal color discrimination". who also publishes the data openly for the 2° and 10° standard observer functions. The data are discretized at wavelength intervals from to . Analytical approximation Table lookup can become impractical for some computational tasks. Instead of referring to the published table, the CIE XYZ color matching functions can be approximated by a sum of Gaussian functions, as follows: Let g(x) denote a piecewise-Gaussian function, defined by : g(x; \mu, \tau_1, \tau_2) = \begin{cases} \exp \bigl({ -\tau_1^2(x-\mu)^2/2}\bigr), &x That is, g(x) resembles a bell curve with its peak at , a spread/standard deviation of 1/\tau_1 to the left of the mean, and spread of 1/\tau_2 to the right of the mean. With the wavelength λ measured in nanometers, we then approximate the 1931 color matching functions: : \begin{align} \overline{x}(\lambda) &= 1.056\,g(\lambda; 599.8, 0.0264, 0.0323) + 0.362\,g(\lambda; 442.0, 0.0624, 0.0374) \\[2mu] &\quad - 0.065\,g(\lambda; 501.1, 0.0490, 0.0382), \\[5mu] \overline{y}(\lambda) &= 0.821\,g(\lambda; 568.8, 0.0213, 0.0247) + 0.286\,g(\lambda; 530.9, 0.0613, 0.0322), \\[5mu] \overline{z}(\lambda) &= 1.217\,g(\lambda; 437.0, 0.0845, 0.0278) + 0.681\,g(\lambda; 459.0, 0.0385, 0.0725). \end{align} The squared differences between the above approximation and the measured CIE XYZ color matching functions is less than the within-observer variance encountered in the experimental measurements used to form the CIE standards. It is also possible to use fewer Gaussian functions, with one Gaussian for each "lobe". CIE 1964 fits well with a one-lobe function. The Judd (1951) and its following Vos (1978) corrections sought to correct for the issue without deviating from the original methodology. ; CIE 1964 X10Y10Z10 : X10Y10Z10 (also written XYZ10 and analogously for the following) is the XYZ-style color space defined using the CIE 1964 10° observer CMFs. The 3 CMFs are mainly derived from Stiles and Burch's RGB color-matching functions, which unlike the Wright–Guild functions (and the subsequent Judd–Vos corrections) are "directly measured", freeing them from the reconstruction errors of the 1931 functions. The CMF data, along with the physiological 10° dataset, is available from the Colour & Vision Research laboratory of University College London down to 0.1 nm resolution. ; CIE 170-2 XF,10YF,10ZF,10 : This space is based on the Stockman & Sharpe (2000) physiological 10° observer. Older Sony manuals recommend using the Judd–Vos correction by applying an offset to the white point depending on the display technology used. ==See also==
tickerdossier.comtickerdossier.substack.com