Epipolar geometry

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

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
Fundamental matrix
• Encodes information of the intrinsic and extrinisic parameters • F is of rank 2, since S has rank 2 (R and M and M’ have full rank) • Has 7 degrees of freedom There are 9 elements, but scaling is not significant and det F = 0
Triangulation
ap’ ray through C’ and p’, bRp + T ray though C and p expressed in right coordinate system
ap'bRp c( p'Rp) T
R Rr RlT T Tr RTl
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.
The epipolar geometry
C,C’,x,x’ and X are coplanar
The epipolar geometry
All points on p project on l and l’
The epipolar geometry
Family of planes p and lines l and l’ Intersection in e and e’
Essential matrix
• Encodes information of the extrinisic parameters only • E is of rank 2, since S has rank 2 (and R has full rank) • Its two nonzero singular values are equal • Has only 5 degrees of freedom, 3 for rotation, 2 for translation
a b
a (a b)sformation
P' RP t p MP with M [ I | 0] p' M ' P' with M ' [ R | t ]
Calibrated Camera
p' Ep 0
y m X m X 0 xm X y m X 0
x m 3 X m1 X 0
T T T 3 2 T T T 2 1
homogeneous
X 1
AX 0
Homogenous system:
X is last column of V in the SVD of A= USVT
• Matrix is 3 x 3 • Transpose : If F is essential matrix of cameras (P, P’). FT is essential matrix of camera (P’,P) • Epipolar lines: Think of p and p’ as points in the projective plane then F p is projective line in the right image. That is l’=F p l = FT p’ • Epipole: Since for any p the epipolar line l’=F p contains the epipole e’. Thus (e’T F) p=0 for a all p . Thus e’T F=0 and F e =0
(ii) Camera geometry (motion): Given a set of corresponding image points {xi ↔x’i}, i=1,…,n, what are the cameras P and P’ for the two views? Or what is the geometric transformation between the views? (iii) Scene geometry (structure): Given corresponding image points xi ↔x’i and cameras P, P’, what is the position of the point X in space?
Locating the epipoles
p'T Fe 0 Fe 0 e is thenullspaceof F ; e' is thenullspaceof F T
SVD of F = UDVT.
Rectification
• Image Reprojection
– reproject image planes onto common plane parallel to line between optical centers
p (u, v,1)T p'[t ( Rp)] 0 with T p ' ( u ' , v ' , 1 )
Essential matrix
p' Ep 0
with E t R SR
Uncalibrated Camera
p and p' pointsin pixelcoordinate s correspond ing to p and p' in cameracoordinate s
Example: converging cameras
Example: motion parallel with image plane
Example: forward motion
e’
e
Matrix form of cross product
a2b3 a3b2 0 a ab a b a b 3 1 1 3 3 a1b2 a2b1 a2 a3 0 a1 a2 a1 b 0
Least square approach
Minimize (pi' Fpi ) 2
i 1 n
under theconstraint | F |2 1
We have a homogeneous system A f =0 The least square solution is smallest singular value of A, i.e. the last column of V in SVD of A = U D VT
The epipolar geometry
epipoles e,e’ = intersection of baseline with image plane = projection of projection center in other image = vanishing point of camera motion direction
Epipolar geometry
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?
Non-Linear Least Squares Approach
Minimize
2 ' 2 ( d ( p Fp ) d ( pi Fp'i )) i i i 1 n
with respect to the coefficients of F Using an appropriate rank 2 parameterization
an epipolar plane = plane containing baseline (1-D family) an epipolar line = intersection of epipolar plane with image (always come in corresponding pairs)
Scaling ambiguity
P' RP t P p T z P RP t p' T z ( RP t )
Depth Z and Z’ and t can only be recovered up to a scale factor Only the direction of translation can be obtained
geometric error
ˆ ) 2 d (x' , x ˆ ' ) 2 subject to x ˆ 'T Fx ˆ 0 d (x, x
1 1 p M int p and p' M 'int p'
p' E p 0
p' F p 0
T ' T 1 with F M int E M int
Fundamental matrix
Properties of fundamental and essential matrix
Reconstruction by triangulation
P’
If cameras are intrinsically and extrinsically calibrated, find P as the midpoint of the common perpendicular to the two rays in space.
R=? T=?
Point reconstruction
x MX
x' M' X
Linear triangulation
x MX x' M' X x MX 0 x'M' X' 0
Linear combination of 2 other equations
AX 0
xm 3T m1T T T ym m A 3 T 2 T x' m 3 ' m1 ' y ' m' T m' T 3 2
相关文档
最新文档