Algorithm Search⌘K

Theoremadvanced

Characterization of essential matrices

Also called Huang-Faugeras constraint.

A nonzero real 3 by 3 matrix is essential exactly when its singular values are (s, s, 0), or exactly when det E = 0 and 2 E E^T E - tr(E E^T) E = 0. Minimal solvers use these cubics.

The characterization theorem gives two exact tests for a real 3×33 \times 3 matrix to be an essential matrix E=[t]×RE = [\mathbf{t}]_\times R. The first is on the singular values: (s,s,0)(s, s, 0) with s>0s > 0. The second is a set of polynomial equations of degree 3 in the entries: det⁡E=0\det E = 0 and 2EETE−tr⁡(EET)E=02EE^{\mathsf T}E - \operatorname{tr}(EE^{\mathsf T})E = 0. The first test is the way to project a noisy estimate onto the essential matrices, and the second is the system that the five-point algorithm and other minimal solvers solve. The word "real" matters: over the complex numbers the cubic equations have solutions that are not essential.

Statement

Theorem. Let EE be a real 3×33 \times 3 matrix, E≠0E \ne 0. The following three conditions are equivalent.

  1. E=[t]×RE = [\mathbf{t}]_\times R for some t∈R3\mathbf{t} \in \mathbb{R}^3, t≠0\mathbf{t} \ne \mathbf{0}, and some rotation RR (RTR=IR^{\mathsf T}R = I, det⁡R=1\det R = 1).
  2. EE has rank 2 and its two nonzero singular values are equal, that is, its singular values are (s,s,0)(s, s, 0) with s>0s > 0.
  3. det⁡E=0\det E = 0 and 2EETE−tr⁡(EET) E=02EE^{\mathsf T}E - \operatorname{tr}(EE^{\mathsf T})\,E = 0.

Moreover, when they hold with E=Udiag⁡(s,s,0)VTE = U\operatorname{diag}(s, s, 0)V^{\mathsf T}, det⁡U=det⁡V=1\det U = \det V = 1, and u3\mathbf{u}_3 the third column of UU, one factorization is t=−s u3\mathbf{t} = -s\,\mathbf{u}_3 and R=UWVTR = UWV^{\mathsf T} with W=(0−10100001)W = \begin{pmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}.

Corollary (the closest essential matrix). Let GG be a real 3×33 \times 3 matrix with an SVD G=Udiag⁡(s1,s2,s3)VTG = U\operatorname{diag}(s_1, s_2, s_3)V^{\mathsf T}, s1≥s2≥s3≥0s_1 \ge s_2 \ge s_3 \ge 0. Among all matrices with singular values (m,m,0)(m, m, 0), m≥0m \ge 0, the closest to GG in the Frobenius norm is Udiag⁡(mˉ,mˉ,0)VTU\operatorname{diag}(\bar m, \bar m, 0)V^{\mathsf T} with mˉ=(s1+s2)/2\bar m = (s_1 + s_2)/2.

Condition 2 and its equivalence with condition 1 are the result of Huang and Faugeras (1989), and Hartley and Zisserman state it as Result 9.17. The cubic equations of condition 3 are the ones that Nister (2004) uses.

In plain words

An essential matrix is made of a rotation and a direction of travel. The theorem says how to tell, from the nine numbers alone, whether a matrix can be written that way. One test looks at how the matrix stretches space: it must flatten one direction to nothing and stretch the other two by the same amount. The other test is a short list of equations that the nine numbers must satisfy. The equations are what a solver can use, because they are polynomials. The stretch test is what a program uses to clean up a noisy estimate: keep the two main directions, give them the same stretch, and drop the third. Both tests work only for matrices of ordinary real numbers.

Proof

We use two facts. First, for a rotation UU and a vector a\mathbf{a}, [Ua]×=U[a]×UT[U\mathbf{a}]_\times = U[\mathbf{a}]_\times U^{\mathsf T}, because a rotation keeps cross products: Up×Uq=U(p×q)U\mathbf{p} \times U\mathbf{q} = U(\mathbf{p} \times \mathbf{q}). Second, [e3]×=Z=(0−10100000)[\mathbf{e}_3]_\times = Z = \begin{pmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}, and a direct product gives ZW=diag⁡(−1,−1,0)ZW = \operatorname{diag}(-1, -1, 0).

1 implies 2. EET=[t]×RRT[t]×T=−[t]×2=∥t∥2I−ttTEE^{\mathsf T} = [\mathbf{t}]_\times RR^{\mathsf T}[\mathbf{t}]_\times^{\mathsf T} = -[\mathbf{t}]_\times^2 = \|\mathbf{t}\|^2 I - \mathbf{t}\mathbf{t}^{\mathsf T}. This matrix maps t\mathbf{t} to 0\mathbf{0} and each vector orthogonal to t\mathbf{t} to ∥t∥2\|\mathbf{t}\|^2 times itself. So its eigenvalues are ∥t∥2,∥t∥2,0\|\mathbf{t}\|^2, \|\mathbf{t}\|^2, 0, and the singular values of EE, their square roots, are (∥t∥,∥t∥,0)(\|\mathbf{t}\|, \|\mathbf{t}\|, 0) with ∥t∥>0\|\mathbf{t}\| > 0.

