SLIDE 1 1
COMP 546
Lecture 12
Illumination and Reflectance
SLIDE 2 Illumination and Reflectance
- Shading
- Brightness versus Lightness
- Color constancy
SLIDE 3 N(x) L
ο² ο²
Shading on a sunny day
π π Lambertβs (cosine) Law:
π½ π = π(π) β π
SLIDE 4 Unit Surface Normal
1 ππ ππ
2
+ ππ ππ
2
+ 1 ππ ππ , ππ ππ , β1
π β‘
π
4
SLIDE 5 Shading on a sunny day
5
SLIDE 6 Cast and Attached Shadows
cast : π(π) β π > 0 but light is
attached : π(π) β π < 0 π
SLIDE 7 Shading models
- sunny day (last lecture)
- sunny day + low relief
- cloudy day
SLIDE 8 Examples of low relief surfaces
(un)crumpled paper
SLIDE 9 Low relief surface
1 ππ ππ
2
+ ππ ππ
2
+ 1 ππ ππ , ππ ππ , β1
π β‘
9
ππ ππ
β 0
β0 β0
ππ ππ
β 0
Thus,
Suppose and are both small.
SLIDE 10 Linear shading model for low relief
π½ π, π β
ππ ππ , ππ ππ , β1 β ππ, ππ, ππ
10
- shadows can still occur
- ne equation per point but two unknowns
SLIDE 11
Example: curtains
π π, π = π0 + π sin( ππ π )
π π π π
SLIDE 12
Example: curtains
π π, π = π0 + π sin( ππ π ) ππ ππ = π ππ cos ππ π ππ ππ = ,
π π
SLIDE 13 Example: curtains
π½ π, π β
ππ ππ , ππ ππ , β1 β ππ, ππ, ππ
π π, π = π0 + π sin( ππ π ) ππ ππ = π ππ cos ππ π π½ π, π = π ππ cos ππ π ππ β ππ ππ ππ = ,
SLIDE 14 Example: curtains
π π, π = π0 + π sin( ππ π ) π½ π, π = β ππ + π ππ ππcos ππ π
π = (ππ, ππ, ππ)
π π π
Q: where do the intensity maxima and minima occur?
SLIDE 15 Shading on a cloudy day
(my Ph.D. thesis)
15
SLIDE 16
ο± (x)
Shading on a Cloudy Day
Shadowing effects cannot be ignored.
SLIDE 17 Shading on a Cloudy Day
17
Shading is determined by shadowing and surface normal.
SLIDE 18
Shading on a Sunny Day
Shading determined by surface normal only.
SLIDE 19 Shape from shading
19
Q: What is the task ? What problem is being solved? A: Estimate surface slant, tilt, curvature. How to account for (or estimate) the lighting ?
SLIDE 20 Illumination and Reflectance
[Shading and shadowing models assume that intensity variations
- n a surface are entirely due to illumination. But surfaces have
reflectance variations too. ]
- Brightness versus Lightness
- Color constancy
SLIDE 21 Which paper is lighter ?
21
Paper on the left is in shadow. It has lower physical intensity and it appears
- darker. But do both papers seem to be of same (white) material?
SLIDE 22 Which paper is lighter ?
22
Image is processed so that the right paper is given same image intensities as left
- paper. Now, right paper appears to be made of different material. Why?
SLIDE 23 π½ π¦, π§ = ππππ£πππππ’πππ π¦, π§ β π ππππππ’ππππ (π¦, π§)
Abstract version βRealβ example
SLIDE 24
π½ π¦, π§ = ππππ£πππππ’πππ π¦, π§ β π ππππππ’ππππ (π¦, π§) shading & shadows material luminance
Physical quantities
SLIDE 25 low reflectance, high illumination low reflectance, low illumination high reflectance, low illumination
π½ π¦, π§ = ππππ£πππππ’πππ π¦, π§ β π ππππππ’ππππ (π¦, π§)
SLIDE 26 π½ π¦, π§ = ππππ£πππππ’πππ π¦, π§ β π ππππππ’ππππ (π¦, π§) βlightnessβ βbrightnessβ
Perceptual quantities
(no standard term for perceived illumination)
SLIDE 27 All four indicated βsquaresβ have same intensity. What is the key difference between the two configurations ?
Adelsonβs corrugated plaid illusion.
SLIDE 28
βLightnessβ perception
Q: What is the task ? What problem is being solved? A:
SLIDE 29
βLightnessβ perception
Q: What is the task ? What problem is being solved? A: Estimate the surface reflectance, by discounting the illumination. π½ π¦, π§ = ππππ£πππππ’πππ π¦, π§ β π ππππππ’ππππ (π¦, π§)
?
SLIDE 30
βLightnessβ perception:
solution sketch
Q: What is the task ? What problem is being solved? A: Estimate the surface reflectance, by discounting illumination effects. Compare points that have same illumination. π½ π¦1, π§1 = ππππ£πππππ’πππ β π ππππππ’ππππ (π¦1, π§1) π½ π¦2, π§2 = ππππ£πππππ’πππ β π ππππππ’ππππ (π¦2, π§2)
=
SLIDE 31 Illumination and Reflectance
- Shading
- Brightness versus Lightness
- Color constancy
SLIDE 32 Recall lecture 3 - color
32
Illumination Surface Reflectance (fraction) Absorption by photoreceptors (fraction)
There are three different spectra here.
SLIDE 33
LMS cone responses
π½ π¦, π§, π = ππππ£πππππ’πππ π¦, π§, π β π ππππππ’ππππ π¦, π§, π
Cone response
π½ π¦, π§, π π·πππ(π) ππ
SLIDE 34 Surface Color Perception
34
Q: What is the task? What is the problem to be solved? A:
illumination Surface Reflectance
SLIDE 35 Surface Color Perception
35
Q: What is the task? What is the problem to be solved? A: Estimate the surface reflectance, by discounting the illumination. π½ π¦, π§, π = ππππ£πππππ’πππ π¦, π§, π β π ππππππ’ππππ π¦, π§, π
illumination Surface Reflectance
SLIDE 36 π½ππ»πΆ π¦, π§ = ππππ£πππππ’πππππ»πΆ π¦, π§ β π ππππππ’ππππππ»πΆ (π¦, π§)
For simplicity, letβs ignore the continuous wavelength π and just consider ππ»πΆ (LMS).
π
Cone response
π½ π¦, π§, π π·πππ(π) ππ
SLIDE 37 βColor Constancyβ
37
Task: estimate the surface reflectance, by discounting the illumination
π½ππ»πΆ π¦, π§ = ππππ£πππππ’πππππ»πΆ π¦, π§ β π ππππππ’ππππππ»πΆ (π¦, π§)
illumination Surface Reflectance
SLIDE 38 Why we need color constancy
- object recognition
- skin evaluation (health, emotion, β¦)
- food quality
- β¦
SLIDE 39
Example 1: spatially uniform illumination
= *
π½ππ»πΆ π¦, π§ = ππππ£πππππ’πππππ»πΆ π¦, π§ β π ππππππ’ππππππ»πΆ (π¦, π§)
Given this, how to estimate this?
SLIDE 40
Solution 1: βmax-RGBβ Adaptation
= *
π½ππ»πΆ π¦, π§ = ππππ£πππππ’πππππ»πΆ π¦, π§ β π ππππππ’ππππππ»πΆ (π¦, π§)
Divide each π½ππ»πΆ channel by the max value of π½ππ»πΆ in each channel. When does this give the correct answer?
SLIDE 41 Example 2: non-uniform illumination
= *
π½ππ»πΆ π¦, π§ = ππππ£πππππ’πππππ»πΆ π¦, π§ β π ππππππ’ππππππ»πΆ π¦, π§ Solution: See Exercises.
sun + blue sky
blue sky
SLIDE 42 Illumination and Reflectance
- Shape from Shading
- Brightness versus Lightness
- Color constancy
Different solutions require different underlying
- assumptions. This is separate issue from how we can
code up a solution using neural circuits.