Gamut

[[Image:CIExy1931 srgb gamut.png|240px|right|thumb|Typical [[cathode-ray tube]] (CRT) gamut

The grayed-out horseshoe shape is the entire range of possible chromaticities, displayed in the CIE 1931 chromaticity diagram format (see below). The colored triangle is the gamut available to the sRGB color space typically used in computer monitors; it does not cover the entire space. The corners of the triangle are the primary colors for this gamut; in the case of a CRT, they depend on the colors of the phosphors of the monitor. At each point, the brightest possible RGB color of that chromaticity is shown, resulting in the bright Mach band stripes corresponding to the edges of the RGB color cube.]]

In color reproduction and colorimetry, a gamut, or color gamut, is a convex set containing the colors that can be accurately represented, i.e. reproduced by an output device (e.g. printer or display) or measured by an input device (e.g. camera or visual system). Devices with a larger gamut can represent more colors. Similarly, gamut may also refer to the colors within a defined color space, which is not linked to a specific device. A trichromatic gamut is often visualized as a color triangle. A less common usage defines gamut as the subset of colors contained within an image, scene or video.

Introduction
The term gamut was adopted from the field of music, where in middle age Latin "gamut" meant the entire range of musical notes of which musical melodies are composed; Shakespeare's use of the term in The Taming of the Shrew is sometimes attributed to the author / musician Thomas Morley. In the 1850s, the term was applied to a range of colors or hue, for example by Thomas de Quincey, who wrote "Porphyry, I have heard, runs through as large a gamut of hues as marble."

The gamut of a device or process is that portion of the color space that can be represented, or reproduced. Generally, the color gamut is specified in the hue–saturation plane, as a system can usually produce colors over a wide intensity range within its color gamut; for a subtractive color system (such as used in printing), the range of intensity available in the system is for the most part meaningless without considering system-specific properties (such as the illumination of the ink).

Device gamuts must use real primaries (those that can be represented by a physical spectral power distribution) and therefore are always incomplete (smaller than the human visual gamut). No gamut defined by a finite number of primaries can represent the entire human visual gamut. Three primaries are necessary for representing an approximation of the human visual gamut. More primaries can be used to increase the size of the gamut. For example, while painting with red, yellow and blue pigments is sufficient for modeling color vision, adding further pigments (e.g. orange or green) can increase the size of the gamut, allowing the reproduction of more saturated colors.

While processing a digital image, the most convenient color model used is the RGB model. Printing the image requires transforming the image from the original RGB color model to the printer's CMYK color model. During this process, the colors from the RGB model which are out of gamut must be somehow converted to approximate values within the CMYK model. Simply trimming only the colors which are out of gamut to the closest colors in the destination space would burn the image. There are several algorithms approximating this transformation, but none of them can be truly perfect, since those colors are simply out of the target device's capabilities. This is why identifying the colors in an image that are out of gamut in the target color space as soon as possible during processing is critical for the quality of the final product. It is also important to remember that there are colors inside the CMYK gamut that are outside the most commonly used RGB color spaces, such as sRGB and Adobe RGB.

Color management
Color management is the process of ensuring consistent and accurate colors across devices with different gamuts. Color management handles the transformations between color gamuts and canonical color spaces to ensure that colors are represented equally on different devices. A device's gamut is defined by a color profile, usually the ICC profile, which relates the gamut to a standardized color space and allows for calibration of the device. Transforming from one gamut to a smaller gamut loses information as out-of-gamut colors are projected on to the smaller gamut and transforming back to the larger gamut does not regain this lost information.

Colorimetry
Colorimetry is the measurement of color, generally in a way that mimics human color perception. Input devices such as digital cameras or scanners are made to mimic trichromatic human color perception and are based on three sensors elements with different spectral sensitivities, ideally aligned approximately with the spectral sensitivities of human photopsins. In this sense, they have a similar gamut to the human visual system. However, most of these devices violate the Luther condition and are not intended to be truly colorimetric, with the exception of tristimulus colorimeters. Higher-dimension input devices, such as multispectral imagers, hyperspectral imagers or spectrometers, capture color at a much larger gamut, dimensionally, than the human visual gamut. To be perceived by humans, the images must first be down-dimensionalized and treated with false color.

