



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




The fundamental matrix, F , is an extension of the the essential matrix, E, to the case of an uncalibrated camera. The epipolar constraint that gives rise to F is also an extension of the epipolar constraint that that leads to E. The difference is that in the uncalibrated case we must take in to account the intrinsic camera parameters K which result in the “distorted space.” As seen in the last lecture, F is given by:
(8.1) F = K−T^ T RK̂ −^1 = T̂ ′KRK−^1
where T ′^ = KT. Note that if K = I then F = E. We can use the 8-point algorithm to get F as we did with E, but unfor- tunately we cannot simply extract R, K, T from F as we do with E. What we would like is to be able to get a projection matrix, Π, from F such that:
F = T̂ ′KRK−^1 7 → Π = [KRK−^1 , KT ]
The reason this is not possible can be seen by comparing the degrees of free- dom (DOF) in F with the degrees of freedom required to represent R, K, T.
(^1) Department of Computer Science and Engineering, University of California, San Diego.
April 21, 2004
1
2 SERGE BELONGIE, CSE 252B: COMPUTER VISION II
To express R, K, T we need 10 DOF, 2 for translation, 5 for intrinsic param- eters, and 3 for rotation. F has nine values specified up to a scale factor, so it has at most only 8 DOF (not taking into account its special structure), 2 DOF short of being able to provide R, K, T.
8.1.1. Ambiguities and constraints in image formation
When given an equation involving matrix products it is possible for ambigui- ties to crop up because the product can be interspersed with a multiplication of a matrix and its inverse. For example,
M = BC = (BH−^1 )(HC) = B′C′
In this case (B′, C′) and (B, C) cannot be distinguished using the measure- ment M. This is an issue for us since the equation that relates image and real world coordinates
(8.2) λx′^ = KΠ 0 gX
could hide three such ambiguities, as evidenced by the following:
(8.3) λx′^ = KΠ 0 gX = KR− 0 1 R 0 Π 0 H−^1 Hgg− w 1 gwX
In this case, R 0 and gw can be fixed by choosing Euclidean coordinate frames. However, H causes ambiguity to the projection matrix Π, leading to a dis- tortion of the world coordinate frame that X lives in, which distorts our reconstruction. Fixing this distortion is known as “rectification,” and is equivalent to identifying the metric of the space, or “calibrating” the space. Being able to find H corresponds to discovering the metric of the space as in:
〈u, v〉S = u>Sv.
This is analogous to calibrating the camera to provide a rectified image.
There are different levels of reconstruction of a scene possible as shown in figure 1. Without knowing K we can only get the projective reconstruction, but this can be upgraded to affine (parallelism preserved) and Euclidean (parallelism and orthogonality preserved) reconstructions. Today we are answering the question of how do we get the projective reconstruction given a set of corresponding points in two views and the camera projection matrices Πip. Note: The i in the subscript represents which camera view we are referencing, and the p stands for projective. Without loss of generality, and to simplify the math, we use the following convention:
Π 1 p = [I, 0 ]
4 SERGE BELONGIE, CSE 252B: COMPUTER VISION II
This can be re-written as
(8.8) [C, c] ︸ ︷︷ ︸ Π 2 p
∼ [B, b] ︸ ︷︷ ︸ Π^ ˜ 2 p
v>^ v 4
Hp
Thus, we have shown that Π 2 p ∼ Π˜ 2 pHp for Hp of the form in the above equation.
8.2.2. Canonical Choices of the Projection Matrices
We want to fix the choice of Hp such that F only maps to one pair (Π 1 p, Π 2 p) with no parametrization in terms of v or v 4. The canonical choice for these two projection matrices is stated below and then expanded upon later.
(8.9) F 7 → Π 1 p = [I, 0 ] , Π 2 p =
F, T ′
where T ′^ = KT and ‖T ′‖ = 1. This choice of projection matrices depends
only on F because T ′>^ is related to F by T ′>F = 0. (Recall T ′^ ∼ e 2 , the epipole in the 2nd view.) Now let’s examine whether this projection will give back F. We know that F is constructed from hatting the rightmost column of Π 2 p and premul- tiplying it by the leading 3 × 3 block as follows: [̂ T ′
F, T ′
F
Note that T̂ ′^ T̂ ′
= I − T ′T ′>^ when ‖T ′‖ = 1 (see MaSKS exercise 5.3). This implies that:
T̂ ′^ T̂ ′> F =
8.2.3. Determination of Canonical Projection Matrices
Now we will examine how to do the projective reconstruction, which is the process from which the 3D coordinates, Xp, are recovered from pairs of corresponding uncalibrated image points, x′ 1 and x′ 2. Using Π 1 p and Π 2 p as described previously, we have:
(8.10) λ 1 x′ 1 = Π 1 pXp = [I, 0 ] Xp
λ 2 x′ 2 = Π 2 pXp =
F, T ′
(8.11) Xp
Premultiplying by ̂x′ 1 and ̂x′ 2 in the previous equations yields x̂′ iΠipXp =
0 for i = 1, 2. For two corresponding points x′ 1 = [x 1 , y 1 , 1]>^ and x′ 2 =
LECTURE 8. PROJECTIVE RECONSTRUCTION 5
Figure 2. An illustration of how the true Euclidean structure might be skewed in the process of recovering its projective structure in the uncalibrated case. (Figure from MaSKS p.191.)
[x 2 , y 2 , 1]>, where Πip is written as a set of three row vectors [π^1 i , π^2 i , π^3 i ]>, these constraints result in four equations: ( x 1 π^31 >
(8.12) Xp = π^11 > Xp ( y 1 π^31 >
(8.13) Xp = π^21 > Xp ( x 2 π^32 >
(8.14) Xp = π^12 > Xp ( y 2 π^32 >
(8.15) Xp = π^22 > Xp
Which can be re-written as a homogeneous linear system M Xp = 0 , M ∈ R^4 ×^4 :
x 1 π^31 > − π^11 > y 1 π^31 > − π^21 > x 2 π^32 > − π^12 > y 2 π^32 > − π^22 >
Xp^ =^0
We can solve for Xp using the SVD as described in previous lectures.^1 An example of what the projective structure of a scene might look like can be seen in Figure 2. Note, however, that this only works exactly for the case where there is no noise. In particular, the smallest singular value of M will only be zero in the exact case. In the case of noisy data, this initialization can serve as a starting point for a nonlinear optimization method. See MaSKS Example 6.4 on p. 190 for a numerical example of this process.
(^1) Recall that we made a big deal about the twisted pair ambiguity in the case of calibrated
reconstruction, but in the uncalibrated case we don’t. Why is that?