Color model

From wiki.gis.com
Jump to: navigation, search

A color model is a system for specifying any particular color within the full range of possible colors. Most color models are based on an abstract three-dimensional color space, and a method for measuring a location within that space, usually three or four values or color components.[1]

Tristimulus color space

3D representation of the human color space.

One can picture this space as a region in three-dimensional Euclidean space if one identifies the x, y, and z axes with the stimuli for the long-wavelength (L), medium-wavelength (M), and short-wavelength (S) receptors. The origin, (S,M,L) = (0,0,0), corresponds to black. White has no definite position in this diagram; rather it is defined according to the color temperature or white balance as desired or as available from ambient lighting. The human color space is a horse-shoe-shaped cone such as shown here (see also CIE chromaticity diagram below), extending from the origin to, in principle, infinity. In practice, the human color receptors will be saturated or even be damaged at extremely-high light intensities, but such behavior is not part of the CIE color space and neither is the changing color perception at low light levels (see: Kruithof curve).

The most saturated colors are located at the outer rim of the region, with brighter colors farther removed from the origin. As far as the responses of the receptors in the eye are concerned, there is no such thing as "brown" or "gray" light. The latter color names refer to orange and white light respectively, with an intensity that is lower than the light from surrounding areas. One can observe this by watching the screen of an overhead projector during a meeting: one sees black lettering on a white background, even though the "black" has in fact not become darker than the white screen on which it is projected before the projector was turned on. The "black" areas have not actually become darker but appear "black" relative to the higher intensity "white" projected onto the screen around it. See also color constancy.

The human tristimulus space has the property that additive mixing of colors corresponds to the adding of vectors in this space. This makes it easy to, for example, describe the possible colors (gamut) that can be constructed from the red, green, and blue primaries in a computer display.

CIE XYZ color space

Main article: CIE 1931 color space
CIE1931 Standard Colorimetric Observer functions between 380 nm and 780 nm (at 5 nm intervals).

One of the first mathematically defined color spaces is the CIE XYZ color space (also known as CIE 1931 color space), created by the International Commission on Illumination in 1931. These data were measured for human observers and a 2-degree field of view. In 1964, supplemental data for a 10-degree field of view were published.

Note that the tabulated sensitivity curves have a certain amount of arbitrariness in them. The shapes of the individual X, Y and Z sensitivity curves can be measured with a reasonable accuracy. However, the overall luminosity curve (which in fact is a weighted sum of these three curves) is subjective, since it involves asking a test person whether two light sources have the same brightness, even if they are in completely different colors. Along the same lines, the relative magnitudes of the X, Y, and Z curves are arbitrary. One could as well define a valid color space with an X sensitivity curve that has twice the amplitude. This new color space would have a different shape. The sensitivity curves in the CIE 1931 and 1964 xyz color space are scaled to have equal areas under the curves.

The figure on the right shows the related chromaticity diagram with wavelengths in nanometers.

In this diagram, x and y are related to the X, Y, and Z tristimulus values under Human tristimulus color space above according to:

x = X/(X + Y + Z),
y = Y/(X + Y + Z).

Mathematically, x and y are projective coordinates and the colors of the chromaticity diagram occupy a region of the real projective plane. Because the CIE sensitivity curves have equal areas under the curves, light with a flat energy spectrum corresponds to the point (x,y) = (0.333,0.333).

The values for X, Y, and Z are obtained by integrating the product of the spectrum of a light beam and the published color-matching functions. Blue and red wavelengths do not contribute strongly to the luminosity, which is illustrated by the following example:

red green blue red+green green+blue red+blue red+green+blue zero light

For someone with normal color vision, green is brighter than red, which is brighter than blue. Even though the pure blue appears to be very dark and hardly discernible from black when observed from a distance, blue has a strong coloring power when mixed with green or red.

With some forms of "red-green color blindness" the green is very slightly brighter than the blue, and the red is so dark it can barely be made out. Red traffic lights in bright daylight appear broken (no light). The green traffic light appears dirty white and hard to distinguish from night street lights.

The CIE-xyz color space is a prism, as opposed to the cone-shaped tristimulus space above. In the two-dimensional xy representation, all possible additive mixtures of two colors A and B form a straight line. However, the additive mixture of two colors does generally not lie on the mid-point of this line.

RGB color model

RGBCube b.svg

