Professional Documents
Culture Documents
3 DSensing
3 DSensing
3 DSensing
• Perspective Geometry
• Camera Model
• Stereo Triangulation
• stereo
• light striping used in practice
• motion
Perspective Imaging Model: 1D
real image
point E xi This is the axis of the
real image plane.
f
camera lens O is the center of projection.
O
image of point
D B in front image This is the axis of the front
zc
xf image plane, which we use.
xi = xc
xc B f zc
3D object
point
Perspective in 2D Yc
(Simplified)
camera
P´=(xi,yi,f) Xc
3D object point
yi
P=(xc,yc,zc) ray f
F
=(xw,yw,zw)
xi
yc optical
axis
zw=zc
xi xc
= xi = (f/zc)xc
Zc xc f zc
yi = (f/zc)yc
Here camera coordinates yi = yc
equal world coordinates. f zc
3D from Stereo
3D point
X P=(x,z)
z x-b y-axis is
z x z y = y
= = = perpendicular
f xl f xr f yl yr to the page.
Resultant Depth Calculation
° °
3 Main Matching Methods
1. Cross correlation using small windows.
dense
sparse
y1 z1 z2
y2 epipolar
plane
P1
P2 x
C1 b C2
The match for P1 (or P2) in the other image,
must lie on the same epipolar line.
Epipolar Geometry:
General Case
P
y1
y2 P2
P1 e2 x2
e1 x1
C1
C2
Constraints 1. Epipolar Constraint:
Matching points lie on
corresponding epipolar
lines.
P 2. Ordering Constraint:
Usually in the same
Q
order across the lines.
e2
e1
C1
C2
Structured Light
light stripe
3D data can also be derived using
• a single camera
light camera
source
Structured Light
3D Computation
3D data can also be derived using
3D point
• a single camera (x, y, z)
projector
rotation
table
3D
object
Camera Model: Recall there are 5
Different Frames of Reference
yc
xc
• Object yf zw
C
xf
• World
image a
• Camera
• Real Image W
zc yw
zp pyramid
• Pixel Image yp A object
xp
xw
The Camera Model
How do we get an image point IP from a world point P?
Px
s IPr c11 c12 c13 c14
c21 c22 c23 c24 Py
s IPc =
Pz
s c31 c32 c33 1
1
image camera matrix C world
point point
What’s in C?
The camera model handles the rigid body transformation
from world coordinates to camera coordinates plus the
perspective transformation to image coordinates.
CPx
s FPx 1 0 0 0 CPy
s FPy = 0 1 0 0 CPz
s FPz 0 0 1 0 1
s 0 0 1/f 0
3D point in
image perspective camera
point transformation coordinates
Camera Calibration
• focal length f
• translation parameters
t = [tx ty tz]
• rotation matrix
y1
y2
e2 P2=(r2,c2) x2
P1=(r1,c1)
e1 x1
B
C
For a correspondence (r1,c1) in
image 1 to (r2,c2) in image 2:
solve for
shortest
V P
Q1
u2