Epipolar Geometry 2
Epipolar Geometry 2
Epipolar Geometry 2
Three questions:
(i) Correspondence geometry: Given an image point x in the first
view, how does this constrain the position of the corresponding point
x in the second image?
(ii) Camera geometry (motion): Given a set of corresponding
image points {xi xi}, i=1,,n, what are the cameras P and
P for the two views? Or what is the geometric
transformation between the views?
e
Matrix form of cross product
a2b3 a3b2 0 a3 a2
a b a3b1 a1b3 a3 0 a1 b a b
a1b2 a2b1 a2 a1 0
a ( a b) 0
b ( a b) 0
Geometric transformation
P' RP t
p MP with M [ I | 0]
p' M ' P' with M ' [ R | t ]
Calibrated Camera
p ' Ep 0
p (u, v,1)T
p'[t ( Rp )] 0 with
p ' (u ' , v ' ,1) T
p and p' points in pixel coordinate s correspond ing to p and p' in camera coordinate s
1 1
p M int p and p' M 'int p' p' F p 0
T
p' E p 0 with F M ' T
EM 1
int int
Fundamental matrix
Properties of fundamental and
essential matrix
Matrix is 3 x 3
Transpose : If F is essential matrix of cameras (P, P).
FT is essential matrix of camera (P,P)
Minimize
n
(
i 1
d 2
( pi
'
Fpi ) d 2
( pi Fp'i ))
SVD of F = UDVT.
Rectification
Image Reprojection
reproject image planes onto common
plane parallel to line between optical
centers
Rectification
Rotate the left camera so epipole goes to
infinity along the horizontal axis
Apply the same rotation to the right camera
Rotate the right camera by R
Adjust the scale
3D Reconstruction
Stereo: we know the viewing geometry (extrinsic
parameters) and the intrinsic parameters: Find
correspondences exploiting epipolar geometry, then
reconstruct
Structure from motion (with calibrated cameras): Find
correspondences, then estimate extrinsic parameters
(rotation and direction of translation), then reconstruct.
Uncalibrated cameras: Find correspondences,
Compute projection matrices (up to a projective
transformation), then reconstruct up to a projective
transformation.
Reconstruction by triangulation
P
ap'bRp c( p'Rp ) T
R Rr RlT
R=?
T=? T Tr RTl
Point reconstruction
x MX x' M' X
Linear triangulation
x MX x' M' X
x MX 0 AX 0
x'M' X' 0
xm 3T m1T
Linear combination
x m 3 X m1 X 0
T T
ym 3 m 2
T T
y m X m X 0
of 2 other equations T T A T
3 2
x ' m ' T
m '
1
xm X y m X 0
3
T T
y ' m' T m' T
2 1 3 2
homogeneous X 1
AX 0 Homogenous system:
X is last column of V in the SVD of A= USVT
geometric error
x i MX i MH H X
-1
P P i
From Projective to Metric
Reconstruction
Compute homography H such that XEi=HXi
for 5 or more control points XEi with known
Euclidean position.
Then the metric reconstruction is
M M MH 1 M ' M M ' H 1 X M ,i HX i
Rectification using 5 points
Affine reconstructions
From affine to metric
Use constraints from scene orthogonal lines
Use constraints arising from having the
same camera in both images
Reconstruction from N Views
Projective or affine reconstruction from a
possible large set of images
Given a set of camera Mi,
For each camera Mi a set of image point xji
Find 3D points Xj and cameras Mi, such that
MiXj=xji
Bundle adjustment
Solve following minimization problem
Find Mi and Xj that minimize
d (
i, j
M i
X j , x i 2
j)