Hue

From Wikipedia, the free encyclopedia
Jump to: navigation, search
For the city in Vietnam, see Huế. For other uses, see Hue (disambiguation).
Hue in the HSB/HSL encodings of RGB
An image with the hues cyclically shifted in HSL space
The hues in the image of this Painted Bunting are cyclically rotated over time.

Hue is one of the main properties of a color, defined technically (in the CIECAM02 model), as "the degree to which a stimulus can be described as similar to or different from stimuli that are described as red, green, blue, and yellow,"[1] (the unique hues). Orange and violet (purple) are the other hues, for a total of six, as in the rainbow: red, orange, yellow, green, blue, violet. The other main correlatives of color appearance are colorfulness, chroma, saturation, lightness, and brightness.

Usually, colors with the same hue are distinguished with adjectives referring to their lightness and/or colorfulness, such as with "light blue", "pastel blue", "vivid blue". Exceptions include brown, which is a dark orange,[2] and pink, a light red with reduced chroma.

In painting color theory, a hue refers to a pure color—one without tint or shade (added white or black pigment, respectively).[3] A hue is an element of the color wheel. Hues are first processed in the brain in areas in the extended V4 called globs.[4][5]

Computing hue[edit]

In opponent color spaces in which two of the axes are perceptually orthogonal to lightness, such as the CIE 1976 (L*, a*, b*) (CIELAB) and 1976 (L*, u*, v*) (CIELUV) color spaces, hue may be computed together with chroma by converting these coordinates from rectangular form to polar form. Hue is the angular component of the polar representation, while chroma is the radial component.

Specifically, in CIELAB:[6]

h_{ab} = \mathrm{atan2}(b^*, a^*)\;

while, analogously, in CIELUV:[6]

h_{uv} = \mathrm{atan2}(v^*, u^*) =  \mathrm{atan2}(v', u')\;

Where, atan2 is a two-argument inverse tangent.

Computing hue from RGB[edit]

Preucil[7] describes a color hexagon, similar to a trilinear plot described by Evans, Hanson, and Brewer,[8] which may be used to compute hue from RGB. To place red at 0°, green at 120°, and blue at 240°.

 h_{rgb} = \mathrm{atan2}\left( \sqrt{3} \cdot (G - B), 2 \cdot R - G - B \right)

Equivalently, one may solve:

 \tan( h_{rgb}) = \frac{\sqrt{3}\cdot (G - B)}{2\cdot R - G - B}

Preucil used a polar plot, which he termed a color circle.[7] Using R, G, and B, one may compute hue angle using the following scheme: determine which of the six possible orderings of R, G, and B prevail, then apply the formula given in the table below.

HSV color space as a conical object
An illustration of the relationship between the "hue" of colors with maximal saturation in HSV and HSL with their corresponding RGB coordinates.
Ordering Hue Region Formula
R \ge G \ge B Red-Yellow h_{Preucil\ circle} = 60^{\circ} \cdot \frac{G - B}{R - B}
G > R \ge B Yellow-Green h_{Preucil\ circle} = 60^{\circ} \cdot \left( 2 - \frac{R - B}{G - B}\right)
G \ge B > R Green-Cyan h_{Preucil\ circle} = 60^{\circ} \cdot \left( 2 + \frac{B - R}{G - R}\right)
\ B > G > R\ Cyan-Blue h_{Preucil\ circle} = 60^{\circ} \cdot \left( 4 - \frac{G - R}{B - R}\right)
B > R \ge G Blue-Magenta h_{Preucil\ circle} = 60^{\circ} \cdot \left( 4 + \frac{R - G}{B - G}\right)
R \ge B > G Magenta-Red h_{Preucil\ circle} = 60^{\circ} \cdot \left( 6 - \frac{B - G}{R - G}\right)

Note that in each case the formula contains the fraction \frac{M - L}{H - L}, where H is the highest of R, G, and B; L is the lowest, and M is the mid one between the other two. This is referred to as the Preucil Hue Error, and was used in the computation of mask strength in photomechanical color reproduction.[9]

Hue angles computed for the Preucil circle agree with the hue angle computed for the Preucil Hexagon at integer multiples of 30 degrees (red, yellow, green, cyan, blue, magenta, and the colors mid-way between contiguous pairs) and differ by approximately 1.2 degrees at odd integer multiples of 15 degrees (based on the circle formula), the maximum divergence between the two.

