02-color
02-color
Exposure
Surface reflectance
Optics properties
Slide credit: L. Fei-Fei
digital camera
2D
1D
11
#thedress
• Let’s take averages
12
#thedress
• The dress in the photograph
13
#thedress
• Consider the dress is in shadow.
15
#thedress
• Consider the dress is in bright light.
16
#thedress
• Answer:
17
Brightness perception
Edward Adelson
Brightness perception
Edward Adelson
Brightness perception
21
Land’s Experiment (1959)
b' q (l )
r ' (l )
Image p ' (l ) Scene
Intensity Reflectance
• Monochromatic Light : (l = li )
b' ( x, y) = r ' ( x, y) e' ( x, y) q(li ) = 1
Newton 1665
Slide credit: B. Freeman, A. Torralba, K. Grauman
Electromagnetic spectrum
• Light is electromagnetic radiation
– exists as oscillations of different frequency (or, wavelength)
Relative
# Photons
spectral
(per power
ms.)
power
# Photons
# Photons
power
Rel.
Rel.
power
power
# Photons
Photons
#Rel.
Rel.
Exposure
Surface reflectance
Optics properties
Slide credit: L. Fei-Fei
Color mixing
Cartoon spectra for color names:
Credit: W. Freeman
Additive color mixing
Credit: W. Freeman
Interaction of light and surfaces
• Reflected color is the
result of interaction of
light source spectrum
with surface
reflectance
https://www.dkfindout.com/us/science/light/seeing-color/
The Eye
wavelengths
100
S M L
50
WAVELENGTH (nm.)
Wavelength
Rods and cones act as filters on
the spectrum
Q: How can we represent an
– To get the output of a filter,
entire spectrum with 3
multiply its response curve by
the spectrum, integrate over all numbers?A: We can’t! Most of
wavelengths the information is lost.
• Each cone yields one number
2D
1D
• Estimate RGB
at G cells from
neighboring values
http://www.cooldictionary.com/
words/Bayer-filter.wikipedia
Slide credit: S. Seitz
Digital color images
R G B
Slide credit: K. Grauman
Color spaces: RGB
• Single wavelength primaries
• makes a particular monitor RGB standard
• Good for devices (e.g., phosphors for monitor), but not
for perception
RGB color matching functions
R
(G=0,B=0)
1,0,0 G
(R=0,B=0)
0,0,1
Some drawbacks B
(R=0,G=0)
• Strongly correlated channels
• Non-perceptual
Image from: http://en.wikipedia.org/wiki/File:RGB_color_solid_cube.png Slide credit: D. Hoiem
Color spaces: CIE XYZ
• Standardized by CIE (Commission Internationale de
l Eclairage, the standards organization for color science)
• Based on three imaginary primaries X, Y, and Z
– imaginary = only realizable by spectra that are negative at
some wavelengths
– separates out luminance: X, Z have zero luminance, so Y tells you
the luminance by itself
CIE XYZ Color matching functions
H
(S=1,V=1)
S
(H=1,V=1)
V
(H=1,S=0)
Cr
Cb
Cb (Y=0.5,Cr=0.5)
Y=1
Cr
(Y=0.5,Cb=05)
Cr
Cb
Cb (Y=0.5,Cr=0.5)
Y=1
Cr
(Y=0.5,Cb=05)
L
(a=0,b=0)
a
(L=65,b=0)
b
(L=65,a=0)
L
(a=0,b=0)
a
(L=65,b=0)
b
(L=65,a=0)
Original image
Slide credit: D. Hoiem
Back to grayscale intensity
0.92 0.93 0.94 0.97 0.62 0.37 0.85 0.97 0.93 0.92 0.99
0.95 0.89 0.82 0.89 0.56 0.31 0.75 0.92 0.81 0.95 0.91
0.89 0.72 0.51 0.55 0.51 0.42 0.57 0.41 0.49 0.91 0.92
0.96 0.95 0.88 0.94 0.56 0.46 0.91 0.87 0.90 0.97 0.95
0.71 0.81 0.81 0.87 0.57 0.37 0.80 0.88 0.89 0.79 0.85
0.49 0.62 0.60 0.58 0.50 0.60 0.58 0.50 0.61 0.45 0.33
0.86 0.84 0.74 0.58 0.51 0.39 0.73 0.92 0.91 0.49 0.74
0.96 0.67 0.54 0.85 0.48 0.37 0.88 0.90 0.94 0.82 0.93
0.69 0.49 0.56 0.66 0.43 0.42 0.77 0.73 0.71 0.90 0.99
0.79 0.73 0.90 0.67 0.33 0.61 0.69 0.79 0.73 0.93 0.97
0.91 0.94 0.89 0.49 0.41 0.78 0.78 0.77 0.89 0.99 0.93