LMS color space
   HOME

TheInfoList



OR:

LMS (long, medium, short), is a
color space A color space is a specific organization of colors. In combination with color profiling supported by various physical devices, it supports reproducible representations of colorwhether such representation entails an analog or a digital represen ...
which represents the response of the three types of
cones A cone is a three-dimensional geometric shape that tapers smoothly from a flat base (frequently, though not necessarily, circular) to a point called the apex or vertex. A cone is formed by a set of line segments, half-lines, or lines conn ...
of the
human eye The human eye is a sensory organ, part of the sensory nervous system, that reacts to visible light and allows humans to use visual information for various purposes including seeing things, keeping balance, and maintaining circadian rhythm. ...
, named for their
responsivity Responsivity measures the input–output gain of a detector system. In the specific case of a photodetector, it measures the electrical output per optical input. A photodetector's responsivity is usually expressed in units of amperes or volts per ...
(sensitivity) peaks at long, medium, and short wavelengths. The numerical range is generally not specified, except that the lower end is generally bounded by zero. It is common to use the LMS color space when performing
chromatic adaptation Chromatic adaptation is the human visual system’s ability to adjust to changes in illumination in order to preserve the appearance of object colors. It is responsible for the stable appearance of object colors despite the wide variation of light w ...
(estimating the appearance of a sample under a different illuminant). It's also useful in the study of
color blindness Color blindness or color vision deficiency (CVD) is the decreased ability to see color or differences in color. It can impair tasks such as selecting ripe fruit, choosing clothing, and reading traffic lights. Color blindness may make some aca ...
, when one or more cone types are defective.


XYZ to LMS

Typically, colors to be adapted chromatically will be specified in a color space other than LMS (e.g.
sRGB sRGB is a standard RGB (red, green, blue) color space that HP and Microsoft created cooperatively in 1996 to use on monitors, printers, and the World Wide Web. It was subsequently standardized by the International Electrotechnical Commission ...
). The chromatic adaptation matrix in the diagonal von Kries transform method, however, operates on tristimulus values in the LMS color space. Since colors in most colorspaces can be transformed to the XYZ color space, only one additional
transformation matrix In linear algebra, linear transformations can be represented by matrices. If T is a linear transformation mapping \mathbb^n to \mathbb^m and \mathbf x is a column vector with n entries, then T( \mathbf x ) = A \mathbf x for some m \times n matrix ...
is required for any color space to be adapted chromatically: to transform colors from the XYZ color space to the LMS color space. In addition, many color adaption methods, or color appearance models (CAMs), runs a von Kries-style diagonal matrix transform in a slightly modified, LMS-like, space instead. They may refer to it simply as LMS, as RGB, or as ργβ. The following text uses the "RGB" naming, but do note that the resulting space has nothing to do with the additive color model called RGB. The CAT matrices for some CAMs in terms of
CIEXYZ The CIE 1931 color spaces are the first defined quantitative links between distributions of wavelengths in the electromagnetic visible spectrum, and physiologically perceived colors in human color vision. The mathematical relationships that defin ...
coordinates are presented here. The matrices, in conjunction with the XYZ data defined for the
standard observer The CIE 1931 color spaces are the first defined quantitative links between distributions of wavelengths in the electromagnetic visible spectrum, and physiologically perceived colors in human color vision. The mathematical relationships that defi ...
, implicitly define a "cone" response for each cell type. Notes: * All tristimulus values are normally calculated using the CIE 1931 2° standard colorimetric observer. * Unless specified otherwise, the CAT matrices are normalized (the elements in a row add up to 1) so the tristimulus values for an equal-energy illuminant (X=Y=Z), like CIE Illuminant E, produce equal LMS values.


Hunt, RLAB

The Hunt and RLAB color appearance models use the Hunt-Pointer-Estevez transformation matrix (MHPE) for conversion from
CIE XYZ The CIE 1931 color spaces are the first defined quantitative links between distributions of wavelengths in the electromagnetic visible spectrum, and physiologically perceived colors in human color vision. The mathematical relationships that defi ...
to LMS. This is the transformation matrix which was originally used in conjunction with the ''von Kries transform'' method, and is therefore also called von Kries transformation matrix (MvonKries).


Bradford's spectrally sharpened matrix (LLAB, CIECAM97s)

The original
CIECAM97s A color appearance model (CAM) is a mathematical model that seeks to describe the perceptual aspects of human color vision, i.e. viewing conditions under which the appearance of a color does not tally with the corresponding physical measurement of ...
color appearance model uses the Bradford transformation matrix (MBFD) (as does the LLAB color appearance model). This is a “spectrally sharpened” transformation matrix (i.e. the L and M cone response curves are narrower and more distinct from each other). The Bradford transformation matrix was supposed to work in conjunction with a modified von Kries transform method which introduced a small non-linearity in the S (blue) channel. However, outside of CIECAM97s and LLAB this is often neglected and the Bradford transformation matrix is used in conjunction with the linear von Kries transform method, explicitly so in
ICC profiles In color management, an ICC profile is a set of data that characterizes a color input or output device, or a color space, according to standards promulgated by the International Color Consortium (ICC). Profiles describe the color attributes of a ...
.Specification ICC.1:2010 (Profile version 4.3.0.0)
Image technology colour management — Architecture, profile format, and data structure, Annex E.3, pp. 102.
\begin R\\G\\B \end_\text = \begin 0.8951 & 0.2664 & -0.1614 \\ -0.7502 & 1.7135 & 0.0367 \\ 0.0389 & -0.0685 & 1.0296 \end \begin X\\Y\\Z \end A "spectrally sharpened" matrix is believed to improve chromatic adaptation especially for blue colors, but does not work as a real cone-describing LMS space for later human vision processing. Although the outputs are called "LMS" in the original LLAB incarnation, CIECAM97s uses a different "RGB" name to highlight that this space does not really reflect cone cells; hence the different names here. LLAB proceeds by taking the post-adaptation XYZ values and performing a CIELAB-like treatment to get the visual correlates. On the other hand, CIECAM97s takes the post-adaptation XYZ value back into the Hunt LMS space, and works from there to model the vision system's calculation of color properties.


