Title: Stanford CS223B Computer Vision, Winter 200809 Lecture 2 Image Formation
1Stanford CS223B Computer Vision, Winter
2008/09Lecture 2 Image Formation
- Professor Sebastian Thrun
- CAs Ethan Dreyfuss, Young Min Kim, Alex Teichman
2Topics
- Cameras and Projections
- Pinhole Camera, vanishing points
- Orthographic Projection
- Perspective Camera Model
- Weak-Perspective Camera Model
- The Thin Lens
- Aberrations
3Pinhole Camera
-- Brunelleschi, XVth Century
many slides in this lecture from Marc Pollefeys
comp256, Lect 2
4Perspective Projection
A similar triangles approach to vision.
Marc Pollefeys
5Implications For Perception
Same size things get smaller, we hardly notice
Parallel lines meet at a point
A Cartoon Epistemology http//cns-alumni.bu.edu
/slehar/cartoonepist/cartoonepist.html
6Perspective Projection
O
X
-x
f
f
Z
7Consequences Parallel lines meet
- There exist vanishing points
Marc Pollefeys
8The Effect of Perspective
9Vanishing points
VPL
H
VPR
VP2
VP1
Different directions correspond to different
vanishing points
VP3
Marc Pollefeys
10Question
- How many vanishing points may there be in an
image?
11Perspective Projection
O
X
-x
f
Z
12Weak Perspective Projection
Z
O
-x
Z
f
Z
13Generalization of Orthographic Projection
When the camera is at a (roughly constant)
distance from the scene, take m1.
Marc Pollefeys
14Pictorial Comparison
Weak perspective
Perspective
?
Marc Pollefeys
15Summary Perspective Laws
- Perspective
- Weak perspective
- Orthographic
16So why not always use very tiny pinholes?
- Might require long exposure, may lead to motion
blur - Diffraction
17Limits for pinhole cameras
18Topics
- Cameras and Projections
- Pinhole Camera, vanishing points
- Orthographic Projection
- Perspective Camera Model
- Weak-Perspective Camera Model
- The Thin Lens
- Aberrations
19Human Eyes Use Lenses
(Theodore D. Ruche and Harry C. Patton,
Physiology and Biophysics, 19th ed. Saunders,
Philadelphia,1965)
20Snells Law
Snells law n1 sin a1 n2 sin a2
21Thin Lens Definition
Spherical lense surface Parallel rays are
refracted to single point
22Thin Lens Projection
optical axis
Image plane
z
f
Spherical lense surface Parallel rays are
refracted to single point
23Thin Lens Projection
optical axis
Image plane
z
f
f
Spherical lense surface Parallel rays are
refracted to single point
24Thin Lens Properties
- Any ray entering a thin lens parallel to the
optical axis must go through the focus on other
side - Any ray entering through the focus on one side
will be parallel to the optical axis on the other
side
25Thin Lens Model
Q
P
O
Fr
Fl
p
R
Z
f
f
z
26Thin Lens Model
Q
P
O
Fr
Fl
p
R
Z
f
f
z
27A Transformation
28The Thin Lens Law
Q
P
O
Fr
Fl
p
R
Z
f
f
z
29The Thin Lens Law
30Thin Lens Depth of Field
P
optical axis
Image plane
p
z
f
f
Spherical lense surface Parallel rays are
refracted to single point
31Depth of Field
32Depth of Field
Source wikipedia.org
33Depth of Field
34To Ways to Change the Depth of Field
- Change z (distance of image plane to lens)
- Deform lens
35Thin Lens Depth of Field
P
optical axis
Image plane
p
z
f
f
Spherical lense surface Parallel rays are
refracted to single point
36Human Eye
(Theodore D. Ruche and Harry C. Patton,
Physiology and Biophysics, 19th ed. Saunders,
Philadelphia,1965)
37Focusing Through Lens Deformation
(Theodore D. Ruche and Harry C. Patton,
Physiology and Biophysics, 19th ed. Saunders,
Philadelphia,1965)
38Thin Lens Aperture
P
optical axis
Image plane
p
z
f
f
Spherical lense surface Parallel rays are
refracted to single point
39Aperture
40Large Aperture
- Reduces necessary exposure time
- Decreases depth of field (sometimes desired
most pronounced with telephoto lenses (large
focal length))
41Our Aperture Iris
Source www.cl.cam.ac.uk
42Topics
- Cameras and Projections
- Pinhole Camera, vanishing points
- Orthographic Projection
- Perspective Camera Model
- Weak-Perspective Camera Model
- The Thin Lens
- Aberrations
43Limits of the Thin Lens ModelAberrations
3 assumptions
- all rays from a point are focused onto 1 image
point - Remember thin lens small angle assumption
2. all image points in a single plane
3. magnification is constant
Deviations from this ideal are aberrations
44Aberrations
2 types
geometrical geometry of the lense, small for
paraxial rays
chromatic refractive index function of
wavelength
Marc Pollefeys
45Geometrical Aberrations
- spherical aberration
- astigmatism
- distortion
- coma
aberrations are reduced by combining lenses
46Astigmatism
- Different focal length for inclined rays
Marc Pollefeys
47Astigmatism
- Different focal length for inclined rays
Marc Pollefeys
48Spherical Aberration
rays parallel to the axis do not converge outer
portions of the lens yield smaller focal lenghts
49Distortion
- magnification/focal length different
- for different angles of inclination
pincushion (tele-photo)
barrel (wide-angle)
Can be corrected! (if parameters are know)
Marc Pollefeys
50Coma
- point off the axis depicted as comet shaped blob
Marc Pollefeys
51Chromatic Aberration
rays of different wavelengths focused in
different planes cannot be removed
completely
Marc Pollefeys
52Vignetting
Effect Darkens pixels near the image boundary
53Vignetting
Effect Darkens pixels near the image boundary
54CCD vs. CMOS
- Mature technology
- Specific technology
- High production cost
- High power consumption
- Higher fill rate
- Blooming
- Sequential readout
- Recent technology
- Standard IC technology
- Cheap
- Low power
- Less sensitive
- Per pixel amplification
- Random pixel access
- Smart pixels
- On chip integration with other components
Marc Pollefeys
55Summary
- Cameras and Projections
- Pinhole Camera, vanishing points
- Orthographic Projection
- Perspective Camera Model
- Weak-Perspective Camera Model
- The Thin Lens
- Aberrations