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 criterion for estimating the matrix can be formulated as the minimization of a cost function
The epipolar constraint (10.48) can also be rewritten as
| (10.53) |
Collecting all the constraints yields a homogeneous system of the form
| (10.56) |
The procedure for obtaining the Essential Matrix is analogous: it is the solution of a system
of the form
An additional constraint must always be added to the constraints expressed in these homogeneous systems, for example
, 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.
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:
| (10.60) |
| (10.61) |
Since the Essential Matrix is defined up to a scale factor, it is often normalized as
| (10.62) |
An admissible Essential Matrix also satisfies the cubic trace constraint (Demazure, 1988):
| (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.
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
or
, 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 , 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,
and
, associated with two matrices,
and
. Among the possible solutions, a matrix
of rank 2 must be found, which can be enforced by imposing
, a third-degree nonlinear equation in
.
In this case,
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.
Under generic conditions, and assuming the five constraints are linearly independent, the matrix 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 obtained from the SVD, that is:
To obtain these unknowns, the constraints
| (10.65) |
The need to solve a nonlinear system makes this algorithm significantly more complex than the methods presented in section 10.4.2.
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 and
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
) in the new coordinate systems
and
, respectively.
We therefore define two transformation matrices,
and
, such that
| (10.66) |
| (10.67) |