Definition
Epipolar geometry describes the geometric relationship between two images of the same scene taken from different camera centers and . For any point in the scene, its projections and into the two images, together with the two camera centers, are coplanar. This plane is called the epipolar plane of . The epipolar plane intersects image 1 along the epipolar line corresponding to , and image 2 along the epipolar line corresponding to .
The epipolar constraint states: given a point in image 1, its corresponding point in image 2 must lie on the epipolar line in image 2. This reduces stereo correspondence search from 2-D to 1-D.
The epipoles and are the projections of each camera center into the opposite image: is the projection of into image 1; is the projection of into image 2. All epipolar lines in image 1 pass through ; all epipolar lines in image 2 pass through .
Mathematical Description
Fundamental matrix
The unique rank-2 matrix encoding the epipolar constraint between two uncalibrated cameras.
For any pair of corresponding points (in pixel coordinates), satisfies:
The epipolar line in image 2 corresponding to is ; the epipolar line in image 1 corresponding to is .
Properties of :
- Rank 2 (not full rank; ).
- 7 degrees of freedom (9 entries, for scale, for the rank constraint).
- Skew-symmetric part is related to the epipole: and .
Essential matrix
When the camera intrinsic matrices and are known, the epipolar constraint can be expressed in calibrated (normalized) coordinates and :
where is the essential matrix.
The fundamental matrix in calibrated coordinates; encodes only the relative rotation and translation between the two cameras.
where is the skew-symmetric matrix of .
Relationship between and :
Properties of :
- Rank 2, with two equal non-zero singular values (this is a necessary and sufficient condition for a matrix to be an essential matrix).
- 5 degrees of freedom: 3 for rotation , 2 for the direction of (translation is determined only up to scale from image correspondences alone).
Decomposing into and
Given , compute its SVD: . The four candidate decompositions are:
where and is the third column of . A single triangulated 3-D point with positive depth in both cameras disambiguates the four solutions.
Estimation
8-point algorithm. Each correspondence yields one linear equation in the 9 entries of (or ). Stacking equations gives the design matrix ; the solution is the smallest right singular vector of . The rank-2 constraint is enforced by zeroing the smallest singular value of the initial estimate.
Normalized 8-point algorithm. Hartley normalization (translate to zero mean, scale to RMS distance) is applied to both point sets before forming . This conditions the design matrix and produces numerically accurate results even from hundreds of noisy correspondences.
5-point algorithm. For the essential matrix specifically, 5 correspondences suffice (since has 5 degrees of freedom). The 5-point solver of Nistér (2004) finds the set of all valid consistent with 5 correspondences by solving a polynomial system (up to 10 real solutions), selecting the physically valid one via a depth-positivity test. It is the minimal solver used inside RANSAC for calibrated stereo and structure-from-motion.
Numerical Concerns
Rank-2 enforcement. DLT minimizes an algebraic error and does not constrain to rank 2. The rank-2 projection is applied after DLT by setting the smallest singular value of the DLT solution to zero. This projection is optimal in the Frobenius norm but not in the geometric (Sampson) error; iterative refinement of the rank-constrained using the geometric error is preferred for accuracy.
Hartley normalization. Without normalization the design matrix for the 8-point algorithm has a large condition number (proportional to the image coordinate range squared), producing solutions that are sensitive to noise. Normalization is not optional for the fundamental matrix; it is required for the algorithm to work reliably.
Gauge ambiguity. The fundamental matrix is defined only up to scale. Setting is standard. For the essential matrix, the two equal singular values are conventionally set to 1 after enforcing the rank constraint; this fixes the scale of relative to the image coordinate system but not the metric scale of .
Degenerate configurations. The fundamental matrix is undefined when all scene points are coplanar (the epipolar constraint degenerates to a planar homography). This case is detected when the design matrix is rank-deficient or has two near-equal small singular values. Structure-from-motion pipelines use a homography-vs-fundamental-matrix test (comparing inlier counts under both models) to detect planar scenes and select the appropriate initialization.
Epipole near or in the image. When the second camera is looking at the first camera (forward motion), lies inside or near the image. Algorithms that parameterize via the epipole (e.g., 7-point solver) become poorly conditioned. The Sampson correction to the algebraic error is well-behaved even in this case.
Translation-only degeneracy. Pure translation with no rotation gives , which is symmetric and has a unique right null vector . The 5-point solver does not degenerate in this case, but the 8-point solver can yield inaccurate rotation estimates because the off-diagonal terms are dominated by the skew-symmetric part.
Where it appears
Epipolar geometry is the foundational constraint for any algorithm that uses two or more camera views. It reduces stereo matching from a 2-D search to a 1-D search along epipolar lines, and it is the core relation recovered in the first step of structure-from-motion.
No algorithm pages on this site currently cover stereo reconstruction, triangulation, or multi-view structure-from-motion — the domains where epipolar geometry is used directly. The concept is documented here because it is a prerequisite for those topics and because the homography (documented separately) is the degenerate case of epipolar geometry for planar scenes.
References
- R. Hartley, A. Zisserman. Multiple View Geometry in Computer Vision. 2nd ed. Cambridge University Press, 2004. Chapters 9–11 give the definitive treatment of the fundamental matrix, essential matrix, and estimation algorithms.
- H. C. Longuet-Higgins. "A Computer Algorithm for Reconstructing a Scene from Two Projections." Nature 293, 1981. Introduces the essential matrix and the 8-point algorithm for calibrated cameras.
- R. Hartley. "In Defense of the Eight-Point Algorithm." IEEE TPAMI 19(6), 1997. Establishes data normalization as the key fix that makes the 8-point algorithm reliable.
- D. Nistér. "An Efficient Solution to the Five-Point Relative Pose Problem." IEEE TPAMI 26(6), 2004. The 5-point minimal solver; standard in RANSAC-based pose estimation.
- R. Szeliski. Computer Vision: Algorithms and Applications. 2nd ed. Springer, 2022. §11.1–11.3 cover stereo and two-view geometry with implementation notes.