© UW CSE Vision Faculty
© UW CSE Vision Faculty
Color
Perceiving light
• How do we convert radiation into “color”?
• What part of the spectrum do we see?
Newton’s prism experiment
i(x,y)
f(x,y)
r(x,y)
f ( x, y ) = i ( x, y ) r ( x , y )
where
0 < i ( x, y ) < ∞ and 0 < r ( x, y ) < 1
Color perception
• Light hits the retina, which contains photosensitive cells
– rods and cones
• Rods responsible for intensity, cones responsible for color
Density of rods and cones
With left eye shut, look at the cross on the left. At the right
distance, the circle on the right should disappear (Glassner, 1.8).
Retinal cells compare center with surrounding pixels
“Color-opponent” processing
Brightness Contrast
L response curve
Wavelength
Wavelength
Note: To represent the full gamut of colors (e.g., black), you need to include
brightness and therefore you are back in a 3D space (like the RGB cube)
Skin color in normalized RGB space
g
Skin color
samples from
several people
H=240 is blue
I=0
Black
Saturation example
Color bins
Another Example
Top left
image is
query
image. The
others are
retrieved by
having
similar color
histogram
(See Ch 8).
Color Histograms for Image Matching (Swain & Ballard, 1991)
• wb = R + G + B
Opponent Encoding: • rg = R - G
• by = 2B - R - G
∑ min
Objects for Training and Testing
(Swain & Ballard, 1991)
Input Image
Result of
histogram
“backprojection”
for blue striped
shirt
Object Location: Results for All Objects
Result for obj 1 Result for obj 2 Result for obj 3 …
Occlusion Testing
Input Image
Result of
histogram
backprojection
for blue striped
shirt
Finding Occluded Objects: Results for All Objects
Result for obj 1 Result for obj 2 Result for obj 3 …
How can we achieve invariance to
illumination/lighting changes?
Recall: Image Formation Basics
i(x,y)
f(x,y)
r(x,y)
f ( x, y ) = i ( x, y ) r ( x , y )
where
0 < i ( x, y ) < ∞ and 0 < r ( x, y ) < 1
Images retrieved