From Wikipedia, the free encyclopedia  View original article

A Lab color space is a coloropponent space with dimension L for lightness and a and b for the coloropponent dimensions, based on nonlinearly compressed CIE XYZ color space coordinates. The dimensions of the Hunter 1948 L, a, b color space are L, a, and b.^{[1]}^{[2]} However, Lab is now more often used as an informal abbreviation for the CIE 1976 (L*, a*, b*) color space (or CIELAB). The difference between Hunter and CIE color coordinates is that the CIE coordinates are based on a cube root transformation of the color data, while the Hunter coordinates are based on a square root transformation.
Both spaces are derived from the "master" space CIE 1931 XYZ color space, which can predict which spectral power distributions will be perceived as the same color (see metamerism), but which is not particularly perceptually uniform.^{[3]} Strongly influenced by the Munsell color system, the intention of both "Lab" color spaces is to create a space that can be computed via simple formulas from the XYZ space but is more perceptually uniform than XYZ.^{[4]} Perceptually uniform means that a change of the same amount in a color value should produce a change of about the same visual importance. When storing colors in limited precision values, this can improve the reproduction of tones. Both Lab spaces are relative to the white point of the XYZ data they were converted from. Lab values do not define absolute colors unless the white point is also specified. Often, in practice, the white point is assumed to follow a standard and is not explicitly stated (e.g., for "absolute colorimetric" rendering intent ICC L*a*b* values are relative to CIE standard illuminant D50, while they are relative to the unprinted substrate for other rendering intents).^{[5]}
The lightness correlate in CIELAB is calculated using the cube root of the relative luminance.
The L*a*b* color space includes all perceivable colors, which means that its gamut exceeds those of the RGB and CMYK color models (for example, ProPhoto RGB includes about 90% all perceivable colors). One of the most important attributes of the L*a*b*model is device independence. This means that the colors are defined independent of their nature of creation or the device they are displayed on. The L*a*b* color space is used when graphics for print have to be converted from RGB to CMYK, as the L*a*b* gamut includes both the RGB and CMYK gamut. Also it is used as an interchange format between different devices as for its device independency.
Unlike the RGB and CMYK color models, Lab color is designed to approximate human vision. It aspires to perceptual uniformity, and its L component closely matches human perception of lightness, although it does not take the Helmholtz–Kohlrausch effect into account. Thus, it can be used to make accurate color balance corrections by modifying output curves in the a and b components, or to adjust the lightness contrast using the L component. In RGB or CMYK spaces, which model the output of physical devices rather than human visual perception, these transformations can be done only with the help of appropriate blend modes in the editing application.
Because Lab space is much larger than the gamut of computer displays, printers, or even human vision, a bitmap image represented as Lab requires more data per pixel to obtain the same precision as an RGB or CMYK bitmap. In the 1990s, when computer hardware and software were limited to storing and manipulating mostly 8bit/channel bitmaps, converting an RGB image to Lab and back was a very lossy operation. With 16bit/channel and floatingpoint support now common, the loss due to quantization is negligible.
In addition, many of the "colors" within Lab space fall outside the gamut of human vision, and are therefore purely imaginary; these "colors" cannot be reproduced in the physical world. Though color management software, such as that built into image editing applications, will pick the closest ingamut approximation, changing lightness, chroma, and sometimes hue in the process, author Dan Margulis claims that this access to imaginary colors is useful, going between several steps in the manipulation of a picture.^{[6]}
Some specific uses of the abbreviation in software, literature etc.
CIE L*a*b* (CIELAB) is the most complete^{[citation needed]} color space specified by the International Commission on Illumination (French Commission internationale de l'éclairage, hence its CIE initialism). It describes all the colors visible to the human eye and was created to serve as a deviceindependent model to be used as a reference.
The three coordinates of CIELAB represent the lightness of the color (L* = 0 yields black and L* = 100 indicates diffuse white; specular white may be higher), its position between red/magenta and green (a*, negative values indicate green while positive values indicate magenta) and its position between yellow and blue (b*, negative values indicate blue and positive values indicate yellow). The asterisk (*) after L, a and b are pronounced star and are part of the full name, since they represent L*, a* and b*, to distinguish them from Hunter's L, a, and b, described below.
Since the L*a*b* model is a threedimensional model, it can be represented properly only in a threedimensional space.^{[11]} Twodimensional depictions include chromaticity diagrams: sections of the color solid with a fixed lightness. It is crucial to realize that the visual representations of the full gamut of colors in this model are never accurate; they are there just to help in understanding the concept.
Because the redgreen and yellowblue opponent channels are computed as differences of lightness transformations of (putative) cone responses, CIELAB is a chromatic value color space.
A related color space, the CIE 1976 (L*, u*, v*) color space (a.k.a. CIELUV), preserves the same L* as L*a*b* but has a different representation of the chromaticity components. CIELAB and CIELUV can also be expressed in cylindrical form (CIELCH^{[12]} and CIELCH_{uv}, respectively), with the chromaticity components replaced by correlates of chroma and hue.
Since CIELAB and CIELUV, the CIE has been incorporating an increasing number of color appearance phenomena into their models, to better model color vision. These color appearance models, of which CIELAB is a simple example,^{[13]} culminated with CIECAM02.
The nonlinear relations for L*, a*, and b* are intended to mimic the nonlinear response of the eye. Furthermore, uniform changes of components in the L*a*b* color space aim to correspond to uniform changes in perceived color, so the relative perceptual differences between any two colors in L*a*b* can be approximated by treating each color as a point in a threedimensional space (with three components: L*, a*, b*) and taking the Euclidean distance between them.^{[14]}
There are no simple formulas for conversion between RGB or CMYK values and L*a*b*, because the RGB and CMYK color models are devicedependent. The RGB or CMYK values first must be transformed to a specific absolute color space, such as sRGB or Adobe RGB. This adjustment will be devicedependent, but the resulting data from the transform will be deviceindependent, allowing data to be transformed to the CIE 1931 color space and then transformed into L*a*b*.
As mentioned previously, the L* coordinate ranges from 0 to 100. The possible range of a* and b* coordinates is independent of the color space that one is converting from, since the conversion below uses X and Y, which come from RGB.
where
Here, X_{n}, Y_{n} and Z_{n} are the CIE XYZ tristimulus values of the reference white point (the subscript n suggests "normalized").
The division of the domain of the f(t) function into two parts was done to prevent an infinite slope at t = 0. f(t) was assumed to be linear below some t = t_{0}, and was assumed to match the t^{1/3} part of the function at t_{0} in both value and slope. In other words:
The intercept f(0) = b was chosen so that L* would be 0 for Y = 0: b = 16/116 = 4/29. The above two equations can be solved for a and t_{0}:
where δ = 6/29.^{[15]}
The reverse transformation is most easily expressed using the inverse of the function f above:
where
L is a correlate of lightness, and is computed from the Y tristimulus value using Priest's approximation to Munsell value:
where Y_{n} is the Y tristimulus value of a specified white object. For surfacecolor applications, the specified white object is usually (though not always) a hypothetical material with unit reflectance that follows Lambert's law. The resulting L will be scaled between 0 (black) and 100 (white); roughly ten times the Munsell value. Note that a medium lightness of 50 is produced by a luminance of 25, since
a and b are termed opponent color axes. a represents, roughly, Redness (positive) versus Greenness (negative). It is computed as:
where is a coefficient that depends upon the illuminant (for D65, K_{a} is 172.30; see approximate formula below) and is the X tristimulus value of the specified white object.
The other opponent color axis, b, is positive for yellow colors and negative for blue colors. It is computed as:
where K_{b} is a coefficient that depends upon the illuminant (for D65, K_{b} is 67.20; see approximate formula below) and Z_{n} is the Z tristimulus value of the specified white object.^{[16]}
Both a and b will be zero for objects that have the same chromaticity coordinates as the specified white objects (i.e., achromatic, grey, objects).
The name for the system is an attribution to Richard S. Hunter.
In the previous version of the Hunter Lab color space, K_{a} was 175 and K_{b} was 70. Hunter Associates Lab discovered^{[citation needed]} that better agreement could be obtained with other color difference metrics, such as CIELAB (see above) by allowing these coefficients to depend upon the illuminants. Approximate formulae are:
which result in the original values for Illuminant C, the original illuminant with which the Lab color space was used.
Adams chromatic valence color spaces are based on two elements: a (relatively) uniform lightness scale, and a (relatively) uniform chromaticity scale.^{[17]} If we take as the uniform lightness scale Priest's approximation to the Munsell Value scale, which would be written in modern notation:
and, as the uniform chromaticity coordinates:
where k_{e} is a tuning coefficient, we obtain the two chromatic axes:
and
which is identical to the Hunter Lab formulas given above if we select K = K_{a}/100 and k_{e} = K_{b}/K_{a}. Therefore, the Hunter Lab color space is an Adams chromatic valence color space.
