Subsections

Determining the Matrices

The Essential Matrix can be obtained in closed form from the relative poses of the sensors. If the intrinsic parameters of the cameras are known, the Fundamental Matrix can then be derived.

The most common application of the Essential Matrix, however, is to recover the relative pose of the cameras from a set of corresponding points. If the intrinsic parameters are known, the Essential Matrix can be estimated (and the Fundamental Matrix derived from it); if no camera parameters are known, the Fundamental Matrix can be estimated directly.

The Eight-Point Algorithm

The criterion for estimating the matrix $\mathbf{F}$ can be formulated as the minimization of a cost function

\begin{displaymath}
\min_\mathbf{F} \sum_{i=1}^n \left( \mathbf{p}^{\top}_{2,i} \mathbf{ F } \mathbf{p}_{1,i} \right)^2
\end{displaymath} (10.52)

subject to additional constraints, this time concerning the structure of $\mathbf{F}$.

The epipolar constraint (10.48) can also be rewritten as

\begin{displaymath}
(\mathbf{p}_2 \otimes \mathbf{p}_1)^{\top} \operatorname{vec}(\mathbf{F}) = 0
\end{displaymath} (10.53)

using the compact notation afforded by the Kronecker product $\otimes$10.3, or alternatively as
\begin{displaymath}
\mathbf{u}_i \mathbf{f} = 0
\end{displaymath} (10.54)

in a more explicit form, by defining
\begin{displaymath}
\begin{array}{rl}
\left( \mathbf{p}_2 \otimes \mathbf{p}_1 \...
...,3} ,
f_{3,1} , f_{3,2} , f_{3,3}
\right)^{\top}
\end{array}\end{displaymath} (10.55)

where $\mathbf{p}_{1,i}=(x_1,y_1,1)^\top$ and $\mathbf{p}_{2,i}=(x_2,y_2,1)^\top$ are expressed in homogeneous image coordinates. This formulation makes it possible to identify a technique for obtaining the elements of $\mathbf{F}$ as the solution of a homogeneous linear system formed by constraints of the type given in equation (10.54).

Collecting all the constraints $\mathbf{u}_i$ yields a homogeneous system of the form

\begin{displaymath}
\mathbf{U} \mathbf{f} = 0
\end{displaymath} (10.56)

with $n$ equations in 9 unknowns.

The procedure for obtaining the Essential Matrix is analogous: it is the solution of a system $\mathbf{n}_i \mathbf{e}=0$ of the form

