From a computational standpoint, Equation (9.57) is ill-conditioned because each column represents a quantity with a different order of magnitude. A prior normalization step is required to obtain a correct solution from the linear formulation. Hartley and Zisserman (HZ04) emphasize that normalization in DLT is an essential step and cannot be regarded as merely optional.
However, computing the homography in Equation (9.58) has the drawback that it does not account for measurement error in the points. In fact, SVD minimizes a quantity that, purely by chance, resembles the error in the known term (which is not what is minimized in case (9.57)), and in any event it is not possible to evaluate the error in the parameter matrix. In this specific case, where a purely mathematical error with no corresponding geometric interpretation is minimized in the least-squares sense, the method is called algebraic least squares (ALS).
Since DLT minimizes an algebraic rather than a geometric error, normalized DLT may produce worse results in terms of geometric data fitting, even though it is computationally superior. The normalized least-squares version of system (9.57) is called normalized algebraic least squares (NALS).
To overcome the limitation of algebraic-error minimization, it is necessary to return to the original problem rather than transform it into a linear one, and instead solve it, for example iteratively, using a nonlinear minimizer.
If noise is present in only one of the two images, an appropriate cost function with a geometric meaning is the Euclidean distance between the measured points and the transformed points.
This is normally called the transfer error and minimizes a nonlinear cost function of the form
However, when both data sets are affected by noise, cost function (9.63) is not optimal.
The simplest way to extend the previous solution is to minimize both the direct transfer error and the inverse transfer error (symmetric transfer error):
| (9.64) |
This is not yet the optimal solution, at least from a statistical standpoint. A maximum-likelihood estimator must correctly account for the noise in both data sets when present (what Hartley and Zisserman call the Gold Standard). The alternative solution, and in fact the more accurate one, consists in minimizing the reprojection error.
This solution greatly increases the dimensionality of the problem because it also aims to identify, or includes among the unknowns, the optimal noise-free points
and
:
| (9.65) |
In the even more general case in which the noise covariance is measured for each individual point, the correct metric is the Mahalanobis distance (see Section 2.4):
| (9.66) |
Since this is a nonlinear minimization, an initial solution is nevertheless required from which to search for the minimum satisfying the cost equation. The linear solution remains useful and is used as the initial estimate for finding a minimum under a different metric.
The MLE estimator requires one additional auxiliary variable
for each point, as well as iterative techniques to solve the problem.
The Sampson error can be used as an approximation of the geometric distance; see Section 4.3.8.
The homographic constraint (1.111) relating the points in the two images can be written in the form of a two-dimensional
variety:
| (9.67) |
In the case of error in a single image, to determine how the error propagates to matrix , it is necessary to calculate the Jacobian of cost function (9.63). Writing the homographic transformation explicitly gives (HZ04)
| (9.69) |
| (9.70) |
Paolo medici