Color Models & Application
Color Models & Application
R = 700.0 nm
G = 546.1 nm
B = 435.8 nm
Negative Light in a CME
if a match using only positive RGB values
proved impossible, observers could simulate a
subtraction of red from the match side by
adding it to the test side
Color Models
Method for explaining the properties or behavior of color within some particular
context
Combine the light from two or more sources with different dominant frequencies and
vary the intensity of light to generate a range of additional colors
Primary Colors
3 primaries are sufficient for most purposes
Hues that we choose for the sources
Color gamut is the set of all colors that we can produce from the primary colors
Complementary color is two primary colors that produce white
Red and Cyan, Green and Magenta, Blue and Yellow
Color-Matching
Colors in the vicinity of 500 nm can be matched by subtracting
an amount of red light from a combination of blue and green
lights
Thus, an RGB color monitor cannot display colors in the
neighborhood of 500 nm
CIE XYZ
Problem solution: XYZ color system
Tristimulus system derived from RGB
Based on 3 imaginary primaries
All 3 primaries are outside the human
visual gamut
Only positive XYZ values can occur
1931 by CIE (Commission
Internationale de l’Eclairage)
Transformation CIE RGB->XYZ
Projective transformation specifically
designed so that Y = V (luminous efficiency
function)
XYZ CIE RGB uses inverse matrix
XYZ any RGB matrix is device dependent
X k fx ( ) I ( ) d
visible
Y k fy ( ) I ( ) d
visible
Z k fz ( ) I ( ) d
visible
k = 683 lumens/watt
I(λ) = spectral radiance
f = color-matching function
C ( ) XX YY ZZ
The XYZ Model
Normalized XYZ values
Normalize the amounts of each primary against the
sum X+Y+Z, which represent the total light energy
x z
X Y, Z Y
X y y
x
X Y Z
Y where z = 1 - x - y, color can be represented with just x and y
y x and y called chromaticity value,
X Y Z
it depend only on hue and purify
Y is luminance
RGB vs. XYZ
The CIE Chromaticity Diagram
A tongue-shape curve
formed by plotting the
normalized amounts x and y Spectral
for colors in the visible Colors
spectrum
Points along the curve are
spectral color (pure color)
Purple line, the line joining
the red and violet spectral C
points
Illuminant C, plotted for a
white light source and used
as a standard approximation
for average daylight
Illuminant Purple
Line
The CIE Chromaticity Diagram
Luminance values are not available because of
normalization
Colors with different luminance but same
chromaticity map to the same point
Usage of CIE chromaticity diagram
Comparing color gamuts for different set of primaries
Identifying complementary colors
Determining purity and dominate wavelength for a given
color
Color gamuts
Identify color gamuts on diagram as straight-line segments
or polygon regions
The CIE Chromaticity Diagram
Color gamuts
All color along the straight
line joining C1 and C2 can be
obtained by mixing colors C1
and C2
Greater proportion of C1 is
used, the resultant color is
closer to C1 than C2
Color gamut for C3, C4, C5
generate colors inside or on
edges
No set of three primaries
can be combined to
generate all colors
The CIE Chromaticity Diagram
Complementary colors
Represented on the
diagram as two points on
opposite sides of C and
collinear with C
The distance of the two
colors C1 and C2 to C
determine the amount of
each needed to produce
white light
The CIE Chromaticity Diagram
Dominant wavelength
Draw a straight from C through
color point to a spectral color on
the curve, the spectral color is
the dominant wavelength
Special case: a point between C
and a point on the purple line
Cp, take the compliment Csp as
dominant
Purity
For a point C1, the purity
determined as the relative
distance of C1 from C along the
straight line joining C to Cs
Purity ratio = dC1 / dCs
subYM
Additive Subtractive
Blue is one-third
Yellow (red+green) is Orange (between red
two-thirds and yellow)<>cyan-blue
When blue and yellow green-cyan<>magenta-
light are added together,
they produce white light red color
Pair of complementary
colors
blue and yellow
green and magenta
red and cyan
addRG
The RGB Color Model
Basic theory of RGB color model
The tristimulus theory of vision
It states that human eyes perceive color through the stimulation of three
visual pigment of the cones of the retina
Red, Green and Blue
Model can be represented by the unit cube defined on R,G and B axes
The RGB Color Model
An additive model, as with
the XYZ color system
Each color point within the
unit cube can be represented
as a weighted vector sum of
the primary colors, using
vectors R, G and B
C(λ)=(R,
C ( ) ( R, G,
G, BB)=RR+GG+BB
) RR GG BB
Cyan
Yellow Green
Black
Red Blue
Yellow absorbs Blue
Magenta absorbs Green
Cyan absorbs Red
Magenta
CMYK
Color Selection and
Applications
Graphical package provide color capabilities in a way
that aid users in making color selections
For example, contain sliders and color wheels for RGB
components instead of numerical values
Color applications guidelines
Displaying blue pattern next to a red pattern can cause eye
fatigue
Prevent by separating these color or by using colors from one-
half or less of the color hexagon in the HSV model
Smaller number of colors produces a better looking display
Tints and shades tend to blend better than pure hues
Gray or complement of one of the foreground color is
usually best for background
How different are the colors of square A and
square B?
They are
the same!
Don’t
believe me?
What color is this How about this
blue cube? yellow cube?
Want to see it slower?
What color is this How about this
blue cube? yellow cube?
Even slower?
How about this
What color is this
yellow cube?
blue cube?
So what color is it?
What color is this How about this
blue cube? yellow cube?
It’s gray!
Humans Only Perceive
Relative Brightness
Cornsweet Illusion
Corn sweet illusion. Left part of the The same image, but the edge in the
picture seems to be darker than the middle is hidden. Left and right part
right one. In fact they have the same of the image appear as the same
brightness. color now.
Self-Animated Images