Definitioncore
Fundamental matrix
Also called F matrix.
The rank 2 matrix F of two uncalibrated views, defined up to scale, with x2^T F x1 = 0 for every pair of matching pixels x1 in image 1 and x2 in image 2. It has 7 degrees of freedom.
The fundamental matrix is the matrix that writes the epipolar geometry of two views in pixel coordinates: matching points satisfy , with the point of the second image on the left. It needs no knowledge of the intrinsic matrices, which is why it is the matrix of two uncalibrated views. When the intrinsics are known, and the essential matrix carry the same information, through . This page defines and lists its properties; the methods that find it from matches are the eight-point algorithm, its normalized form and the seven-point algorithm.
Definition
Let two cameras have the matrices and , so that a point with coordinates in the frame of camera 1 has in the frame of camera 2. Here and are invertible, is a rotation, and , so the two centers differ. The fundamental matrix of the ordered pair (camera 1, camera 2) is
taken up to a nonzero scale, where is the skew matrix of .
The correspondence condition. If and are the images of one point , written as homogeneous pixel vectors, then
The proof: and , and . Hartley and Zisserman write the same condition as , with in the second image. Some libraries store the transpose; their matrix is in this convention.
General cameras. For any two camera matrices with different centers, , where is the pseudo-inverse of and is the image of the first center (Hartley and Zisserman, Section 9.2). For the two cameras above this gives the formula of the definition, up to scale.
Properties. Let be a fundamental matrix.
- Rank 2. and . The null vector () is the epipole of image 1, the image of the second center, and the left null vector () is the epipole of image 2.
- Seven degrees of freedom. has 9 entries, minus 1 for the scale and 1 for the condition .
- Epipolar lines. The epipolar line of in image 2 is , and that of in image 1 is .
- Order. The matrix of the pair in the reverse order (camera 2, camera 1) is .
- Every rank 2 matrix is one. For every real matrix of rank 2 there are cameras with this fundamental matrix, for example and (Hartley and Zisserman, Section 9.5). So the conditions "rank 2" and "fundamental matrix" are the same for real matrices.
- Projective ambiguity. does not change when both cameras are multiplied on the right by the same invertible matrix. So from alone the cameras, and the scene, are fixed only up to a projective transformation of space; this is the projective reconstruction theorem.
- Change of image coordinates. If the images are moved by homographies, and , then becomes . The normalized eight-point algorithm uses this with similarities.
Examples and non-examples
The running example of this group. Take , , and . The essential matrix is , and has rows , and . Then , multiplied by , is
- The point has , so and . The line is , and is on it.
- The point has and . Then is , and passes through , since .
- The epipoles: , and . The first row of is zero, so and , a point at infinity: the epipolar lines of image 2 are the rows.
- , and . The canonical form with norm 1 and a positive largest entry has . Its entries differ in size by a factor of about , which is one reason why estimating on raw pixels is badly conditioned.
Rectified cameras. With , and the second center at , , and . The derivation is on the epipolar geometry page.
Pure translation. With and , the identity gives with , a skew-symmetric matrix. For the above and a forward step , , the principal point, and . Both epipoles are , and the epipolar lines are the lines through it.
Non-examples.
- The identity matrix has rank 3, so it is not a fundamental matrix: its "epipolar lines" do not pass through one common point.
- The matrix that a linear solve returns from noisy matches usually has rank 3. It becomes a fundamental matrix only after the rank step of the eight-point algorithm.
- Two images from one center (a camera that only rotates) have no fundamental matrix: gives . The images are related by a homography instead.
- A homography between the two images is not a fundamental matrix, since it has rank 3. But for every plane, with the homography that the plane induces.
Related definitions
- Essential matrix: the fundamental matrix of normalized coordinates, . It has 5 degrees of freedom and two equal singular values.
- Epipolar geometry: the epipoles, epipolar lines and planes that encodes.
- Homography: the other map between two views, for a plane or for a camera that only rotates. A homography is compatible with when is skew-symmetric.
- Camera projection matrix: is computed from two of them, and gives two of them back up to a projective transformation.
- Sampson distance: the first-order distance of a match from the constraint .
- Trifocal tensor: the three-view analog; it contains the three fundamental matrices of its view pairs.
- The affine fundamental matrix of two affine cameras has a zero upper-left block and 4 degrees of freedom.
References
- Richard Hartley and Andrew Zisserman, Multiple View Geometry in Computer Vision, second edition, Cambridge University Press, 2004, Section 9.2, The fundamental matrix F (the geometric and algebraic derivations, the correspondence condition and the summary of properties in Table 9.1); Section 9.5, Retrieving the camera matrices
- Richard I. Hartley, In defense of the eight-point algorithm, IEEE Transactions on Pattern Analysis and Machine Intelligence 19(6), 1997, 580-593, the linear estimation of F from point matches and the rank 2 condition
- Richard Szeliski, Computer Vision, Algorithms and Applications, second edition, Springer, 2022, Section 11.3, Two-frame structure from motion
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag AZMVF2 Edit this page History Report an error Markdown