Visual gamut
The extent of color that can be detected by the average human, approximated by the standard observer, is the human visual gamut. The visual gamut is usually visualized in the CIE 1931 chromaticity diagram, where the spectral locus (curved edge) represents the monochromatic (single-wavelength) or spectral colors. As the device you are using to view the diagram has a smaller gamut than the visual gamut, the colors that are out-of-gamut are reproduced as colors inside the display's gamut. Device gamuts are generally depicted in reference to the visual gamut. The standard observer represents a typical human, but colorblindness leads to a reduced visual gamut.

Visualization of gamuts
The gamut of reflective colors in nature has a similar, though more rounded, shape. An object that reflects only a narrow band of wavelengths will have a color close to the edge of the CIE diagram, but it will have a very low luminosity at the same time. At higher luminosities, the accessible area in the CIE diagram becomes smaller and smaller, up to a single point of white, where all wavelengths are reflected exactly 100 percent; the exact coordinates of white are determined by the color of the light source.

Surfaces


In the beginning of the 20th century, industrial demands for a controllable way to describe colors and the new possibility to measure light spectra initiated intense research on mathematical descriptions of colors.

The idea of optimal colors was introduced by the Baltic German chemist Wilhelm Ostwald. Erwin Schrödinger showed in his 1919 article Theorie der Pigmente von größter Leuchtkraft (Theory of Pigments with Highest Luminosity) that the most-saturated colors that can be created with a given total reflectivity are generated by surfaces having either zero or full reflectance at any given wavelength, and the reflectivity spectrum must have at most two transitions between zero and full.

Thus two types of "optimal color" spectra are possible: Either the transition goes from zero at both ends of the spectrum to one in the middle, as shown in the image at right, or it goes from one at the ends to zero in the middle. The first type produces colors that are similar to the spectral colors and follow roughly the horseshoe-shaped portion of the CIE xy chromaticity diagram, but are generally less saturated. The second type produces colors that are similar to (but generally less saturated than) the colors on the straight line in the CIE xy chromaticity diagram, leading to magenta-like colors.

Schrödinger's work was further developed by David MacAdam and Siegfried Rösch. MacAdam was the first person to calculate precise coordinates of selected points on the boundary of the optimal color solid in the CIE 1931 color space for lightness levels from Y = 10 to 95 in steps of 10 units. This enabled him to draw the optimal color solid at an acceptable degree of precision. Because of his achievement, the boundary of the optimal color solid is called the MacAdam limit (1935).

In 1980, Michael R. Pointer published a maximum gamut for real surfaces with diffuse reflection using 4089 samples, (surfaces with specular reflection ("glossy") can fall outside of this gamut). Originally called a "Munsell Color Cascade", the limits are more commonly called Pointer's Gamut after his work. This gamut remains important as a reference for color reproduction, having been updated by newer methods in ISO 12640-3 Annex B.

On modern computers, it is possible to calculate an optimal color solid with great precision in seconds. The MacAdam limit, on which the most saturated (or "optimal") colors reside, shows that colors that are near monochromatic colors can only be achieved at very low luminance levels, except for yellows, because a mixture of the wavelengths from the long straight-line portion of the spectral locus between green and red will combine to make a color very close to a monochromatic yellow.

Light sources
Light sources used as primaries in an additive color reproduction system need to be bright, so they are generally not close to monochromatic. That is, the color gamut of most variable-color light sources can be understood as a result of difficulties producing pure monochromatic (single wavelength) light. The best technological source of monochromatic light is the laser, which can be rather expensive and impractical for many systems. However, as optoelectronic technology matures, single-longitudinal-mode diode lasers are becoming less expensive, and many applications can already profit from this; such as Raman spectroscopy, holography, biomedical research, fluorescence, reprographics, interferometry, semiconductor inspection, remote detection, optical data storage, image recording, spectral analysis, printing, point-to-point free-space communications, and fiber optic communications.

Systems that use additive color processes usually have a color gamut which is roughly a convex polygon in the hue-saturation plane. The vertices of the polygon are the most saturated colors the system can produce. In subtractive color systems, the color gamut is more often an irregular region.