2 implies 1. Take an SVD E=Udiag⁡(s,s,0)VTE = U\operatorname{diag}(s, s, 0)V^{\mathsf T} with orthogonal UU and VV. If det⁡U=−1\det U = -1, change the sign of the third column of UU; this does not change the product, because the third singular value is 0. Do the same for VV. Now UU and VV are rotations. Then

E=sUdiag⁡(1,1,0)VT=−sUZWVT=−s (UZUT)(UWVT)=[−s Ue3]× (UWVT).E = sU\operatorname{diag}(1, 1, 0)V^{\mathsf T} = -sUZWV^{\mathsf T} = -s\,(UZU^{\mathsf T})(UWV^{\mathsf T}) = [-s\,U\mathbf{e}_3]_\times\,(UWV^{\mathsf T}) .

UWVTUWV^{\mathsf T} is a product of rotations, so it is a rotation, and t=−s u3≠0\mathbf{t} = -s\,\mathbf{u}_3 \ne \mathbf{0}. This also proves the factorization in the statement.

2 is equivalent to 3. Let E=Udiag⁡(s1,s2,s3)VTE = U\operatorname{diag}(s_1, s_2, s_3)V^{\mathsf T} be any SVD, and put S=s12+s22+s32>0S = s_1^2 + s_2^2 + s_3^2 > 0. Then EETE=Udiag⁡(s13,s23,s33)VTEE^{\mathsf T}E = U\operatorname{diag}(s_1^3, s_2^3, s_3^3)V^{\mathsf T} and tr⁡(EET)=S\operatorname{tr}(EE^{\mathsf T}) = S, so

2EETE−tr⁡(EET)E=Udiag⁡(s1(2s12−S), s2(2s22−S), s3(2s32−S))VT.2EE^{\mathsf T}E - \operatorname{tr}(EE^{\mathsf T})E = U\operatorname{diag}\big(s_1(2s_1^2 - S),\ s_2(2s_2^2 - S),\ s_3(2s_3^2 - S)\big)V^{\mathsf T} .

This is zero if and only if each sis_i is 0 or satisfies si2=S/2s_i^2 = S/2. If singular values (s,s,0)(s, s, 0), s>0s > 0, are given, then S=2s2S = 2s^2, the two nonzero values satisfy s2=S/2s^2 = S/2, and det⁡E=±s⋅s⋅0=0\det E = \pm s \cdot s \cdot 0 = 0. So 2 implies 3. For the converse, let kk be the number of nonzero singular values; k≥1k \ge 1 because E≠0E \ne 0. Each of them has square S/2S/2, so S=kS/2S = kS/2, and since S>0S > 0, k=2k = 2. The two nonzero singular values are both S/2\sqrt{S/2}, which is condition 2. □\square

Proof of the corollary. By von Neumann's trace inequality, tr⁡(GTH)≤∑isihi\operatorname{tr}(G^{\mathsf T}H) \le \sum_i s_i h_i for real 3×33 \times 3 matrices with singular values sis_i and hih_i in decreasing order. For HH with singular values (m,m,0)(m, m, 0) this gives

∥G−H∥F2=∥G∥F2+∥H∥F2−2tr⁡(GTH)≥(s1−m)2+(s2−m)2+s32.\|G - H\|_F^2 = \|G\|_F^2 + \|H\|_F^2 - 2\operatorname{tr}(G^{\mathsf T}H) \ge (s_1 - m)^2 + (s_2 - m)^2 + s_3^2 .

The right side is smallest at m=mˉ=(s1+s2)/2m = \bar m = (s_1 + s_2)/2, and H=Udiag⁡(mˉ,mˉ,0)VTH = U\operatorname{diag}(\bar m, \bar m, 0)V^{\mathsf T} attains it, since then G−H=Udiag⁡(s1−mˉ,s2−mˉ,s3)VTG - H = U\operatorname{diag}(s_1 - \bar m, s_2 - \bar m, s_3)V^{\mathsf T}. ■\blacksquare

