Professional Documents
Culture Documents
Administrivia
Were now in 405 Soda
New office hours: Thurs. 5-6pm, 413
Soda.
Ill decide on waitlist decisions
tomorrow.
Any Matlab issues yet?
Roster
Physical parameters of
image formation
Geometric
Type of projection
Camera pose
Optical
Sensors lens type
focal length, field of view, aperture
Photometric
Type, direction, intensity of light reaching
sensor
Surfaces reflectance properties
Sensor
sampling, etc.
Physical parameters of
image formation
Geometric
Type of projection
Camera pose
Optical
Sensors lens type
focal length, field of view, aperture
Photometric
Type, direction, intensity of light reaching
sensor
Surfaces reflectance properties
Sensor
sampling, etc.
Raphael
Durer, 1525
K. Grauman
Perspective projection
equations
3d world mapped to 2d projection in image
plane
Image
plane
Focal
length
Camera
frame
Scene point
Forsyth and Ponce
Image
coordinates
Optical
axis
Scene /
world points
Homogeneous coordinates
Is this a linear transformation?
nodivision by z is nonlinear
homogeneous image
coordinates
homogeneous scene
coordinates
Perspective Projection
Matrix
Projection is a matrix multiplication using
homogeneous coordinates:
0
0
1 0
0 1
0
0
0 0 1 / f ' 0
x
y x
x
y
y
(f' , f' )
z
z
z
z / f '
divide by the third
1
coordinate to convert
back to nonhomogeneous
coordinates
Camera
frame
K. Grauman
Camera
frame
2D
point
(3x1)
Extrinsic:
Camera frame World frame
Intrinsic:
Image coordinates relative to
camera Pixel coordinates
Camera to
World to
Perspective
pixel coord.
projection matrix camera coord.
trans. matrix
trans. matrix
(3x4)
(3x3)
(4x4)
3D
point
(4x1)
K. Grauman
Forsyth&Ponce
Perspective projection
x
u f
z
y
v f
z
W. Freeman
Intrinsic parameters
x
u
z
y
v
z
W. Freeman
Intrinsic parameters
x
u
z
y
v
z
W. Freeman
Intrinsic parameters
x
u u0
z
y
v v0
z
W. Freeman
Intrinsic parameters
v v
v sin( ) v
u u cos( )v u cot( )v
May be skew between
camera pixel axes
x
y
u cot( ) u0
z
z
y
v
v0
sin( ) z
u
u
W. Freeman
x
y
cot( ) u0
z
z
y
v
v0
sin( ) z
u
u
v
1
or:
In pixels
cot( ) u0
0
v0
sin( )
0
1
0
0 x
y
0
0 z
1
C
In camera-based coords
W. Freeman
Extrinsic parameters:
translation and rotation of
camera frame
C
C W C
p W R p W t
C
p
W R
0 0 0
|
C
Wt
Non-homogeneous
coordinates
W
p
Homogeneous
coordinates
W. Freeman
C
p K p
pixels
Camera
coordinates
Forsyth&Ponce
p M
World coordinate
|
C
Wt
W R
0 0 0
p K
Intrinsic
0001
C
W
C
W
Extrinsic
W. Freeman
pM
u . m
v . m
1 . m
T
1
T
2
T
3
world coordinates
px
W
py
W
pz
1
. .
. .
. .
m1 P
u
m3 P
m2 P
v
m3 P
Calibration target
p://www.kinetic.bc.ca/CompVision/opti-CAL.html
Camera calibration
From before, we had these equations
relating image positions,
u,v, to points at 3-d positions P (in
homogeneous coordinates):
m P
u 1
m3 P
m2 P
v
m3 P
(m1 ui m3 ) Pi 0
(m2 vi m3 ) Pi 0
W. Freeman
Camera calibration
( m1 ui m3 ) Pi 0
( m2 vi m3 ) Pi 0
P1T 0T u1 P1T
T
T
T
0 P1 v1 P1
P T 0T u P T
n n
n
0T P T v P T
n
n n
m1
m2
m
3
0
0
0
0
W. Freeman
P1T 0T u1 P1T
In vector form:
T
T
T
0 P1 v1 P1
P T 0T u P T
n n
n
0T P T v P T
n
n n
m1
m2
m
3
0
0
0
0
Camera
calibration
P P
Pnz 1 0 0 0 0 un Pnx u n Pny
ny
nx
0 0 0 0 Pnx Pny Pnz 1 vn Pnx vn Pny
u1 P1z
v1 P1z
u1
v1
u n Pnz
vn Pnz
un
vn
m11
m12
m
13
m14
m21 0
0
m22
m 0
23
m24 0
m31
m32
m33
m34
W. Freeman
Camera
calibration
P P
Pnz 1 0 0 0 0 u n Pnx un Pny
ny
nx
0 0 0 0 Pnx Pny Pnz 1 vn Pnx vn Pny
u1 P1z
v1 P1z
u1
v1
un Pnz
vn Pnz
un
vn
m11
m
12
m
13
m14
m21
m
22
m
23
m24
m31
m
32
m33
m
34
m=0
Qm
Camera
calibration
W. Freeman
Perspective effects
Perspective effects
Perspective effects
Parallel lines in the scene intersect in the
image
Converge in image on horizon line
Image
plane
(virtual)
Scene
pinhole
Projection properties
Many-to-one: any points along same ray
map to same point in image
Points ?
points
Lines ?
lines (collinearity preserved)
Degenerate cases:
Line through focal point projects to a point.
Plane through focal point projects to line
Plane perpendicular to image plane projects to part of
Weak perspective
Approximation: treat magnification as
constant
Assumes scene depth << average
distance to camera
Image
plane
World
points:
Orthographic projection
Given camera at constant distance from
scene
World points projected along rays parallel
to optical access
2D
3D
S. Seitz
Basic approach
Take a photo of a parabolic mirror with an orthographic lens
(Nayar)
Or buy one a lens from a variety of omnicam manufacturers
See
http://www.cis.upenn.edu/~kostas/omni.html
S. Seitz
Tilt-shift
http://www.northlight-images.co.uk/article_pages/tilt_and_shift_ts-e.html
S. Seitz
tilt, shift
http://en.wikipedia.org/wiki/Tilt-shift_photography
Tilt-shift perspective
correction
http://en.wikipedia.org/wiki/Tilt-shift_photography
normal lens
tilt-shift lens
http://www.northlight-images.co.uk/article_pages/tilt_and_shift
Photofinish
S. Seitz
Physical parameters of
image formation
Geometric
Type of projection
Camera pose
Optical
Sensors lens type
focal length, field of view, aperture
Photometric
Type, direction, intensity of light reaching
sensor
Surfaces reflectance properties
Sensor
sampling, etc.
Smaller
K. Grauman
Adding a lens
focal point
f
A lens focuses light onto the film
Rays passing through the center are not
deviated
All parallel rays converge to one point on a
plane located at the focal length f
Slide by Steve Seitz
K. Grauman
F
focal point
optical center
(Center Of Projection)
Human eye
Rough analogy with human visual
system:
Pupil/Iris control
amount of light
passing through
lens
Retina - contains
sensor cells, where
image is formed
Fovea highest
concentration of
cones
Fig from Shapiro and
Stockman
Thin lens
Thin lens
Left focus
Lens
diameter d
Right focus
Focal length f
Rays entering
parallel on one side
go through focus on
other, and vice
versa.
In ideal case all
rays from P imaged
at P.
K. Grauman
1 1 1
f u v
circles of confusion
3d shape /
depth
estimates
Field of view
Angular
measure of
portion of
3d space
seen by
the camera
K. Grauman
As f gets larger,
image becomes more
telescopic
smaller part of the
world projects onto the
finite image plane
from R. Duraiswami
Slide by A. Efros
Vignetting
http://www.ptgui.com/examples/vigntutorial.html
http://www.tlucretius.net/Photo/eHolga.html
Vignetting
natural:
Chromatic aberration
Chromatic aberration
Physical parameters of
image formation
Geometric
Type of projection
Camera pose
Optical
Sensors lens type
focal length, field of view, aperture
Photometric
Type, direction, intensity of light reaching
sensor
Surfaces reflectance properties
Sensor
sampling, etc.
Environment map
http://www.sparse.org/3d.htm
BDRF
Diffuse / Lambertian
Foreshortening
Specular reflection
Phong
Diffuse+specular+ambient:
Physical parameters of
image formation
Geometric
Type of projection
Camera pose
Optical
Sensors lens type
focal length, field of view, aperture
Photometric
Type, direction, intensity of light reaching
sensor
Surfaces reflectance properties
Sensor
sampling, etc.
Digital cameras
Film sensor array
Often an array of charge
coupled devices
Each CCD is light
sensitive diode that
converts photons (light
energy) to electrons
CCD
array
camera
optics
frame
grabber
computer
K. Grauman
Historical
context
Pinhole model: Mozi (470-390 BCE),
Aristotle (384-322 BCE)
Principles of optics (including lenses):
Alhacen (965-1039 CE)
Camera obscura: Leonardo da Vinci
(1452-1519), Johann Zahn (1631-1707)
First photo: Joseph Nicephore Niepce
(1822)
Daguerrotypes (1839)
Photographic film (Eastman, 1889)
Cinema (Lumire Brothers, 1895)
Color Photography (Lumire Brothers,
1908)
Television (Baird, Farnsworth, Zworykin,
1920s)
First consumer camera with CCD:
Alhacens notes
Digital Sensors
Resolution
sensor: size of real world scene element a
that images to a single pixel
image: number of pixels
Influences what analysis is feasible, affects
best representation choice.
Digital images
Think of images as
matrices taken from
CCD array.
K. Grauman
Digital images
j=1
width
520
i=
1
Intensity :
[0,255]
500
height
im[176][201] has value
164
Bayer grid
Estimate missing
components from
neighboring values
(demosaicing)
Color images,
RGB color
space
K. Grauman
Physical parameters of
image formation
Geometric
Type of projection
Camera pose
Optical
Sensors lens type
focal length, field of view, aperture
Photometric
Type, direction, intensity of light reaching
sensor
Surfaces reflectance properties
Sensor
sampling, etc.
Summary
Image formation affected by geometry,
photometry, and optics.
Projection equations express how world
points mapped to 2d image.
Homogenous coordinates allow linear
system for projection equations.
Lenses make pinhole model practical
Photometry models: Lambertian, BRDF
Digital imagers, Bayer demosaicing
Parameters (focal length, aperture, lens
diameter, sensor sampling) strongly
affect image obtained.
K. Grauman
Slide Credits
Bill Freeman
Steve Seitz
Kristen Grauman
Forsyth and Ponce
Rick Szeliski
and others, as marked
Next time
`
Color
Readings:
Forsyth and Ponce, Chapter 6
Szeliski, 2.3.2