Comparison of various systems
Following is a list of representative color systems more-or-less ordered from large to small color gamut:


 * A laser video projector uses three lasers to produce the broadest gamut available in practical display equipment today, derived from the fact that lasers produce truly monochromatic primaries. The systems work either by scanning the entire picture a dot at a time and modulating the laser directly at high frequency, much like the electron beams in a CRT, or by optically spreading and then modulating the laser and scanning a line at a time, the line itself being modulated in much the same way as in a DLP projector. Lasers can also be used as a light source for a DLP projector. More than three lasers can be combined to increase the gamut range, a technique sometimes used in holography.
 * Digital Light Processing or DLP technology is a trademarked technology from Texas Instruments. The DLP chip contains a rectangular array of up to 2 million hinge-mounted microscopic mirrors. Each of the micromirrors measures less than one-fifth the width of a human hair. A DLP chip's micromirror tilts either toward the light source in a DLP projection system (ON) or away from it (OFF). This creates a light or dark pixel on the projection surface. Current DLP projectors use a quickly rotating wheel with transparent colored "pie slices" to present each color frame successively. One rotation shows the complete image.
 * Photographic film can reproduce a larger color gamut than typical television, computer, or home video systems.
 * CRT and similar video displays have a roughly triangular color gamut which covers a significant portion of the visible color space. In CRTs, the limitations are due to the phosphors in the screen which produce red, green, and blue light.
 * Liquid crystal display (LCD) screens filter the light emitted by a backlight. The gamut of an LCD screen is therefore limited to the emitted spectrum of the backlight. Typical LCD screens use cold-cathode fluorescent bulbs (CCFLs) for backlights. LCD Screens with certain LED or wide-gamut CCFL backlights yield a more comprehensive gamut than CRTs. However, some LCD technologies vary the color presented by viewing angle. In Plane Switching or Patterned vertical alignment screens have a wider span of colors than Twisted Nematic.
 * Television normally uses a CRT, LCD, LED or plasma display, but does not take full advantage of its color display properties, due to the limitations of broadcasting. The common color profile for TV is based on ITU standard Rec. 601. HDTV is less restrictive and uses a slightly improved color profile based on ITU standard Rec. 709. Still somewhat less than, for example, computer displays using the same display technology. This is due to the use of a limited subset of RGB in broadcasting (values from 16-235), versus full RGB in computer displays, where all bits from 0 to 255 are used.
 * Paint mixing, both artistic and for commercial applications, achieves a reasonably large color gamut by starting with a larger palette than the red, green, and blue of CRTs or cyan, magenta, and yellow of printing. Paint may reproduce some highly saturated colors that cannot be reproduced well by CRTs (particularly violet), but overall the color gamut is smaller.
 * Printing typically uses the CMYK color space (cyan, magenta, yellow, and black). Very few printing processes do not include black; however, those processes (with the exception of dye-sublimation printers) are poor at representing low saturation, low intensity colors. Efforts have been made to expand the gamut of the printing process by adding inks of non-primary colors; these are typically orange and green (see Hexachrome) or light cyan and light magenta (see CcMmYK color model). Spot color inks of a very specific color are also sometimes used.
 * A monochrome display's color gamut is a one-dimensional curve in color space.

Wide color gamut
The Ultra HD Forum defines a wide color gamut (WCG) as a color gamut wider than that of BT.709 (Rec. 709). Color spaces with WCGs include:


 * Rec. 2020 – ITU-R Recommendation for UHDTV
 * Rec. 2100 – ITU-R Recommendation for HDR-TV (same chromaticity of color primaries and white point as Rec. 2020)
 * DCI-P3
 * Adobe RGB color space
 * DxO Wide Gamut

Extended-gamut printing
The print gamut achieved by using cyan, magenta, yellow, and black inks is sometimes a limitation, for example when printing colors of corporate logos. Therefore, some methods of color printing use additional ink colors to achieve a larger gamut. For example, some use green, orange, and violet inks to increase the achievable saturation of hues near those. These method are variously called heptatone color printing, extended gamut printing, and 7-color printing, etc.