Professional Documents
Culture Documents
Video 1.1 Jianbo Shi
Video 1.1 Jianbo Shi
1
Jianbo Shi
Property of University of Pennsylvania, Jianbo Shi
1
Kodak moments
Side view of
photographers
posing together for a
photograph on the
roof of Marceau's
Studio, while Joseph
Byron holds one
side of the camera
with his right hand
and Ben Falk holds
the other side with
his left hand.
9
Property of University of Pennsylvania, Jianbo Shi
9
Stereo Vision
What is a camera?
Photon collecting machine
• Pinhole model:
– Captures pencil of rays – all rays through a single point
– The point is called Center of Projection (COP)
– The image is formed on the Image Plane
– Effective focal length f is distance from COP to Image Plane
j
121 121 118 111 ... 21
134 136 137 132 ... 23 I(i,j) is the sensor value at
i 133 131 136 136 ... 25 location y = i, x = j
136 145 148 151 ... 34
137 140 147 149 ... 54 I(2,1) = 134
... ... ... ... ... ... I(3,4) = 136
231 233 243 244 ... 179
What is a camera?
Dimension Reduction Machine
3D world 2D image
Point of observation
Pixel
CCD sensor
3D object
3D point (X,Y, Z )
(−uccd, −vccd )
X Y
(X,Y, Z ) → (uccd,vccd ) = (fm ,fm )
Z Z
2D projection onto CCD plane
(−uimg, −vimg )
(uccd,vccd )
(uimg,vimg )
(−uccd, −vccd ) fm
X Y
(X,Y, Z ) → (uccd,vccd ) = (fm ,fm )
Z Z
2D projection onto CCD plane
(−uimg, −vimg )
(uccd,vccd )
(uimg,vimg )
fm
(uimg ,vimg )
(uimg,vimg )
fm
wimg X himg Y
(X,Y, Z ) → (uimg ,vimg ) = (fm ,fm )
wccd Z hccd Z
960 pix
1280
324 m pix
fm ?
1500 m
960 pix
21.8 mm
1280
324 m pix
ccd size
fm ?
1500 m
960 pix
21.8 mm
1280
324 m pix
ccd size
Y himg Y
fm ? yimg = f = fm
1500 m Z hccd Z
960 pix
21.8 mm
1280
324 m pix
ccd size
Y himg Y
fm ? yimg = f = fm
1500 m Z hccd Z
1280 324
960 = fm → fm = 0.0757m
0.0218 1500
Property of University of Pennsylvania, Jianbo Shi
37
Exercise
What f to make the height of Eifel tower appear 960 pixel distance?
960 pix
21.8 mm
1280
324 m pix
ccd size
fm = 50 mm
Z?
960 pix
21.8 mm
1280
324 m pix
ccd size
Y himg Y
fm = 50 mm
yimg = f = fm
Z? Z hccd Z
960 pix
21.8 mm
1280
324 m pix
ccd size
Y himg Y
fm = 50 mm
yimg = f = fm
Z? Z hccd Z
1280 324
960 = 0.05 → Z = 990.826m
0.0218 Z 40
Property of University of Pennsylvania, Jianbo Shi
Exercise
What Zp to make the height of Eifel tower appear twice of the person?
he
hp
324 m
1.7 m
fm = 50 mm
Z p?
1500
he
hp
324 m
s.t.
1.7 m Ye Yp
he = f hp = f hp =
he
fm = 50 mm Ze Zp 2
Yp Ye
Z p?
f =f →
1500 Zp 2Ze
324 m
0.9 m
670 pix
fm = 50 mm
Z1 ?
Z2 ?
Y himg Y1 himg Y1 1280 0.9
250 y1 = f = fm → Z1 = fm = 0.05 = 8.03m
pix Z hccd Z1 hccd y1 0.0218 250
Circa 1984
324 m
0.9 m
670 pix
fm = 50 mm
Z1
Z2
Y h Y h Y 1280 0.9
y1 = f = fm img 1 → Z1 = fm img 1 = 0.05 = 8.03m
250 Z hccd Z1 hccd y1 0.0218 250
pix
Y2 himg Y2 himg Y2 1280 324
Circa 1984 y2 = f = fm → Z2 = fm = 0.05 = 1079m
Z2 hccd Z2 hccd y2 0.0218 670
670 pix
200m
400m
600m
250 800m
pix 1000m
Circa 1984
800 m
hp Hp
f100 = 100 mm
Z 100 ?
Z 50 =157.41m
hp Hp
Y Y
h50 = f50 h100 = f100
f100 = 100 mm Z50 Z100
hp Hp
Y Y
h50 = f50 h100 = f100
f100 = 100 mm Z50 Z100