In the eye, there are three kinds of color receptors, called cone cells. The three kinds of cone cells are sensitive to the short, medium, and long wavelengths of visible light. The RGB color model approximates the way human vision encodes images by using three primary color channels: red, green, and blue. Emitted light sources such as monitors, flat-panel displays, and video projectors use the RGB color model, as do image-capturing devices such as video cameras and computers. In other words, the RGB color model combines red, green, and blue colors in different quantities in order to produce a more complex color. The RGB model defines a color by giving the intensity level of red, green and blue light that mix together to create it on the display. With most of today's displays, the intensity of each color can vary from 0 to 255, which gives 16,777,216 different colors. Mixtures of light of these primary colors cover a large part of the human color space and thus produce a large part of human color experiences. This is why color television sets or color computer monitors need only produce mixtures of red, green and blue light. See Additive primary colors.

Other primary colors could in principle be used, but with red, green and blue the largest portion of the human color space can be captured. Unfortunately there is no exact consensus as to what loci in the chromaticity diagram the red, green, and blue colors should have, so the same RGB values can give rise to slightly different colors on different screens.

HSV and HSL representations

HSV cone.jpg
Color cones.png

After realizing that the geometry of the RGB model is poorly aligned with the color-making attributes recognized by human vision, computer graphics researchers developed two alternative representations of the RGB color model, HSV (hue, saturation, value) and HSL (hue, saturation, lightness). These models were formally defined and described in Alvy Ray Smith’s 1978 paper “Color Gamut Transform Pairs”.

HSV and HSL are based off of the RGB color model, but instead of being arranged in a cube, they use the cylindrical-coordinate system. The colors are arranged in a wheel around a central axis while the neutrals are arranged along this axis from top to bottom, starting with white and gradually darkening to black. Because of the way this model is set up, it is considered more user-friendly. HSV models itself on paint mixture, with its saturation and value dimensions resembling mixtures of a brightly colored paint with either white or black. The angle around the cylinder is correlated directly to hue, the distance the chosen point is from the axis determines the saturation, and the location along the axis determines the value/brightness. [2]

HSL tries to resemble more perceptual color models such as NCS or Munsell. It places the fully saturated colors in a circle of lightness ½, so that lightness 1 always implies white, and lightness 0 always implies black.

HSV and HSL are both widely used in computer graphics, particularly as color pickers in image editing software. The HSV model is one that is used commonly along with numerical data within ArcGIS.,[3] Since there are more color variations, it is easier to create color gradients. The mathematical transformation from RGB to HSV or HSL could be computed in real time, even on computers of the 1970s, and there is an easy-to-understand mapping between colors in either of these spaces and their manifestation on a physical RGB device.


CMYK color model

It is possible to achieve a large range of colors seen by humans by combining cyan, magenta, and yellow transparent dyes/inks on a white substrate. These are the subtractive primary colors. Often a fourth black is added to improve reproduction of some dark colors. This is called "CMY" or "CMYK" color space.

The cyan ink will reflect all but the red light, the yellow ink will reflect all but the blue light and the magenta ink will reflect all but the green light. This is because cyan light is an equal mixture of green and blue, yellow is an equal mixture of red and green, and magenta light is an equal mixture of red and blue.

Color systems

There are various types of color systems that classify color and analyse their effects. The American Munsell color system devised by Albert H. Munsell is a famous classification that organises various colors into a color solid based on hue, saturation and value. The Munsell Color System is useful in cartography because it divides all the colors available into equal steps, or in other words it creates an equal difference between one color and another. Other important color systems include the Swedish Natural Color System (NCS) from the Scandinavian Color Institute, the Optical Society of America's Uniform Color Space (OSA-UCS), and the Hungarian Coloroid system developed by Antal Nemcsics from the Budapest University of Technology and Economics. Of those, the NCS is based on the opponent-process color model, while the Munsell, the OSA-UCS and the Coloroid attempt to model color uniformity. The American Pantone color system and the German RAL commercial color-matching systems differ from the previous ones in that their color spaces are not based on an underlying color model. [4]

References

  1. . http://www.designersinsights.com/designer-resources/understanding-color-models. 
  2. http://learn.colorotate.org/color-models.html
  3. http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Working_with_color_ramps
  4. https://www.e-education.psu.edu/geog486/node/1861

See also

External links