Computer Graphics: Color Models and Color Applications
Computer Graphics: Color Models and Color Applications
Chapter 12
Color Models and Color
Applications
R = 700.0 nm
G = 546.1 nm
B = 435.8 nm
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
x z
X Y, Z Y
X y y
x
X Y Z
where z = 1 - x - y, color can be represented with just x and y
Y
y x and y called chromaticity value,
X Y Z it depend only on hue and purify
Y is luminance
Illuminant Purple
Line
Additive Subtractive
Blue is one-third Orange (between red a
Yellow (red+green) is two-thir
ds
nd yellow)<>cyan-blue
When blue and yellow light are
green-cyan<>magenta-
added together, they produce red color
white light
Pair of complementary colors
blue and yellow
green and magenta
red and cyan
addRG
Cyan
Yellow Green
Black
Red Blue
Yellow absorbs Blue
Magenta absorbs Green
Cyan absorbs Red
Magenta
R 1 C
Transformation matrix of conve G 1 M
rsion from CMY to RGB B 1 Y
rg
60 240 if max b
max min
CMYK 43
Color Selection and Applicatio
ns
Graphical package provide color capabilities in a way
that aid users in making color selections
For example, contain sliders and color wheels for RGB comp
onents instead of numerical values
Color applications guidelines
Displaying blue pattern next to a red pattern can cause eye f
atigue
Prevent by separating these color or by using colors from one-h
alf 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 usuall
y best for background
They are
the same!
Don’t
believe me?
45
What color is this How about this
blue cube? yellow cube?
46
Want to see it slower?
What color is this How about this
blue cube? yellow cube?
47
Even slower?
What color is this How about this
blue cube? yellow cube?
48
So what color is it?
What color is this How about this
blue cube? yellow cube?
It’s gray!
49
Humans Only Perceive Relativ
e Brightness
50
Cornsweet Illusion
Cornsweet 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.
51
Self-Animated Images
52
What happens when chickens
see red?
A company* that markets red contact lenses for chickens (at 20 cents
a pair), points to medical studies showing that chickens wearing red-tin
ted contact lenses behave differently from birds that don't.
They eat less, produce more and don't fight as much. This decreases a
ggressive tendencies and birds are less likely to peck at each other cau
sing injury.
A spokesman said the lenses will improve world egg-laying productivity
by $600 million a year.
(Perhaps everything looks red and they cannot distinguish combs, wattl
es, or blood.
Or ...perhaps the chickens are happier because they're viewing the wor
ld through rose colored glasses.)