Later CIECAMs

A revised version of CIECAM97s switches back to a linear transform method and introduces a corresponding transformation matrix (MCAT97s): \begin R\\G\\B \end_\text = \begin 0.8562 & 0.3372 & -0.1934 \\ -0.8360 & 1.8327 & 0.0033 \\ 0.0357 & -0.0469 & 1.0112 \end \begin X\\Y\\Z \end The sharpened transformation matrix in
CIECAM02 In colorimetry, CIECAM02 is the color appearance model published in 2002 by the International Commission on Illumination (CIE) Technical Committee 8-01 (''Color Appearance Modelling for Color Management Systems'') and the successor of CIECAM97s ...
(MCAT02) is: \begin R\\G\\B \end_\text = \begin 0.7328 & 0.4296 & -0.1624\\ -0.7036 & 1.6975 & 0.0061\\ 0.0030 & 0.0136 & 0.9834 \end \begin X\\Y\\Z \end CAM16 uses a different matrix: 0.401288, +0.650173, -0.051461 M16 = 0.250268, +1.204414, +0.045854 0.002079, +0.048952, +0.953127 As in CIECAM97s, after adaptation, the colors are converted to the traditional Hunt–Pointer–Estévez LMS for final prediction of visual results.


Direct from spectra

From a physiological point of view, the LMS color space describes a more fundamental level of human visual response, so it makes more sense to define the physiopsychological XYZ by LMS, rather than the other way around.


Stockman & Sharpe (2000)

A set of physiologically-based LMS functions are proposed by Stockman & Sharpe in 2000. The function has been published in a technical report by the CIE in 2006 (CIE 170). The functions are derived from Stiles and Burch (1959) RGB CMF data, combined with newer measurements about the contribution of each cone in the RGB functions. To adjust from the 10° data to 2°, assumptions about photopigment density difference and data about the absorption of light by pigment in the
lens A lens is a transmissive optical device which focuses or disperses a light beam by means of refraction. A simple lens consists of a single piece of transparent material, while a compound lens consists of several simple lenses (''elements ...
and the macula lutea are used. The Stockman & Sharpe functions can then be turned into a set of three color-matching functions similar to those in
CIEXYZ The CIE 1931 color spaces are the first defined quantitative links between distributions of wavelengths in the electromagnetic visible spectrum, and physiologically perceived colors in human color vision. The mathematical relationships that defin ...
: \begin X\\Y\\Z \end_ = \begin 1.94735469 & -1.41445123 & 0.36476327 \\ 0.68990272 & 0.34832189 & 0 \\ 0 & 0 & 1.93485343 \end \begin L\\M\\S \end The inverse matrix is shown here for comparison with the ones for traditional XYZ: \begin L\\M\\S \end = \begin 0.210576 & 0.855098 & -0.0396983 \\ -0.417076 & 1.17726 & 0.0786283 \\ 0 & 0 & 0.516835 \\ \end \begin X\\Y\\Z \end_


Applications


Color blindness

The LMS color space can be used to emulate the way
color-blind Color blindness or color vision deficiency (CVD) is the decreased ability to see color or differences in color. It can impair tasks such as selecting ripe fruit, choosing clothing, and reading traffic lights. Color blindness may make some aca ...
people see color. An early emulation of dichromats were produced by Brettel et al. 1997 and was rated favorably by actual patients. An example of a state-of-the-art method is Machado et al. 2009. A related application is making color filters for color-blind people to more easily notice differences in color, a process known as ''daltonization''.


Image processing

JPEG XL uses an XYB color space derived from LMS. Its transform matrix is shown here: \begin X\\Y\\B \end = \begin 1 & -1 & 0 \\ 1 & 1 & 0 \\ 0 & 0 & 1 \end \begin L\\M\\S \end This can be interpreted as a hybrid color theory where L and M are opponents but S is handled in a trichromatic way, justified by the lower spatial density of S cones. In practical terms, this allows for using less data for storing blue signals without losing much perceived quality. The colorspace originates from
Guetzli Guetzli is a freely licensed JPEG encoder that Jyrki Alakujala, Robert Obryk, and Zoltán Szabadka have developed in Google's Zürich research branch. The encoder seeks to produce significantly smaller files than prior encoders at equivalent qua ...
's butteraugli metric, and was passed down to JPEG XL via Google's Pik project.


See also

*
Color balance In photography and image processing, color balance is the global adjustment of the intensities of the colors (typically red, green, and blue primary colors). An important goal of this adjustment is to render specific colors – particularly ne ...
*
Color vision Color vision, a feature of visual perception, is an ability to perceive differences between light composed of different wavelengths (i.e., different spectral power distributions) independently of light intensity. Color perception is a part of ...
* Luminosity function *
Trichromacy Trichromacy or trichromatism is the possessing of three independent channels for conveying color information, derived from the three different types of cone cells in the eye. Organisms with trichromacy are called trichromats. The normal expl ...


References

{{Color space Color space