Consequences

  • Five degrees of freedom. Condition 1 gives the count directly: 3 for RR and 2 for the direction of t\mathbf{t}, so the essential matrices up to scale form a set of dimension 5 inside the 8-dimensional space of 3×33 \times 3 matrices up to scale. Each match gives one linear equation, so five matches are the minimum for calibrated cameras.
  • The ten equations of the five-point solver. Condition 3 is one equation of degree 3 (det⁡E=0\det E = 0) and nine of degree 3 (the entries of the matrix equation). Five matches leave a four-dimensional space of matrices E=xX+yY+zZ+WE = xX + yY + zZ + W, and the five-point algorithm solves these ten cubics in (x,y,z)(x, y, z). That the problem has at most 10 complex solutions for five points in general position is a result of Demazure (1988) and of Faugeras and Maybank (1990); it is cited here, not proved.
  • Over the reals one equation is enough. The proof shows that for a real E≠0E \ne 0 the matrix equation alone forces k=2k = 2 nonzero singular values, so it already implies det⁡E=0\det E = 0. Solvers keep det⁡E=0\det E = 0 anyway, because they work with polynomials whose roots can be complex.
  • Projection of a noisy estimate. The corollary is the last step of the essential matrix form of the eight-point algorithm, and of many other linear methods: replace the singular values by (mˉ,mˉ,0)(\bar m, \bar m, 0). Since EE is defined up to scale, (1,1,0)(1, 1, 0) is just as common. The projection is optimal in the Frobenius norm of the matrix, which has no direct meaning in the images; it is a convenient step, not a statistically optimal estimate.
  • Pose from the SVD. The factorization in the statement is one of four; the decomposition page proves that there are exactly four and shows how cheirality picks one.
  • Fundamental matrices are not constrained this way. In pixel coordinates, F=K2−TEK1−1F = K_2^{-\mathsf T}EK_1^{-1} only has rank 2. The equal singular values come back only after the intrinsics are removed. This is the basis of some self-calibration methods, which look for KK that makes KTFKK^{\mathsf T}FK essential.

Tightness

  • "Real" is needed. The complex matrix E=(1i0i−10000)E = \begin{pmatrix} 1 & i & 0 \\ i & -1 & 0 \\ 0 & 0 & 0 \end{pmatrix} has det⁡E=0\det E = 0 and EET=0EE^{\mathsf T} = 0 (the transpose, not the conjugate transpose: the first row times itself is 1+i2=01 + i^2 = 0, and the rows are orthogonal in the same sense). So 2EETE−tr⁡(EET)E=02EE^{\mathsf T}E - \operatorname{tr}(EE^{\mathsf T})E = 0, and condition 3 holds. But EE has rank 1, since its second row is ii times the first. The proof breaks because a complex matrix has no SVD of the form UΣVTU\Sigma V^{\mathsf T} with real orthogonal factors.
  • E≠0E \ne 0 is needed. The zero matrix satisfies condition 3 and is not essential.
  • Rank 2 alone is not enough. G=diag⁡(1,2,0)G = \operatorname{diag}(1, 2, 0) has rank 2 and is a fundamental matrix, but 2GGTG−5G=diag⁡(−3,6,0)≠02GG^{\mathsf T}G - 5G = \operatorname{diag}(-3, 6, 0) \ne 0.
  • Equal singular values alone are not enough. The identity has singular values (1,1,1)(1, 1, 1) and rank 3; condition 3 fails with 2I−3I=−I2I - 3I = -I.
  • The scale is free. All three conditions hold for λE\lambda E whenever they hold for EE, λ≠0\lambda \ne 0; a negative λ\lambda is absorbed by the sign of t\mathbf{t}.

History

Longuet-Higgins (1981) introduced the matrix EE of the bilinear constraint and gave a linear method to find it from eight matches. Huang and Faugeras (1989) proved that a real matrix is essential if and only if one singular value is zero and the other two are equal, and noted that the linear method does not enforce this. The cubic equations appear in the study of how many solutions five matches allow: Demazure (1988) showed that there are 10 complex solutions in general, against the 11 that Kruppa (1913) had claimed, and Faugeras and Maybank (1990) studied the same count. Nister (2004) built his five-point solver on these ten cubics. Hartley and Zisserman (2000, second edition 2004) and Ma, Soatto, Kosecka and Sastry (2004) give textbook proofs by the SVD.

References

  1. Thomas S. Huang and Olivier D. Faugeras, Some properties of the E matrix in two-view motion estimation, IEEE Transactions on Pattern Analysis and Machine Intelligence 11(12), 1989, 1310-1312, the condition that one singular value of E is zero and the other two are equal, as necessary and sufficient
  2. Richard Hartley and Andrew Zisserman, Multiple View Geometry in Computer Vision, second edition, Cambridge University Press, 2004, Section 9.6, The essential matrix (Result 9.17 and its proof by the SVD)
  3. Yi Ma, Stefano Soatto, Jana Kosecka and S. Shankar Sastry, An Invitation to 3-D Vision, Springer, 2004, Chapter 5, Section 5.1.2 (elementary properties of the essential matrix: the characterization and the projection onto the essential space)
  4. David Nister, An efficient solution to the five-point relative pose problem, IEEE Transactions on Pattern Analysis and Machine Intelligence 26(6), 2004, the cubic constraints det E = 0 and 2 E E^T E - trace(E E^T) E = 0 as the ten equations of the solver
  5. Olivier D. Faugeras and Stephen Maybank, Motion from point matches, multiplicity of solutions, International Journal of Computer Vision 4(3), 1990, 225-246, the algebraic constraints on E and the number of solutions from five matches

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/7NN1Q0/text.yaml