Lec06 Image Formation
Lec06 Image Formation
Digital cameras
• Sensors
• Colors
• Artifacts
Computational photography
• Novel sensors and cameras
Object Film
A
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by Steve Seitz 9
Accidental pinhole cameras
A. Torralba and W. Freeman, Accidental Pinhole and Pinspeck Cameras, CVPR 2012
http://www.pauldebevec.com/Pinhole
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 11
Dimensionality reduction: 3D to 2D
3D world 2D image
Point of observation
• What is preserved?
• Straight lines, incidence
• What is not preserved?
• Angles, lengths
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by A. Efros 12
Modeling projection
y
f
z
To compute the projection P’ of a scene point P, form a visual ray connection P to the camera
center O and find where it intersects the image plane
• All scene points that lie on this visual ray have the same projection on the image
• Are there points for which this projection is not defined?
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by Steve Seitz 13
Modeling projection
y
f
z
Projection equations
• Derive using similar triangles (x, y, z) ! ( f x/z, f y/z)
<latexit sha1_base64="unIWoc8K4384RASlWb83SD265UQ=">AAACC3icbVDLTsJAFJ3iC/FVdelmAjGBhEeLJrokunGJiTwSaMh0mMKE6SMzU6U07N34K25caIxbf8Cdf+MAXSh4kpucnHNv7r3HDhgV0jC+tdTa+sbmVno7s7O7t3+gHx41hR9yTBrYZz5v20gQRj3SkFQy0g44Qa7NSMseXc/81j3hgvrenYwCYrlo4FGHYiSV1NOz+XExKk4KsMvpYCgR5/4DzJeccWVShCUnqkwKPT1nlI054CoxE5IDCeo9/avb93HoEk9ihoTomEYgrRhxSTEj00w3FCRAeIQGpKOoh1wirHj+yxSeKqUPHZ+r8iScq78nYuQKEbm26nSRHIplbyb+53VC6VxaMfWCUBIPLxY5IYPSh7NgYJ9ygiWLFEGYU3UrxEPEEZYqvowKwVx+eZU0q2XzrFy9Pc/VrpI40uAEZEEemOAC1MANqIMGwOARPINX8KY9aS/au/axaE1pycwx+APt8wfV4JkC</latexit>
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by Steve Seitz 14
3D - 2D Projections
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by Steve Seitz 20
Vanishing points
Each direction in space has its own
vanishing point
• All lines going in the that direction
converge at that point
• Exception: directions that are parallel
to the image plane
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by Steve Seitz 21
Vanishing points
Each direction in space has its own
vanishing point
• All lines going in the that direction
converge at that point
• Exception: directions that are parallel
to the image plane
• What happens to the ground plane?
camera
center
ground plane
Illusion Credit: RN Shepard, Mind Sights: Original Visual Illusions, Ambiguities, and other Anomalies
From ottobwiersma.nl
Image World
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by Steve Seitz 31
Orthographic projection
Special case of perspective projection
• Distance of the object from the image plane is infinite
• Also called the “parallel projection”
image
aperture
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by Steve Seitz 34
Shrinking the aperture
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by Steve Seitz 35
Adding a lens
Object Lens Film
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by F. Durand 36
Adding a lens
Object Lens Film
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by F. Durand 37
Adding a lens
Object Lens Film
circle of
confusion
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by F. Durand 38
Thin lens formula
What is the relation between the focal length (f ), the distance of the object from the optical center
(D ) and the distance at which the object will be in focus (D’ )?
D′ D
f
D′ D
f
y
y′
D′ D
f
y
y′
D′ D
f
y
y′
http://www.cambridgeincolour.com/tutorials/depth-of-field.htm
DOF is the distance between the nearest and farthest objects in a scene that appear
acceptably sharp in an image
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by A.Efros 43
Varying the aperture
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by A.Efros 44
Controlling depth of field
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 image credit Wikipedia 45
Field of view
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by A.Efros 46
Field of view
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by A.Efros 47
Field of view
Field of view (FOV) depends on the focal length and the size of the camera retina
✓ ◆
1 d
= tan
2f
tan( ) ⇥ 2f = d
⇠ ( ) ⇥ 2f = d Small FOV, large f — Camera far from the car
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by A.Efros, F.Durand 49
Same effect for faces
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by F.Durand 50
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Source: Hartley & Zisserman 51
The dolly zoom
Continuously adjusting the camera focal length while the camera moves away from (or towards)
the subject
http://en.wikipedia.org/wiki/Dolly_zoom
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 52
The dolly zoom
Continuously adjusting the camera focal length while the camera moves away from (or towards)
the subject
Also called as “Vertigo shot” or the “Hitchcock shot”
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by S.Seitz 54
Lens flaws: Spherical aberration
Spherical lenses don’t focus light perfectly (thin lens model)
• Rays farther from the optical axis are focussed closer
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by S.Seitz 56
Lens flaws: Radial distortion
Caused by asymmetry of lenses
Deviations are most noticeable near the periphery
Example of a prime lens - Carl Zeiss Tessar Nikkor 28-200 mm zoom lens,
extended to 200 mm at left and
collapsed to 28 mm focal
length at right.
http://en.wikipedia.org/wiki/Zoom_lens
Digital cameras
• Sensors
• Colors
• Artifacts
Novel cameras
• Computational photography
align
http://electronics.howstuffworks.com/digital-camera.htm
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by S.Seitz 64
Color sensing in the camera
Color filter array
Bayer grid
Estimate missing
components from
neighboring values
(demosiacing)
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by S.Seitz 65
“Demosaicing” — estimate missing values
left right
left right
left right
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 Slide by F.Durand 74
The cause of color moiré
detector
Source: https://en.wikipedia.org/wiki/Bayer_filter
COMPSCI 670 Grant Van Horn — UMass Amherst, Spring 24 76
77