Algorithm Search⌘K

Theoremadvanced

Kruppa equations

Also called Kruppa constraints.

For two views with fundamental matrix F, the duals of the absolute conic images satisfy [e']x omega*' [e']x^T ~ F omega* F^T: two equations per image pair on K K^T.

The Kruppa equations are the constraints that the fundamental matrix of two views puts on the intrinsic matrices of the cameras. They are written with the dual of the image of the absolute conic, ω∗=KKT\omega^\ast = K K^{\mathsf T}: if FF is the fundamental matrix and e′e' the epipole in the second image, then [e′]×ω∗′[e′]×T∼Fω∗FT[e']_\times \omega^{\ast\prime} [e']_\times^{\mathsf T} \sim F \omega^\ast F^{\mathsf T}. Both sides are symmetric and both have e′e' in their kernel, so the relation holds two equations per image pair. They do not use the plane at infinity or a common projective frame for several views, only the FF of each pair. That made them the first route to self-calibration, in the work of Faugeras, Luong and Maybank in 1992. Sturm (2000) showed that they lose information for some motions where other self-calibration methods still work.

Statement

Setting. Two pinhole cameras P=K[I∣0]P = K [I \mid 0] and P′=K′[R∣t]P' = K' [R \mid t] with invertible upper triangular KK and K′K', a rotation RR and t≠0t \ne 0 (the centers differ). Let

F=K′−T[t]×RK−1,e′=K′t,ω∗=KKT,ω∗′=K′K′T,F = K'^{-\mathsf T} [t]_\times R K^{-1}, \qquad e' = K' t, \qquad \omega^\ast = K K^{\mathsf T}, \qquad \omega^{\ast\prime} = K' K'^{\mathsf T},

so that x′TFx=0x'^{\mathsf T} F x = 0 for matching pixels and FTe′=0F^{\mathsf T} e' = 0. Here [a]×b=a×b[a]_\times b = a \times b.

Theorem (Kruppa equations).

  1. [e′]× ω∗′ [e′]×T=(det⁡K′)2 F ω∗FT[e']_\times \, \omega^{\ast\prime} \, [e']_\times^{\mathsf T} = (\det K')^2 \, F \, \omega^\ast F^{\mathsf T}. So for any scaling of FF and e′e', the two sides are equal up to a nonzero factor.
  2. Let F=Udiag⁡(r,s,0)VTF = U \operatorname{diag}(r, s, 0) V^{\mathsf T} be a singular value decomposition with r≥s>0r \ge s > 0, and let uiu_i and viv_i be the columns of UU and VV. Then
u2Tω∗′u2r2 v1Tω∗v1=−u1Tω∗′u2rs v1Tω∗v2=u1Tω∗′u1s2 v2Tω∗v2,\frac{u_2^{\mathsf T} \omega^{\ast\prime} u_2}{r^2 \, v_1^{\mathsf T} \omega^\ast v_1} = \frac{-u_1^{\mathsf T} \omega^{\ast\prime} u_2}{r s \, v_1^{\mathsf T} \omega^\ast v_2} = \frac{u_1^{\mathsf T} \omega^{\ast\prime} u_1}{s^2 \, v_2^{\mathsf T} \omega^\ast v_2},

read as equalities of cross products when a denominator is zero. These are two equations, each quadratic in the entries of ω∗\omega^\ast when ω∗′=ω∗\omega^{\ast\prime} = \omega^\ast, and part 1 holds if and only if both hold.

Part 1 is the form of HZ Section 19.4. Part 2 is the form of Hartley (1997), which needs only FF, because u3u_3 is the epipole.

In plain words

Two photos of the same scene from two places fix a matrix, the fundamental matrix, that says which points can match. This matrix mixes two things: how the camera moved, and how each camera is built inside. The Kruppa equations separate a part of the inside. They say that a certain shape, made only from the camera's insides, must look the same when seen through the matrix as when seen around the point where the other camera's center appears. From each pair of photos you get two such conditions. If the camera does not change, three photos give enough conditions to solve for its focal length, principal point and the rest, with no known object in the scene.

Proof

Step 1: the fundamental matrix and the epipole. A point XX has x∼KXx \sim K X and x′∼K′(RX+t)x' \sim K' (R X + t). The vectors tt, RX+tR X + t and RXR X are coplanar, so (RX+t)T[t]×RX=0(R X + t)^{\mathsf T} [t]_\times R X = 0, which is x′TK′−T[t]×RK−1x=0x'^{\mathsf T} K'^{-\mathsf T} [t]_\times R K^{-1} x = 0. So FF is as stated. Also FTe′=K−TRT[t]×TK′−1K′t=−K−TRT(t×t)=0F^{\mathsf T} e' = K^{-\mathsf T} R^{\mathsf T} [t]_\times^{\mathsf T} K'^{-1} K' t = -K^{-\mathsf T} R^{\mathsf T} (t \times t) = 0.

Step 2: a lemma. For an invertible 3×33 \times 3 matrix MM and any aa,

[Ma]×=det⁡(M) M−T[a]×M−1.[M a]_\times = \det(M) \, M^{-\mathsf T} [a]_\times M^{-1}.

Proof: for all bb and cc, (Ma×Mb)⋅Mc=det⁡[Ma,Mb,Mc]=det⁡(M)det⁡[a,b,c]=det⁡(M)(a×b)⋅c(M a \times M b) \cdot M c = \det[M a, M b, M c] = \det(M) \det[a, b, c] = \det(M) (a \times b) \cdot c. The right side equals det⁡(M) (M−T(a×b))⋅(Mc)\det(M) \, (M^{-\mathsf T} (a \times b)) \cdot (M c). As McM c runs over all of R3\mathbb R^3, Ma×Mb=det⁡(M)M−T(a×b)M a \times M b = \det(M) M^{-\mathsf T} (a \times b), that is [Ma]×M=det⁡(M)M−T[a]×[M a]_\times M = \det(M) M^{-\mathsf T} [a]_\times. Multiply by M−1M^{-1} on the right.

Step 3: part 1. By the lemma with M=K′M = K' and a=ta = t, [e′]×=det⁡(K′)K′−T[t]×K′−1[e']_\times = \det(K') K'^{-\mathsf T} [t]_\times K'^{-1}. Then

[e′]×ω∗′[e′]×T=(det⁡K′)2K′−T[t]×K′−1K′K′TK′−T[t]×TK′−1=(det⁡K′)2K′−T[t]×[t]×TK′−1,[e']_\times \omega^{\ast\prime} [e']_\times^{\mathsf T} = (\det K')^2 K'^{-\mathsf T} [t]_\times K'^{-1} K' K'^{\mathsf T} K'^{-\mathsf T} [t]_\times^{\mathsf T} K'^{-1} = (\det K')^2 K'^{-\mathsf T} [t]_\times [t]_\times^{\mathsf T} K'^{-1},
Fω∗FT=K′−T[t]×RK−1KKTK−TRT[t]×TK′−1=K′−T[t]×[t]×TK′−1,F \omega^\ast F^{\mathsf T} = K'^{-\mathsf T} [t]_\times R K^{-1} K K^{\mathsf T} K^{-\mathsf T} R^{\mathsf T} [t]_\times^{\mathsf T} K'^{-1} = K'^{-\mathsf T} [t]_\times [t]_\times^{\mathsf T} K'^{-1},

using RRT=IR R^{\mathsf T} = I. The two lines differ by the factor (det⁡K′)2>0(\det K')^2 > 0. If FF and e′e' are scaled by α≠0\alpha \ne 0 and β≠0\beta \ne 0, the sides are scaled by β2\beta^2 and α2\alpha^2, so they stay equal up to a nonzero factor.

Step 4: part 2. The matrix FF has rank 2, because [t]×[t]_\times has rank 2 and the other factors are invertible. So s>0s > 0, the third singular value is 0, and FTu3=Vdiag⁡(r,s,0)UTu3=0F^{\mathsf T} u_3 = V \operatorname{diag}(r, s, 0) U^{\mathsf T} u_3 = 0. So u3=γe′u_3 = \gamma e' for some γ≠0\gamma \ne 0, and by Step 3 part 1 holds with u3u_3 in place of e′e', up to a nonzero factor. Write both sides in the basis UU. For the right side,

UTFω∗FTU=diag⁡(r,s,0) VTω∗V diag⁡(r,s,0),U^{\mathsf T} F \omega^\ast F^{\mathsf T} U = \operatorname{diag}(r, s, 0) \, V^{\mathsf T} \omega^\ast V \, \operatorname{diag}(r, s, 0),

whose upper left 2×22 \times 2 block is (r2v1Tω∗v1rs v1Tω∗v2rs v1Tω∗v2s2v2Tω∗v2)\begin{pmatrix} r^2 v_1^{\mathsf T} \omega^\ast v_1 & r s \, v_1^{\mathsf T} \omega^\ast v_2 \\ r s \, v_1^{\mathsf T} \omega^\ast v_2 & s^2 v_2^{\mathsf T} \omega^\ast v_2 \end{pmatrix}, with zeros in the third row and column. For the left side, the lemma with the orthogonal M=UTM = U^{\mathsf T} (for which M−T=MM^{-\mathsf T} = M and det⁡M=±1\det M = \pm 1) gives UT[u3]×U=±[UTu3]×=±[e3]×U^{\mathsf T} [u_3]_\times U = \pm [U^{\mathsf T} u_3]_\times = \pm [e_3]_\times. Let N=UTω∗′UN = U^{\mathsf T} \omega^{\ast\prime} U, so Nij=uiTω∗′ujN_{ij} = u_i^{\mathsf T} \omega^{\ast\prime} u_j. A direct product with [e3]×=(0−10100000)[e_3]_\times = \begin{pmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix} gives

[e3]×N[e3]×T=(N22−N120−N12N110000).[e_3]_\times N [e_3]_\times^{\mathsf T} = \begin{pmatrix} N_{22} & -N_{12} & 0 \\ -N_{12} & N_{11} & 0 \\ 0 & 0 & 0 \end{pmatrix}.

The sign ±\pm appears twice and cancels. So part 1 holds if and only if the two symmetric 2×22 \times 2 blocks are proportional with a nonzero factor. The block of the right side is not zero, because VTω∗VV^{\mathsf T} \omega^\ast V is positive definite and r,s>0r, s > 0. Two symmetric 2×22 \times 2 matrices, the second nonzero, are proportional if and only if their three pairs of entries have equal ratios, in the cross product sense. This is the chain of part 2, with two independent equalities. When ω∗′=ω∗\omega^{\ast\prime} = \omega^\ast, each side of each equality is linear in ω∗\omega^\ast, so each cross product is quadratic. □\square

A numeric check. With K=K′K = K', f=800f = 800, c=(320,240)c = (320, 240), RR a turn of 10 degrees about YY and t=(1,0.2,0.1)t = (1, 0.2, 0.1), a script built FF and e′=Kt=(832,184,0.1)e' = K t = (832, 184, 0.1), which is the pixel (8320,1840)(8320, 1840). Every entry of [e′]×ω∗[e′]×T[e']_\times \omega^\ast [e']_\times^{\mathsf T} divided by the matching entry of (det⁡K)2Fω∗FT(\det K)^2 F \omega^\ast F^{\mathsf T} was 11 within 10−1510^{-15}, and the lemma held for a random MM within 5⋅10−165 \cdot 10^{-16}.

Consequences

  • Counting with a constant camera. If K′=KK' = K, the unknown ω∗\omega^\ast is symmetric and defined up to scale, so it has 5 unknowns. Each pair gives 2 equations. Three views give three pairs and 6 equations, which in general fix ω∗\omega^\ast; Maybank and Faugeras (1992) used three views for this reason. Any 5 of the quadratic equations have at most 25=322^5 = 32 isolated complex solutions, by the Bezout bound. Then KK follows from ω∗\omega^\ast by a triangular factorization, as on the image of the absolute conic page.
  • Fewer unknowns. Each known property of KK removes unknowns. With zero skew, square pixels and a known principal point, only the focal lengths remain. If both views have such cameras with different unknown focal lengths, one pair gives 2 equations in 2 unknowns.
  • Why only two. A fundamental matrix has 7 degrees of freedom. The relative pose of two calibrated cameras, a rotation and a translation up to scale, has 5. So a pair can constrain at most 7−5=27 - 5 = 2 parameters of the calibration. The Kruppa equations reach this count in general.
  • No plane at infinity. The equations involve only FF, never the plane at infinity or a projective reconstruction that is consistent across views. This is their advantage. It is also their weakness: the methods based on the absolute dual quadric use the plane at infinity, which is shared by all views, and that extra coupling is lost here (see self-calibration).
  • Calibrated case. If KK and K′K' are known, the equations reduce to a property of the essential matrix E=K′TFKE = K'^{\mathsf T} F K: EET∼[t]×[t]×TE E^{\mathsf T} \sim [t]_\times [t]_\times^{\mathsf T}, whose nonzero eigenvalues are equal. This is the equal singular value condition of EE.
  • Heuristic note on numerics. The equations are quadratic and are formed from FF, which is estimated with noise. In practice, solutions from Kruppa equations are often used only as start values for a bundle adjustment with the intrinsics as unknowns. This is a practice, not a theorem.

Tightness

  • Pure translation gives nothing. If K′=KK' = K and R=IR = I, then F=K−T[t]×K−1=[e′]×/det⁡KF = K^{-\mathsf T} [t]_\times K^{-1} = [e']_\times / \det K by the lemma. Then Fω∗FT=[e′]×ω∗[e′]×T/(det⁡K)2F \omega^\ast F^{\mathsf T} = [e']_\times \omega^\ast [e']_\times^{\mathsf T} / (\det K)^2 for every ω∗\omega^\ast, so both equations hold for every symmetric ω∗\omega^\ast and give no information. A script confirmed F/[e′]×=1/640000=1/det⁡KF / [e']_\times = 1 / 640000 = 1 / \det K entry by entry for the camera of the check above. In this case no self-calibration method can find KK from the pair, because the views are related by translation only.
  • Degenerate although calibration is possible. Sturm (2000) showed motions for which the Kruppa equations of all pairs do not fix KK, while the methods that use the plane at infinity do. One such case is a camera whose centers lie on a sphere and whose optical axes all pass through the center of the sphere, as for a camera that moves around an object and keeps it in the middle of the view. So the equations can be strictly weaker than full self-calibration.
  • Critical motions. For some motion sequences no method recovers KK (Sturm 1997); the Kruppa equations then fail too.
  • No translation. If the camera only rotates about its center, then t=0t = 0, FF is not defined, and the theorem does not apply. KK can then be found from the homographies between the views instead (HZ Section 19.6).
  • The counts are over the complex numbers. The 32 is a bound on isolated complex solutions of 5 quadrics. Some solutions are complex or give an ω∗\omega^\ast that is not positive definite, and those are rejected.

History

Erwin Kruppa derived the equations in 1913, in work on finding an object from two perspective views with known inner orientation. Faugeras, Luong and Maybank brought them into computer vision at ECCV 1992, and Maybank and Faugeras gave the theory in the International Journal of Computer Vision in the same year, as the first method for the self-calibration of a moving camera from point matches only. Hartley (1997) gave the short form with the singular value decomposition of FF. Sturm (2000) analyzed when the equations lose information, which helped to move the field toward methods based on the absolute dual quadric and on stratification.

References

  1. Richard Hartley and Andrew Zisserman, Multiple View Geometry in Computer Vision, second edition, Cambridge University Press, 2004, Section 19.4, The Kruppa equations (the equation on the dual image of the absolute conic, its form with the SVD of F, and the count of two equations per pair); Section 19.1 for the counting of constraints
  2. Richard I. Hartley, Kruppa's equations derived from the fundamental matrix, IEEE Transactions on Pattern Analysis and Machine Intelligence 19(2), 1997, 133-135, the form of the Kruppa equations in terms of the singular value decomposition of F
  3. Stephen J. Maybank and Olivier D. Faugeras, A theory of self-calibration of a moving camera, International Journal of Computer Vision 8(2), 1992, 123-151, the derivation of the Kruppa equations from the epipolar transformation, and the use of three views with a constant camera
  4. Peter Sturm, A case against Kruppa's equations for camera self-calibration, IEEE Transactions on Pattern Analysis and Machine Intelligence 22(10), 2000, 1199-1204, the motions for which the Kruppa equations are degenerate although self-calibration is possible

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/65TKEM/text.yaml