The process of converting an RGB color into an HSL color space or HSV color space is usually based on a 6-piece piecewise mapping, treating the HSV cone as a hexacone, or the HSL double cone as a double hexacone.[10] The formulae used are those in the table above.

Specialized hues[edit]

The hues exhibited by caramel colorings and beers are fairly limited in range. The Linner hue index is used to quantify the hue of such products.

Usage in art[edit]

Manufacturers of pigments use the word hue e.g. 'Cadmium Yellow (hue)' to indicate that the original pigmentation ingredient, often toxic, has been replaced by safer (or cheaper) alternatives whilst retaining the hue of the original. Replacements are often used for chromium, cadmium and alizarin.

Hue vs. dominant wavelength[edit]

Dominant wavelength (or sometimes equivalent wavelength) is a physical analog to the perceptual attribute hue. On a chromaticity diagram, a line is drawn from a white point through the coordinates of the color in question, until it intersects the spectral locus. The wavelength at which the line intersects the spectrum locus is identified as the color's dominant wavelength if the point is on the same side of the white point as the spectral locus, and as the color's complementary wavelength if the point is on the opposite side.[11]

Hue difference: \Delta h or \Delta H^*?[edit]

There are two main ways in which hue difference is quantified. The first is the simple difference between the two hue angles. The symbol for this expression of hue difference is \Delta h_{ab} in CIELAB and \Delta h_{uv} in CIELUV. The other is computed as the residual total color difference after Lightness and Chroma differences have been accounted for; its symbol is \Delta H^*_{ab} in CIELAB and \Delta H^*_{uv} in CIELUV.

Names and other notations for hues[edit]

There exists some correspondence, more or less precise, between hue values and color terms (names). One approach in color science is to use traditional color terms but try to give them more precise definitions. See spectral color#Table of spectral or near-spectral colors for names of highly saturated colors with the hue from ≈ 0° (red) up to ≈ 275° (violet), and line of purples#Table of highly-saturated purple colors for color terms of the remaining part of the color wheel.

Alternative approach is to use a systematic notation. It can be a standard angle notation for certain color model such as HSL/HSV mentioned above, CIELUV, or CIECAM02. Alphanumeric notations such as of Munsell color system, NCS, and Pantone Matching System are also used.

See also[edit]

References[edit]

  1. ^ Mark Fairchild, "Color Appearance Models: CIECAM02 and Beyond." Tutorial slides for IS&T/SID 12th Color Imaging Conference.
  2. ^ C J Bartleson, "Brown". Color Research and Application, 1 : 4, p 181-191 (1976).
  3. ^ "The Color Wheel and Color Theory". Creative Curio. 2008-05-16. Retrieved 2011-06-09. 
  4. ^ Conway, BR; Moeller, S; Tsao, DY. (2007). "Specialized color modules in macaque extrastriate cortex". Neuron 56 (3): 560–73. doi:10.1016/j.neuron.2007.10.008. PMID 17988638. 
  5. ^ Conway, BR; Tsao, DY (2009). "Color-tuned neurons are spatially clustered according to color preference within alert macaque posterior inferior temporal cortex". Proceedings of the National Academy of Sciences of the United States of America 106 (42): 18034–9. doi:10.1073/pnas.0810943106. PMC 2764907. PMID 19805195. 
  6. ^ a b Colorimetry, second edition: CIE Publication 15.2. Vienna: Bureau Central of the CIE, 1986.
  7. ^ a b Frank Preucil, "Color Hue and Ink Transfer … Their Relation to Perfect Reproduction, TAGA Proceedings, p 102-110 (1953).
  8. ^ Ralph Merrill Evans, W T Hanson, and W Lyle Brewer, Principles of Color Photography. New York: Wiley, 1953
  9. ^ Miles Southworth, Color Separation Techniques, second edition. Livonia, New York: Graphic Arts Publishing, 1979
  10. ^ Max K. Agoston (2004). Computer Graphics and Geometric Modelling v. 1: Implementation and Algorithms. Springer. pp. 301–304. ISBN 1-85233-818-0. 
  11. ^ Deane B Judd and Günter Wyszecki, Color in Business, Science, and Industry. New York: Wiley, 1976.

External links[edit]