Course Number: 526 U1200
Credits: 3
Time: Tuesday 6, 7, 8 (2:10PM-5:00PM)
Classroom: New CSIE Classroom 309
Classification: Elective for junior, senior, and graduate students
Prerequisite: Computer Vision (I) or Digital Image Processing
Instructor: Chiou-Shann Fuh
Office: New Computer Science and Information Engineering 327
Phone: 23625336 ext. 327, 23630231 ext. 3232 ext. 327
Office Hours: Thursday 3PM-5PM
Objective: To learn computer and robot vision through extensive
course projects.
Textbook: R. M. Haralick and L. G. Shapiro, Computer and Robot Vision,
Vol. II, Addison Wesley, Reading, MA, 1993.
Reference: B. K. P. Horn, Robot Vision, MIT Press, Cambridge, MA, 1986.
Reference: L. G. Shapiro and G. C. Stockman, Computer Vision,
Prentice-Hall, Upper Saddle River, NJ, 2001.
Reference: R. Jain, R. Kasturi, and B. G. Schunck, Machine Vision,
McGraw-Hill, New York, 1995.
Projects: assigned weekly on first few weeks (20%) and a term project (30%)
Examinations: one midterm (20%) and one final (30%)
Content:
This is the second semester of a fast pace course which covers
robot and computer vision.
The first semester covers low-level vision and mostly no reference to three
dimensions.
This semester covers higher-level techniques:
12. Illumination
13. Perspective Projective Geometry
14. Analytic Photogrammetry
15. Motion and Surface Structure from Time Varying Image Sequences
16. Image Matching
17. The Consistent-Labeling Problem
18. Object Models and Matching
19. Knowledge-Based Vision
20. Accuracy
21. Glossary of Computer Vision Terms
Bibliography
12.1 Introduction
two key questions in understanding 3D image formation
refraction of light bouncing off a surface patch: basic reflection phenomenon
=====Figure 12.1=====
image intensity
: proportional to scene radiance
scene radiance depends on
The appearance of a surface depends greatly on the lighting conditions.
We have to understand how images are formed if we are to recover information
about the surface from one or more images.
three views of the surface of Mars taken by Viking Lander I
=====Horn, Robot Vision, Figure 10.1=====
=====Garfield 17:18=====
12.2 Radiometry
Radiometry is the measurement of the flow and transfer of radiant energy in
terms of both the power emitted from or incident upon an area and the power
radiated within a small solid angle about a given direction.
irradiance: the amount of light falling on a surface
irradiance: power per unit area of radiant energy falling on a surface
irradiance: measured in units of watts per square meter
radiance: the amount of light emitted from a surface
radiance: power per unit foreshortened area emitted into a unit solid angle
radiance: measured in units of watts per square meter per steradian
radiant intensity of a point illumination source: power per steradian
radiant intensity: measured in units of watts per steradian
radiant intensity: may be a function of polar and azimuth angles
geometry of incident and reflected elementary beams
=====Figure 12.2=====
-axis: along the normal to the surface element
at 0
polar angle: measured from the
-axis (pointing north)
azimuth angle: measured from
-axis (pointing east)
The solid angle subtended by a surface patch is defined by the cone whose
vertex is at the point of radiation and whose axis is the line segment going
from the point of radiation to the center of the surface patch.
size of solid angle: area intercepted by the cone on a unit radius sphere
centered at the point of radiation
solid angle: measured in steradians
total solid angle about a point in space:
steradians
determination of the solid angle
subtended by a small surface patch
=====Figure 12.3=====
surface irradiance (
):
infinitesimal slice on annulus on sphere of radius
, polar angle
,
azimuth
=====Horn, Robot Vision, Figure 10.8=====
slice subtends solid angle
, since
appearance of object depends greatly on attitude in space relative to viewer
not only does outline vary, but brightness pattern within silhouette changes
=====Horn, Robot Vision, Figure 10.2=====
12.2.1 Bidirectional Reflectance Function
The bidirectional reflectance distribution function
is the fraction of
incident light emitted in one direction when the surface is illuminated from
another direction.
light source and sensor positions in spherical coordinates
=====Figure 12.2=====
: polar angle between surface normal and lens center
: azimuth angle of the sensor
: emitting from
: incident to
: irradiance of the incident light at the illuminated surface
: radiance of the reflected light
: ratio of the scene radiance to the scene irradiance
differential reflectance model:
For many surfaces the dependence of
on the azimuth angles
and
is only a dependence on their difference.
An ideal Lambertian surface is one that appears equally bright from all viewing directions and reflects all incident light, absorbing none.
Lambertian surface: perfectly diffusing surface, with matte appearance
reflectivity
: unitless fraction called reflectance factor
white blotting paper:
white writing paper:
white ceilings or yellow paper:
dark brown paper:
dark velvet:
bidirectional reflectance distribution function for Lambertian surface
12.2.2 Photometry
photometry: study of radiant light energy resulting in physical sensation
brightness: attribute of sensation by which observer aware of differences of
observed radiant energy
radiometry
radiant energy, photometry
luminous energy
radiometry
power, photometry
luminous flux
lumen: unit of luminous flux
luminous intensity: luminous flux leaving point source per unit solid angle
luminous intensity: has units of lumens per steradian
candela: one lumen per steradian
illuminance: luminous flux per unit area incident upon a surface
illuminance: in units of lumens per square meter
one lux: one lumen per square meter
foot-candle: one lumen per square foot
one foot = 0.3048 meter
12.2.3 Torrance-Sparrow Model
: specular reflection from mirrorlike surface facets
: diffuse reflection from Lambertian surface facets
: reflected light from roughened surface
: dependent on the view point, whereas
is not
consider surfaces:
, let
light source and sensor positions specified by pair of angles --caption--
=====Figure 12.5=====
: unit surface normal
: unit positional vector of the light source
: unit positional vector of the sensor
Torrance-Sparrow model:
12.2.4 Lens Collection
lens collection: portion of reflected light coming through lens to film
: distance between the image plane and the lens
: distance between the object and the lens
: distance between the lens and the image of the object
: diameter of the lens
: angle between the ray from the object patch to the lens center
=====Figure 12.6=====
irradiance incident on differential area
coming from differential
area
, having radiance
, and passing through a lens having
aperture area
:
: foreshortened area of aperture stop seen by
: distance from
to the aperture
solid angle
subtended by aperture stop as seen from
:
12.2.5 Image Intensity
The image intensity gray level
associated with some small area of the
image plane can then be represented as the integral of all light collected at
the given pixel position coming from the observed surface patch, modified by
sensor gain
and bias
.
12.3 Photometric Stereo
In photometric stereo there is one camera but
light sources having known
intensities
and incident vectors
to a given
surface patch.
In photometric stereo the camera sees the surface patch
times, one time
when each light source is activated and the remaining ones are deactivated.
: surface normal vector of the surface patch having Lambertian reflectance
: reflectivity of the Lambertian surface reflectance
: observed gray levels produced
by the model of Lambertian reflectance
if camera has been photometrically calibrated,
known
let
and
if
unknown, camera must be calibrated as follows:
geometric setup with known incident angle of light source to surface normal
surfaces of known reflectivities illuminated by known intensity light source
: known intensity of light source for
th trial
: known incident direction of light source for
th trial
: known unit length surface normal vector
: known reflectivity of surface illuminated for
th trial
: observed value from the camera
let
then unknown gain
and offset
satisfy
12.4 Shape from Shading
nonplanar Lambertian surfaces of constant reflectance factor: appear shaded
this shading: secondary clue to shape of the observed surface
shape from shading: recovers shape of Lambertian surface from image shading
: unit vector of distant point light source direction
assume surface viewed by distant camera so perspective projection
approximated by orthographic projection
surface point position
: projected to image position
: surface expression
unit vector normal to the surface at
:
uniform brightness if planar surfaces since
constant
surfaces with curvature: surfaces with
not constant
brightness has some connection with
provide information about surface height
first-order Taylor expression for g:
12.4.1 Shape from Focus
possible to recover shape from the shading profile of object edges
basic idea: cameras do not have infinite depth of field
The degree to which edges may be defocused is related to how far the 3D edge
is away from the depths at which the edges are sharply in focus.
12.5 Polarization
illumination source characterized by four factors
Mathematical Meaning of Polarization
polarization of light mathematically described by using wave theory
Usefulness of Polarization in Machine Vision
At Brewster's angle, the parallel polarized light is totally transmitted and
the perpendicularly polarized light is partially transmitted and
partially reflected.
This effect can be used to remove the specular reflections from the window or
metal surfaces by looking through them at Brewster's angle.
12.5.1 Representation of Light Using the Coherency Matrix
natural light: completely unpolarized
12.5.2 Representation of Light Intensity
S-pol: component polarized perpendicularly to the incidence plane
P-pol: component polarized parallel to the incidence plane
12.6 Fresnel Equation
Fresnel law of reflectance, --caption--
=====Figure 12.11=====
12.7 Reflection of Polarized Light
ergodic light: time average of the light equivalent to its ensemble average
12.8 A New Bidirectional Reflectance Function
bright-field: rays reflected back into objective illuminate entire surface
dark-field: reflects back into objective only rays from surface irregularities
=====Elliott, Integrated Circuit Fabrication Technology, Fig. 5.4=====
12.9 Image Intensity
image intensity can be written in terms of:
12.10 Related Work
reflectance models: have been used in computer graphics and image analysis
=====joke=====
Project due Mar. 12:
Use correlation to do image matching
find
to minimize