\begin{displaymath}
\begin{array}{l}
\mathbf{n}_i = (
x_{1} x_{2}, y_{1} x_{2...
..._{2,2} , e_{2,3} ,
e_{3,1} , e_{3,2} , e_{3,3}
)
\end{array}\end{displaymath} (10.57)

with $\mathbf{m}_{1,i}=(x_1,y_1,z_1)$ and $\mathbf{m}_{2,i}=(x_2,y_2,z_2)$. With all the constraints $\mathbf{n}_i$, this is a homogeneous system of the form
\begin{displaymath}
\mathbf{N} \mathbf{e} = 0
\end{displaymath} (10.58)

In fact, when homogeneous coordinates are used, systems (10.55) and (10.57) are algorithmically equivalent.

An additional constraint must always be added to the constraints expressed in these homogeneous systems, for example $\Vert \mathbf{f} \Vert =1 $, which is normally already satisfied by linear solvers for homogeneous systems. This algorithm is therefore called the eight-point algorithm, since at least 8 points are required to determine the solution. Additional constraints needed to enforce the matrices’ actual degrees of freedom cannot, however, be expressed in linear form.


Constraint Enforcement

Because of noise, the matrices obtained from the linear system generally do not satisfy the rank-2 requirement; in the case of the Essential Matrix, they also fail to satisfy the constraint that two singular values be equal and the third be zero.

One way to address this problem is to find the matrix closest to the one returned by the linear system that satisfies the rank constraint. This can be achieved, for example, by performing an SVD followed by a recomposition, as suggested by Tsai, Huang, and Hartley:

\begin{displaymath}
\begin{array}{rl}
\mathbf{F} &= \mathbf{U}\diag (r,s,t)\ma...
...bf{F}' &= \mathbf{U}\diag (r,s,0)\mathbf{V}^{\top}
\end{array}\end{displaymath} (10.59)

This procedure is called constraint enforcement. Compared with the Fundamental Matrix, the Essential Matrix has the additional constraint that its two nonzero singular values be equal. Let
\begin{displaymath}
\mathbf{E} = \mathbf{U}\diag (r,s,t)\mathbf{V}^{\top}
\end{displaymath} (10.60)

be the SVD of the estimate. The admissible Essential Matrix closest in Frobenius norm is then
\begin{displaymath}
\mathbf{E}' = \mathbf{U} \diag \!\left( \frac{r+s}{2}, \frac{r+s}{2}, 0 \right) \mathbf{V}^{\top}.
\end{displaymath} (10.61)

Since the Essential Matrix is defined up to a scale factor, it is often normalized as

\begin{displaymath}
\mathbf{E}' = \mathbf{U} \diag (1,1,0) \mathbf{V}^{\top},
\end{displaymath} (10.62)

which is called the normalized Essential Matrix.

An admissible Essential Matrix also satisfies the cubic trace constraint (Demazure, 1988):

\begin{displaymath}
\mathbf{E}\mathbf{E}^{\top}\mathbf{E} - \frac{1}{2} \trace \!\left( \mathbf{E}\mathbf{E}^{\top} \right) \mathbf{E} = 0.
\end{displaymath} (10.63)

The matrices obtained through this constraint-enforcement procedure satisfy all the requirements for Fundamental or Essential Matrices, but they do not minimize the original constraints algebraically, let alone geometrically.

The Seven-Point Algorithm

Algorithms that use fewer than 8 points to estimate an Essential or Fundamental Matrix are based, more or less, on the same principle: they compute the multidimensional kernel of $\mathbf{U}$ or $\mathbf{N}$, since the Fundamental or Essential Matrix must belong to this space, and then enforce some constraints specific to the problem.

It is relatively straightforward to obtain a Fundamental Matrix nonlinearly from just 7 points, given that the matrix $\mathbf{U}$, formed from the elements in equation (10.55), must have rank 7, since the Fundamental Matrix has 7 degrees of freedom. Solving system (10.55), formed from (at least) 7 points, yields a two-dimensional subspace spanned by two basis vectors, $\mathbf{f}_1$ and $\mathbf{f}_2$, associated with two matrices, $\mathbf{F}_1$ and $\mathbf{F}_2$. Among the possible solutions, a matrix $\mathbf{F} = \alpha \mathbf{F}_1 + (1 - \alpha) \mathbf{F}_2$ of rank 2 must be found, which can be enforced by imposing $\det \mathbf{F} = 0$, a third-degree nonlinear equation in $\alpha$. In this case, $\alpha$ can have 1 or 3 real solutions. If there are 3 real solutions, all three must be evaluated against the data to identify the most plausible one.

The Five-Point Algorithm

With fewer than 7 points, algorithms are available only for estimating the Essential Matrix. The Essential Matrix has just 5 degrees of freedom and, in theory, can be estimated from correspondences between only 5 points (Nis04). The five-point algorithm is in fact the standard method for estimating the Essential Matrix, although its implementation is extremely complex.

Under generic conditions, and assuming the five constraints are linearly independent, the matrix $\mathbf{N}$ has rank 5 and therefore a four-dimensional null space.

The Essential Matrix must therefore be formed as a linear combination of the last four columns of the matrix $V$ obtained from the SVD, that is:

\begin{displaymath}
\mathbf{E} = x \mathbf{X} + y \mathbf{Y} + z \mathbf{Z} + \mathbf{W}
\end{displaymath} (10.64)

with $\left(\mathbf{X}, \mathbf{Y}, \mathbf{Z}, \mathbf{W}\right)$ obtained by reshaping the last four columns of the matrix $\mathbf{V}$ from the singular value decomposition (SVD) of $\mathbf{N}$ into matrices $3 \times 3$, and with $(x,y,z)$ unknowns.

To obtain these unknowns, the constraints

\begin{displaymath}
\begin{array}{l}
\det \mathbf{E} = 0 \\
\mathbf{E}\mathbf...
...thbf{E}\mathbf{E}^{\top} \right) \mathbf{E} = 0 \\
\end{array}\end{displaymath} (10.65)

must be satisfied, which is equivalent to a system of 10 third-degree polynomials in 3 unknowns.

The need to solve a nonlinear system makes this algorithm significantly more complex than the methods presented in section 10.4.2.

System Conditioning

Generating the Essential and Fundamental Matrices using the SVD technique and then enforcing their respective constraints (rank-2 structure for the Fundamental Matrix and equality of the two nonzero singular values for the Essential Matrix) is highly sensitive to noise.

The linear system obtained by assembling the constraints in equation (10.54) is often ill-conditioned. This occurs when the coefficients of the system matrix have widely differing magnitudes, making the solution particularly sensitive to noise and numerical errors. Hartley’s method (Har95) improves the conditioning of the problem by normalizing the point coordinates.

The coordinates $\mathbf {p}_1$ and $\mathbf {p}_2$ are translated separately so that their centroids are at the origin, and then rescaled so that the mean Euclidean distance of the points from the origin is set to a predefined value (typically $\sqrt{2}$) in the new coordinate systems $\tilde{\mathbf{p}}_1$ and $\tilde{\mathbf{p}}_2$, respectively. We therefore define two transformation matrices, $\mathbf{T}_1$ and $\mathbf{T}_2$, such that

\begin{displaymath}
\begin{array}{l}
\tilde{\mathbf{p}}_1 = \mathbf{T}_1 \math...
...ilde{\mathbf{p}}_2 = \mathbf{T}_2 \mathbf{p}_2 \\
\end{array}\end{displaymath} (10.66)

This makes it possible to estimate the compatible Fundamental Matrix $\tilde{\mathbf{F}}$
\begin{displaymath}
\mathbf{p}^{\top}_{2} \mathbf{ F } \mathbf{p}_1 = \tilde{\m...
...thbf{p}}_2^{\top} \tilde{\mathbf{F}} \tilde{\mathbf{p}}_1 = 0
\end{displaymath} (10.67)

and then recover the original matrix $\mathbf{F} = \mathbf{T}^{\top}_2 \tilde{\mathbf{F}} \mathbf{T}_1$.



Footnotes

...#tex2html_wrap_inline17591#10.3
For convenience, $\operatorname{vec}(\mathbf F)$ here denotes the row-wise vectorization of the matrix.
Paolo medici
2026-10-19