From a computational perspective, equation (9.58) is ill-conditioned, since each column represents a quantity with a different order of magnitude. A normalization step is therefore required beforehand to obtain a correct linear solution. Hartley and Zisserman (HZ04) emphasize that normalization is an essential step in DLT and should not be considered optional.
However, computing the homography in equation (9.59) has the drawback that it does not account for measurement error in the points. In fact, the SVD minimizes a quantity that happens, purely by chance, to resemble the error in the right-hand side (which is not minimized at all in case (9.58)); in any case, the error in the parameter matrix cannot be evaluated. In this specific case, where least squares minimizes a purely mathematical error with no corresponding geometric interpretation, the method is called algebraic least squares (ALS).
Since DLT minimizes algebraic rather than geometric error, normalized DLT, although computationally better, may produce a worse geometric fit to the data. The normalized least-squares version of system (9.58) is called normalized algebraic least squares (NALS).
To overcome the limitation of minimizing algebraic error, it is necessary to return to the original problem rather than transform it into a linear one, and solve it, for example, iteratively using a nonlinear optimizer.
If noise is present in only one of the two images, an appropriate cost function with a geometric interpretation is the Euclidean distance between the measured points and the transformed points.
This is commonly called the transfer error and leads to minimization of the nonlinear cost function
Furthermore, assuming zero-mean isotropic Gaussian noise on the image points, minimizing the transfer error is equivalent to finding the maximum-likelihood estimator (Maximum Likelihood Estimator, MLE).
However, when both data points are affected by noise, cost function (9.64) is not optimal.
The simplest way to extend the previous solution is to minimize both the forward and inverse transfer errors (symmetric transfer error):
| (9.65) |
However, this is still not the optimal solution, at least from a statistical perspective. A maximum-likelihood estimator must correctly account for noise in both data points when present (what Hartley and Zisserman call the Gold Standard). The alternative—and more accurate—solution is to minimize the reprojection error.
This solution greatly increases the problem's dimensionality, since it also aims to identify the optimal, noise-free points
and
(or requires them among the unknowns):
| (9.66) |
In the more general case where the noise covariance is measured for each individual point, the correct metric is the Mahalanobis distance (see Section 2.4):
| (9.67) |
Since this is a nonlinear minimization, an initial solution is required to find the minimum that satisfies the cost equation. The linear solution remains useful as an initial estimate for finding a minimum under a different metric.
The MLE requires one additional auxiliary variable
for each point, as well as iterative techniques to solve the problem.
The Sampson error, described in Section 4.3.8, can be used as an approximation to the geometric distance.
The homography constraint (1.111) relating points in the two images can be written as a two-dimensional manifold
:
| (9.68) |
When there is error in only one image, calculating how the error propagates to the matrix requires computing the Jacobian of the cost function (9.64). Expanding the homography transformation gives (HZ04)
| (9.70) |
| (9.71) |
Paolo medici