Lec02 Camera
Lec02 Camera
Overview
• The pinhole projection model
• Qualitative properties
• Perspective projection matrix
• Cameras with lenses
• Depth of focus
• Field of view
• Lens aberrations
• Digital cameras
• Types of sensors
• Color
Let’s design a camera
Pinhole model:
• Captures pencil of rays – all rays through a single point
• The point is called Center of Projection (focal point)
• The image is formed on the Image Plane
3D world 2D image
Point of observation
Source: F. Durand
Perspective distortion
• Problem for architectural photography:
converging verticals
Tilting the camera Keeping the camera level, Shifting the lens
upwards results in with an ordinary lens, upwards results in a
converging verticals captures only the bottom picture of the entire
portion of the building subject
Source: F. Durand
Perspective distortion
• However, converging verticals work quite well
for horror movies…
Perspective distortion
• What does a sphere project to?
Slide by F. Durand
Perspective distortion: People
Modeling projection
y
f
z
Projection equations
• Compute intersection with image plane of ray from P = (x,y,z) to O
• Derived using similar triangles
x y
( x, y , z ) ( f , f , f )
z z
• We get the projection by throwing out the last coordinate:
x y
( x, y , z ) ( f , f )
z z Source: J. Ponce, S. Seitz
Homogeneous coordinates
x y
( x, y , z ) ( f , f )
z z
Is this a linear transformation?
• no—division by z is nonlinear
x
1 0 0 0 x
0 1 0 y x y
0 y ( f , f )
z z z
0 0 1 / f 0 z / f divide by the third
1 coordinate
Perspective Projection Matrix
Projection is a matrix multiplication using homogeneous
coordinates:
x
1 0 0 0 x
0 1 0 y x y
0 y ( f , f )
z z z
0 0 1 / f 0 z / f divide by the third
1 coordinate
Camera to World to 3D
2D Perspective
pixel coord.
point = trans. matrix
projection matrix camera coord.
trans. matrix
point
(3x1) (3x4) (4x1)
(3x3) (4x4)
Orthographic Projection
Special case of perspective projection
• Distance from center of projection to image plane is infinite
Image World
Source: A. Efros
Abelardo Morell
http://www.abelardomorell.net/camera_obscura1.html
Home-made pinhole camera
Why so
blurry?
focal point
“circle of
confusion”
D’ D
f
D’ D
f
D’ D
f
y
y’
http://www.cambridgeincolour.com/tutorials/depth-of-field.htm
Slide by A. Efros
How can we control the depth of field?
Source: F. Durand
Manipulating the plane of focus
In this image, the plane of focus is almost at a
right angle to the image plane
Source: F. Durand
Tilt-shift lenses
• Tilting the lens with respect to the image plane allows
to choose an arbitrary plane of focus
shift
tilt
shift
tilt
Slide by A. Efros
Field of View
Slide by A. Efros
Field of View
f
f
Source: F. Durand
Approximating an affine camera
http://en.wikipedia.org/wiki/Dolly_zoom
The dolly zoom
• Continuously adjusting the focal length while
the camera moves away from (or towards)
the subject
• “The Vertigo shot”
CMOS: uses several transistors at each pixel to amplify and move the charge using
more traditional wires. The CMOS signal is digital, so it needs no ADC.
http://electronics.howstuffworks.com/digital-camera.htm
http://www.dalsa.com/shared/content/pdfs/CCD_vs_CMOS_Litwiller_2005.pdf
Color sensing in camera: Color filter array
Bayer grid
Estimate missing
components from
neighboring values
(demosaicing)
Slide by F. Durand
The cause of color moire
detector
Slide by F. Durand
Color sensing in camera: Prism
• Requires three chips and precise alignment
• More expensive
CCD(R)
CCD(G)
CCD(B)
Color sensing in camera: Foveon X3
• CMOS sensor
• Takes advantage of the fact that red, blue and green
light penetrate silicon to different depths
http://www.foveon.com/article.php?a=67 http://en.wikipedia.org/wiki/Foveon_X3_sensor
Source: M. Pollefeys
Digital camera artifacts
Noise
– low light is where you most notice noise
– light sensitivity (ISO) / noise tradeoff
– stuck pixels
In-camera processing
– oversharpening can produce halos
Compression
– JPEG artifacts, blocking
Blooming
– charge overflowing into neighboring pixels
Color artifacts
– purple fringing from microlenses,
– white balance
Lantern
projector
http://en.wikipedia.org/wiki/Sergei_Mikhailovich_Prokudin-Gorskii
http://www.loc.gov/exhibits/empire/
First digitally scanned photograph
• 1957, 176x176 pixels
http://listverse.com/history/top-10-incredible-early-firsts-in-photography/