Lec5 Color
Lec5 Color
-12 -8 -4 4 8
10 10 10 1 10 10
Wavelength in meters (m)
Visible light
0.5 0.5
0.5 0.5
test match
+ -
+ -
+ -
•Thomas Young
• A few different retinal receptors operating with different
wavelength sensitivities allow humans to perceive colors
• Suggested 3 receptors
Lens
Retina
Ocular Muscle
bipolar horizontal
amacrine
ganglion
light
Retinal Photoreceptors
• Cones: Sensitive to high illumination levels (Photopic vision)
Less sensitive than rods
5 million cones in each eye
Only cones in fovea (approx. 50,000)
Density decreases with distance from fovea
3 types differing in their spectral sensitivity: L , M, and S
1
Relative sensitivity
L
M
0.75 S
0.5
0.25
= A• + B• + C•
Is given by (A, B, C)
Choosing The Primaries
• Stiles & Burch (1959) used 3 monochromatic primaries
of wavelengths 444.4, 525.3 and 645.2
Primary Intensity
3
r(λ)
2
b(λ) g(λ)
1
0
400 500 600 700
Wavelength (nm)
1.8
z(λ)
1.4
Tristimulus values
y(λ)
1 x(λ)
0.6
0.2
400 500 600 700
Wavelength (nm)
• Weights are non negative over the visible wavelengths
• The 3 primaries associated with x y z color matching
functions cannot be easily realized in hardware
• y was chosen to equal luminance of monochromatic lights
CIE Color Standard
If X, Y and Z are the weights used to define a color C, then the chromaticity
values x, y, z (independent from the luminosity) are given by:
x= X/(X+Y+Z) y=Y/(X+Y+Z) z=Z/(X+Y+Z)
(x,y,z) is a point on the plane X+Y+Z=1
Y
0.9
520 530
510 540
550
y 505 560 X
500 570
0.5 580
495 590 Z
600
610
490 650
485
CIE Chromaticity Diagram
480
470
450
x
0.0
0.0 0.5 1.0
CIE Color Standard
• Color Gamut: A convex sum of several colors
RGB Color Representation
Cathode shadow mask
(electron gun) electron guns
and phosphor
coated screen
shadow mask
focusing phosphors on
anode deflection glass screen
yoke
blue
green
red
black
RGB to CIE-XYZ Conversion
• RGB to CIE-XYZ is a linear transformation:
2 .3 6 5 − 0 .5 1 5 0 .0 0 5 R X
− 0 .8 9 7 1 .4 2 6 − 0 .0 1 4 G = Y
− 0 .4 6 8 0 .0 8 9 1 .0 0 9 B Z
C 1 R
M = 1 − G
Y 1 B
• Y = Luminance +
• I = Red-Green - +
• Q = Blue-Yellow -
The YIQ Color Model
• The human eye is more sensitive to luminosity than to colors, so it is
possible to save space by encoding colors more coarsely
• Preferred by the NTSC because of backward compatibility with B/W TV
Original Y - Blur
I - Blur Q - Blur
Summary
• CIE-XYZ
• Tristimulus Coordinates
• Device Independent
• Universal standard
• CIE-Lab
• Perceptual Space, used to assess image quality
• RGB and CMY
• Hardware oriented
• Additive spaces used for CRT, printers, photography
• YIQ and YCbCr
• Opponent Space
• Used for color television broadcast and image
compression
• HLS
• Perceptual Digitized Space
• Used for Human Interactive Painting