Shape from Shading
INEL 6088 Computer Vision
Shape from Shading INEL 6088 Computer Vision Radiometry Image - - PowerPoint PPT Presentation
Shape from Shading INEL 6088 Computer Vision Radiometry Image irradiance E: power of the light/unit area at each point p of the image plane Scene radiance L: power of the light/unit area ideally emitted at each point P of the surface in 3D
INEL 6088 Computer Vision
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
Image irradiance E: power of the light/unit area at each
Scene radiance L: power of the light/unit area ideally
Surface reflectance model: model of the way the surface
Lambertian model: assumes that each surface point
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
The irradiance at a point in the image plane E(x’,y’) is
E(x’,y’) = L(x,y,z,θ’,φ’)
To find the image irradiance:
Trace the ray back to the surface patch from which the ray was
emitted
Understand how is the light from the scene illumination is
reflected by the surface patch
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
Illustration of the basic radiometric concepts.
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
Bidirectional reflectance distribution function (BRDF): energy radiated from surface patch in some direction BRDF = -------------------------------------------------------------------------- energy arriving at the surface patch from some direction θ, φ = angles in polar coordinate system L(θe, φe)=f(θi, φi ,θe, φe) I(θi, φi) Scene radiance = BRDF × Scene irradiance
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM Radiometry
For most materials, the BRDF depends only on
Total irradiance on a surface patch = sum of
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM Radiometry
Solid angle: projection of surface patch into unit sphere; units are steradians
Note: book uses Φ instead of ψ
Projected solid angle:
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM Radiometry
Unit for measuring the distribution of light in
radiance = power (amount of energy per unit time)
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
I(θi, φi) = radiance per unit solid angle passing through
Total incident illumination on the surface patch
Radiometry
This is the sum of the radiance coming from all
The additional cosine term is added to account
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM Radiometry
Total radiance reflected by solid patch: The BRDF for a Lamberdian surface is a constant: Where I0 is the total illumination on the surface patch.
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM Radiometry
Four types
Lambertian or diffuse Specular Combined Lambertian & Specular Scanning microscope
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
source in a direction (θs,φs)
The incident angle dependence is caused by foreshortening of the surface patch relative to the direction of illumination, measured with respect to the surface normal. For uniform illumination (instead of point source): L = I0
Added so that when I is integrated over hemisphere the total illumination is I0
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
Reflected rays make the same angle than incident rays
BRDF is given by:
Like in a mirror…
The factor η controls the mixture.
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
and illumination
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
Point position is (x,y,z) in camera coordinates. Let depth be a function of image plane coordinates: z = z(x,y) A nearby point appears in the image plane at (x+δx, y+ δy) . The change in depth that correspond to the change in (x,y) position is Where p and q define the gradient of the surface at (x,y,z). The surface normal is = unit surface normal
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
corresponding to a unit change in depth is p and q, respectively.
p=p(x,y) and q=q(x,y)
Using the camera coordinate system, the surface normal is
P = (-p,-q,1) and the direction of the light source is PS=(-ps,-qs, 1)
cos θs= P•PS/|P||Ps|
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
The equations from the previous slide can be combined to obtain, given the light source distribution, the reflectance for all surface orientations p and q. These can be computed to yield the reflectance map:
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
Assume
direction of the illumination source. Then our previous result L(θe, φe) = I0 π cos θS
normal and the vector direction of the illumination source cos θS =
−q, 1
1 + p2 + q2 ·
−qS, 1
1 + p2
S + q2 S
= 1 + pSp + qSq p 1 + p2 + q2p 1 + p2
S + q2 S
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
dependence on source intensity, light gathering capability of lens, etc., and
E(x,y) = R(p,q) Meaning: image brightness at point (x,y) = reflectance map value for the surface orientation p and q of the corresponding point in the scene. Thus for a Lambertian reflector and a point source,
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
surface orientation
fixed illumination and imaging conditions known surface reflectance properties changes in surface orientation translate into image intensity changes
from image intensities.
image irradiance = E(x,y) = R(p,q) = surface reflectance map
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
variations (see textbook) to get an iterative solution:
where
between neighbors at (i+1,j), (i-1,j), (i,j+1) and (i, j-1)
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
The idea is to use several sources instead of one to solve shape from
shading problem
The relationship between image brightness and the reflectance map
is modified to include the albedo factor, ρ E(x,y)= ρ R(p,q) where 0 <ρ <1 incorporates the fact that not all incident light is radiated from the surface
Let
Surface normal Unit vector indicating the direction of the incident light. Assume 3 light sources
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM
Photometric Stereo (cont.)
Image irradiance Matrix of the direction vectors for the 3 point sources Vector of the three image irradiance measurements Image irradiance equations Solution:
INEL 6088 Computer Vision - Shading Fall 2018 - ECE Dept. UPRM