Beruflich Dokumente
Kultur Dokumente
color
vision
the evolution of
color models
Swedish Natural
Color System
Munsell color system
OSA uniform color
scales
CIELUV
uniform color space
CIELAB
A color model represents the logical or
uniform
color
space
perceptual relationships among colors of lights or
surfaces. From the modern perspective, a color
CIECAM
model must meet the following four
color appearance model
requirements:
works.
Color Model Assumptions. The geometrical
framework used in modern color models
consists of the three colormaking attributes
arranged to define a three dimensional space.
The figure below shows how this is done. The
vertical black to white dimension is the
lightness or value of a color; the
circumference of the horizontal disk
perpendicular to the lightness dimension is the
hue of a color; and the lateral distance or
radius on this disk, from the center outward, is
the chroma (approximately the saturation) of
a color.
maximum chroma
munsell color sampl
the circumference is mo
th
six times the length of t
diamet
hue/chroma discriminati
ellipses in CIELA
"keystoning" as
example of a projecti
transformati
of Munsell value:
L* = 116*(Yc / Yw)1/3 16
a* = 500*[(Xc / Xw)1/3 (Yc / Yw)1/3]
b* = 200*[(Yc / Yw)1/3 (Zc / Zw)1/3].
These formulas take an alternate form, not
shown here, for extremely dark colors (where
any adaptation ratio is less than 0.009). For
details see the references at the end of this
section.
CIELAB yields a reliable correlate (relative
measurement) of chroma as the euclidean
distance between the chromaticity of the color
and the achromatic point:
Cab = [a*2 + b*2]1/2
... and a numerical definition of hue as the
hue angle:
hab = arctan[b*/a*]
... and its own color difference score Eab,
obtained as the euclidean distance between
the L*, a* and b* values of two similar
colors:
Eab = [(L*1L*2)2+(a*1a*2)2+(b*1
b*2)2]1/2
where "similar" means colors that are
separated by a Eab value of around 10 or
less. As a rule of thumb, 10 units of CIELAB
lightness exactly matches 1 unit of Munsell
value, and 10 units of CIELAB chroma
approximately matches 2 units of Munsell
chroma. The average Eab for the first chroma
step in Munsell aim colors across all hues and
values is about 5.8. Note that Eab is
approximately in units of just noticeable
difference, so color differences at or below 1
are generally not visible.
The Uniform Color Space. The CIELAB
transformations yield approximately
opponent geometry
CIELA
graphical summary
CIECA
input values a
paramete
luminance depende
opponent geometry
CIECA
CIECAM02
measured chroma of Munsell aim colors for value V = 4
to 8 and chroma C = 2 to 12, in CIELAB and CIECAM02;
illuminant D65
straightforward.
First, consider situations in which the scene
parameters Nc, F and c are held constant at
"normal" values that represent the viewing of
papers or prints under the same illumination
as the surround (La).
In this basic context the environmental
illumination can be varied from dim office
lighting of about 100 lux (La = 30) to
afternoon daylight illumination of about 10000
lux (La = 3000), and the documents or prints
can be viewed against a background that is
either dark gray (Yb = 5), middle gray (Yb =
20) or white (Yb = 90). The diagram below
shows the effect of these variations on
lightness (J) and brightness (Q).
NEXT:
Color Models
The purpose of a color model is to facilitate the specification of colors in some standard
generally accepted way. In essence, a color model is a specification of a 3-D coordinate
system and a subspace within that system where each color is represented by a single
point.
Each industry that uses color employs the most suitable color model. For example, the
RGB color model is used in computer graphics, YUV or YCbCr are used in video
systems, PhotoYCC* is used in PhotoCD* production and so on. Transferring color
information from one industry to another requires transformation from one set of values
to another. Intel IPP provides a wide number of functions to convert different color
spaces to RGB and vice versa.
The color subspace of interest is a cube shown in Figure "RGB and CMY Color
Models" (RGB values are normalized to 0..1), in which RGB values are at three corners;
cyan, magenta, and yellow are the three other corners, black is at their origin; and white
is at the corner farthest from the origin.
The gray scale extends from black to white along the diagonal joining these two points.
The colors are the points on or inside the cube, defined by vectors extending from the
origin.
Thus, images in the RGB color model consist of three independent image planes, one
for each primary color.
As a rule, the Intel IPP color conversion functions operate with non-linear gammacorrected images RGB.
The importance of the RGB color model is that it relates very closely to the way that the
human eye perceives color. RGB is a basic color model for computer graphics because
color displays use red, green, and blue to create the desired color. Therefore, the choice
of the RGB color space simplifies the architecture and design of the system. Besides, a
system that is designed using the RGB color space can take advantage of a large number
of existing software routines, because this color space has been around for a number of
years.
RGB and CMY Color Models
However, RGB is not very efficient when dealing with real-world images. To generate
any color within the RGB color cube, all three RGB components need to be of equal
pixel depth and display resolution. Also, any modification of the image requires
modification of all three planes.
green, and yellow is white minus blue. Subtracting all colors by combining the CMY at
full saturation should, in theory, render black. However, impurities in the existing CMY
inks make full and equal saturation impossible, and some RGB light does filter through,
rendering a muddy brown color. Therefore, the black ink is added to CMY. The CMY
cube is shown in Figure "RGB and CMY Color Models", in which CMY values are at
three corners; red, green, and blue are the three other corners, white is at the origin; and
black is at the corner farthest from the origin.
There are several YUV sampling formats such as 4:4:4, 4:2:2, and 4:2:0 that are
supported by the Intel IPP color conversion functions and are described in Image
Downsampling.
Since the PhotoYCC model attempts to preserve the dynamic range of film, decoding
PhotoYCC images requires selection of a color space and range appropriate for the
output device. Thus, the decoding equations are not always the exact inverse of the
encoding equations. The following equations [Jack01] are used in Intel IPP to generate
RGB values for driving a CRT display and require a unity relationship between the
luma in the encoded image and the displayed image:
R' = 0.981 * Y + 1.315 * (C2 - 0.537)
G' = 0.981 * Y - 0.311 * (C1 - 0.612)- 0.669 * (C2 - 0.537)
B' = 0.981 * Y + 1.601 * (C1 - 0.612)
The equations above are given on the assumption that source Y,C1, and C2 values are
normalized to the range [0..1], and the display primaries have the chromaticity values in
accordance with [ITU709] specifications.
The possible RGB colors occupy only part of the YCC color space (see Figure "RGB
Colors in the YCC Color Space") limited by the nominal ranges, therefore there are
many YCbCr combinations that result in invalid RGB values.
RGB Colors in the YCC Color Space
Saturation indicates the degree to which the hue differs from a neutral gray. The values
run from 0, which means no color saturation, to 1, which is the fullest saturation of a
given hue at a given illumination.
Intensity component - lightness (HLS) or value (HSV), indicates the illumination level.
Both vary from 0 (black, no light) to 1 (white, full illumination). The difference between
the two is that maximum saturation of hue (S=1) is at value V=1 (full illumination) in
the HSV color model, and at lightness L=0.5 in the HLS color model.
The HSV color space is essentially a cylinder, but usually it is represented as a cone or
hexagonal cone (hexcone) as shown in the Figure "HSV Solid", because the hexcone
defines the subset of the HSV space with valid RGB values. The value V is the vertical
axis, and the vertex V=0 corresponds to black color. Similarly, a color solid, or 3Drepresentation, of the HLS model is a double hexcone (Figure "HSV Solid") with
lightness as the axis, and the vertex of the second hexcone corresponding to white.
Both color models have intensity component decoupled from the color information. The
HSV color space yields a greater dynamic range of saturation. Conversions from
RGBToHSV/RGBToHSV and vice-versa in Intel IPP are performed in accordance with
the respective pseudocode algorithms [Rogers85] given in the descriptions of
corresponding conversion functions.
HSV Solid
HLS Solid
CIE XYZ space (and any color space based on it) is that this space is completely deviceindependent. The chromaticity diagram in Figure "CIE xyY Chromaticity Diagram and
Color Gamut" is in fact a two-dimensional projection of the CIE XYZ sub-space. Note
that arbitrarily combining X, Y, and Z values within nominal ranges can easily lead to a
"color" outside of the visible color spectrum.
The position of the block of RGB-representable colors in the XYZ space is shown in
Figure "RGB Colors Cube in the XYZ Color Space".
RGB Colors Cube in the XYZ Color Space
Intel IPP functions use the following basic equations [Rogers85], to convert between
gamma-corrected RGB and CIE XYZ models:
X = 0.412453*R + 0.35758 *G + 0.180423*B
Y = 0.212671*R + 0.71516 *G + 0.072169*B
Z = 0.019334*R + 0.119193*G + 0.950227*B
The equations for X,Y,Z calculation are given on the assumption that R,G, and B
values are normalized to the range [0..1].
R = 3.240479 * X - 1.53715 * Y - 0.498535 * Z
G = -0.969256 * X + 1.875991 * Y + 0.041556 * Z
B = 0.055648 * X - 0.204043 * Y + 1.057311 * Z
The equations for R,G, and B calculation are given on the assumption that X,Y, and Z
values are in the range [0..1].
The CIE LUV color space is derived from CIE XYZ as follows ([Rogers85]),
L = 116. * (Y/Yn)1/3. - 16.
U = 13. * L * (u - un)
V = 13. * L * (v - vn)
where
u = 4.*X / (X + 15.*Y + 3.*Z)
v = 9.*Y / (X + 15.*Y + 3.*Z)
un = 4.*xn / ( -2.*xn + 12.*yn + 3. )
vn = 9.*yn / ( -2.*xn + 12.*yn + 3. )
Inverse conversion is performed in accordance with equations:
Y = Yn * ((L + 16.) / 116.)3.
The CIE Lab color space is derived from CIE XYZ as follows:
L = 116. * (Y/Yn)1/3. - 16 for Y/Yn > 0.008856
L = 903.3 * (Y/Yn)1/3. for Y/Yn 0.008856
a = 500. * [f(X/Xn)-f(Y/Yn)]
b = 200. * [f(Y/Yn)-f(Z/Zn)]
where
f(t) = t1/3. - 16 for t > 0.008856
f(t) = 7.787*t + 16/116 for t 0.008856
Here Yn = 1.0 is the luminance, and Xn = 0.950455, Zn = 1.088753 are the chrominances
for the D65 white point.
The values of the L component are in the range [0..100], a and b component values are
in the range [-128..127].
Inverse conversion is performed in accordance with equations:
Y = Yn * P3.
X = Xn * (P + a/500.)3.
Z = Zn * (P - b/200.)3.
where
P = (L +16)/116.
Parent topic: Image Color Conversion
Main
RGB
Munsell
HSB/HLS
CIE
CIEXYZ
CIELUV
CIELAB
Color Models
The Munsell Color System
One of the most influential color-modeling systems was
devised by Albert Henry Munsell, an American artist. Munsell
desired to create a "rational way to describe color" that would
use clear decimal notation instead of a lot of color names that
he considered "foolish" and "misleading." His system, which
he began in 1898 with the creation of his color sphere, or tree,
saw its full expression with his publication, A Color Notation,
in 1905. This work has been reprinted several times and is
still a standard for colorimetry (the measuring of color).
Munsell modeled his system as an orb around whose equator
runs a band of colors. The axis of the orb is a scale of neutral
gray values with white as the north pole and black as the
south pole. Extending horizontally from the axis at each gray
value is a gradation of color progressing from neutral gray to
full saturation. With these three defining aspects, any of
thousands of colors could be fully described. Munsell named
these aspects, or qualities, Hue, Value, and Chroma.
Hue
Munsell defined hue as "the quality by which we distinguish
one color from another." He selected five principle colors:
red, yellow, green, blue, and purple; and five intermediate
colors: yellow-red, green-yellow, blue-green, purple-blue, and
red-purple; and he arranged these in a wheel measured off in
100 compass points:
The colors were simply identified as R for red, YR for redyellow, Y for yellow, etc. Each primary and intermediate color
was allotted ten degrees around the compass and then further
identified by its place in the segment. For example, primary
red would be identified as 5R since it stands at the mid-point
of the red segment. 2.5R would be a red tending more toward
red-purple, while 7.5R is a red tending more toward yellowred.
Munsell's arrangement of colors in this way was also
important for his concept of color harmony, or balance.
Munsell was a conservative artist with strict views on the
aesthetics of painting. He wanted his system to serve not only
as guide for notating colors, but as a guide for choosing
complimentary colors for artistic work.
Value
Value was defined by Munsell defined value as "the quality
by which we distinguish a light color from a dark one." Value
is a neutral axis that refers to the grey level of the color. This
ranges from white to black. As notations such as 10R, 5YR,
7.5PB, etc. denote particular hues, the notation N is used to
denote the gray value at any point on the axis. Thus a value of
5N would denote a middle gray, 2N a dark gray, and 7N a
light gray. In Munsell's original system, values 1N and 9N
are, respectively, black and white, though this was later
Main
RGB
Munsell
HSB/HLS
CIE
CIEXYZ
CIELUV
CIELAB
Color Models
The CIE Color Models
CIE stands for Comission Internationale de l'Eclairage
(International Commission on Illumination). The commission
was founded in 1913 as an autonomous international board to
provide a forum for the exchange of ideas and information
and to set standards for all things related to lighting. As a part
of this mission, CIE has a technical committee, Vison and
Colour, that has been a leading force in colorimetry since it
first met to set its standards in Cambridge, England, in 1931.
The CIE color model was developed to be completely
independent of any device or other means of emission or
reproduction and is based as closely as possible on how
humans perceive color. The key elements of the CIE model
are the definitions of standard sources and the specifications
for a standard observer.
Standard Sources
The following CIE standard sources were defined in 1931:
Source A
A tungsten-filament lamp with a color temperature of
2854K
Source B
A model of noon sunlight with a temperature of 4800K
Source C
A model of average daylight with a temperature of 6500K
Sources B and C are actually derived from source A through
the use of filters that alter their spectral power distribution.
Color Models
In Photoshop the color models are accessed through: Image > Mode.
Think of Hue as the distinct colors you can see on a color wheel - or
the individual bands of the rainbow. Our perception of Hue is based
upon the wavelength of light reflected from an object, or transmitted
through it.
In a world made rich by the interplay of light and shadow, there are
an infinite range of shades of each possible color. In the shadows,
light has been masked, so there is less light to bounce back. We
perceive this as being an area of duller or less vibrant color. We
reproduce this on a computer monitor by adding varying amounts
of gray to a color in shadowy areas, thus simulating shadows.
Saturation, often called chroma, is the amount of grey in a color. The
higher the saturation, the lower the grey content and the more pure
our perception of the color.
Brightness is a measure of the intensity of light in a color, the energy
of a color. It is sometimes called Value and you may see HSB written
HSV. We know that red is a hue, but there are many varieties of red
and we can only use adjectives to describe these "values" of red bright red, light red, violent red, dark red, deep red etc although there
are other words equally ambiguous such as maroon. These are not
very precise measurements. The software can distinguish very fine
changes in value or brightness on a numeric scale.
It is important to distinguish between saturation or brightness...for the
value of red we designate verbally as maroon can be in the shadows
in our image and we can have a value of a hue that is desaturated
(grey added to it) in our digital image.
In 1976, the original color model was refined and called CIE Lab. It
was created in an attempt to provide consistent colors, no matter
what monitor or printers being used; this is called device-independent
color. Theoretically, device-independent color isn't affected by the
characteristics or idiosyncrasies of any piece of hardware. The "L"
component is uniform luminance, and the "a" and "b" components of
any measured color are measures of color differences, i.e. a
subtractive model in the same way that CMYK color is subtracted from
white light.
Although you may rarely need to use Lab color, this color model is
vital to PhotoShop because Lab is the internal color model that
PhotoShop uses to convert from one color mode to another.
When PhotoShop converts from RGB to CMYK, it first converts to Lab
color, then from Lab to CMYK. One reason why Lab is used for this
mathematical conversion is because the Lab color gamut
encompasses both the color gamut's of RGB and CMYK.