Several techniques can be used to obtain an optimal estimate of the rigid rotation and translation between points in the same space.
An optimal estimate here means a maximum-likelihood estimate, where the observation noise is entirely additive in the space
in which the points lie.
Consider two point sets
and
related by
To solve the optimal problem
of transforming all points from
to
, a least-squares criterion is required to optimize a cost function of the form
A notable result concerning the translation vector can be obtained by applying the standard derivatives
to Equation (1.105) and setting them to zero:
| (1.106) |
The optimal rotation must therefore minimize
One technique for computing the rotation uses principal components (see Section 2.9.1).
The principal components extracted separately from each point set form a basis of the space. A rotation that aligns these bases can be found: given the matrices of column eigenvectors and
,
is obtained directly.
However, there may be multiple solutions, each of which must be checked. Moreover, noise can make estimating the axes using PCA extremely unreliable; for example, if the distribution is circular, any estimate is impossible.
The best way to minimize (1.107) is to minimize—or, rather, maximize—
| (1.108) |
| (1.109) |
| (1.110) |
This solution is much more stable than the PCA-based solution and is valid for all . Special care is required only in the two- and three-dimensional cases to handle possible reflections (in which case the determinant of the resulting matrix may be negative).
The “disadvantage” of the SVD-based technique compared with the PCA-based technique is that it requires correct correspondences between points in the two distributions.
Combining the two techniques with an iterative approach gives the Iterative Closest Point (ICP) algorithm.
Paolo medici