i
i
i
i
i
i
i
i
7.3. Colorimetry 215
The chromaticity diagram is important in understanding how color is
used in rendering, and the limits of the rendering system. A computer
monitor presents colors by using some settings of R, G,andB color values.
Each color channel controls some physical phenomenon, e.g., exciting a
phosphor, which in turn emits light in a particular spectrum. By exciting
three phosphors, three spectra are emitted, which are added together and
create a single spectrum that the viewer perceives. The eye’s three types
of cones also each have their own color matching functions, i.e., each cone
responds to the incoming spectrum and sends a signal to the brain.
The display system is limited in its ability to present different colors by
the spectra of its three channels. An obvious limitation is in luminance, as a
computer monitor is only so bright, but there are also limits to saturation.
As seen earlier, the r, g,andb color matching system needed to have
negative weights for some of the spectrum colors to be matched. These
colors with negative weights are colors that could not be displayed by a
combination of the three lights. Video displays and printers are limited in
a similar fashion.
The triangle in the chromaticity diagram represents the gamut of a
typical computer monitor. The three corners of the triangle are the most
saturated red, green, and blue colors the monitor can display. An important
property of the chromaticity diagram is that these limiting colors can be
joined by straight lines to show the limits of the monitor as a whole. The
straight lines represent the limits of colors that can be displayed by mixing
these three primaries. See Stone’s book [1224] for more information.
Conversion from XY Z to RGB space is linear and can be done with a
matrix [287, 349]:
⎛
⎝
R
G
B
⎞
⎠
=
⎛
⎝
3.240479 −1.537150 −0.498535
−0.969256 1.875992 0.041556
0.055648 −0.204043 1.057311
⎞
⎠
⎛
⎝
X
Y
Z
⎞
⎠
. (7.9)
This conversion matrix is for a monitor with a D65 white point, a particular
definition of the “full on” white color produced by the monitor. Some XYZ
values can transform to RGB values that are negative or greater than one.
These are colors that are out of gamut, not reproducible on the monitor.
The inverse RGB to XYZ conversion is
⎛
⎝
X
Y
Z
⎞
⎠
=
⎛
⎝
0.412453
0.357580
0.180423
0.212671 0.715160 0.072169
0.019334 0.119193 0.950227
⎞
⎠
⎛
⎝
R
G
B
⎞
⎠
. (7.10)
A common conversion is to transform an RGB color to a grayscale lumi-
nance value, which is simply the middle row of the previous equation:
Y =0.212671R +0.715160G +0.072169B. (7.11)