Estimating Rotations and Translations

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 $\xi_i$ is entirely additive in the space $\mathbb{R}^{n}$ in which the points lie.

Consider two point sets $\left\{ \prescript{1}{}{\mathbf{x}}_i \right\}$ and $\left\{ \prescript{2}{}{\mathbf{x}}_i \right\}$ related by

\begin{displaymath}
\prescript{2}{}{\mathbf{x}}_i = \prescript{2}{}{\mathbf{R}}_...
...cript{1}{}{\mathbf{x}}_i + \prescript{2}{}{\mathbf{t}} + \xi_i
\end{displaymath} (1.104)

as in Equation (1.100), but with the noise vector $\xi_i$.

To solve the optimal problem $(\hat{\mathbf{R}}, \hat{\mathbf{t}})$ of transforming all points from $\mathbf{x}^{1}$ to $\mathbf{x}^{2}$, a least-squares criterion is required to optimize a cost function of the form

\begin{displaymath}
S = \sum_i w_i \Vert \left( \prescript{2}{}{\mathbf{R}}_1 \...
...{}{\mathbf{t}} \right) - \prescript{2}{}{\mathbf{x}}_i \Vert^2
\end{displaymath} (1.105)

where $w_i$ are any priors associated with each sample. The nonlinear least-squares solution clearly suffers from local minima.

A notable result concerning the translation vector can be obtained by applying the standard derivatives $0 = \partial S / \partial \mathbf{t}$ to Equation (1.105) and setting them to zero:

\begin{displaymath}
\hat{\mathbf{t}} = \bar{\prescript{2}{}{\mathbf{x}}} - \hat{\mathbf{R}} \bar{\prescript{1}{}{\mathbf{x}}}
\end{displaymath} (1.106)

Thus, given $\mathbf{R}$, the optimal translation can be found immediately; conversely, it is sufficient to estimate only the rotation $\hat{\mathbf{R}}$ to solve the pose estimation problem. This result also has an intuitive explanation: after a rigid transformation, the centroids of the two point sets must satisfy the relation in Equation (1.104).

The optimal rotation $\mathbf{R}$ must therefore minimize

\begin{displaymath}
S = \sum_i w_i \Vert \prescript{2}{}{\mathbf{R}}_1 \prescript{1}{}{\mathbf{p}}_i - \prescript{2}{}{\mathbf{p}}_i \Vert^2
\end{displaymath} (1.107)

where $\mathbf{p}_i = \mathbf{x}_i - \bar{\mathbf{x}}$ has been defined. Thus, any pose registration problem in $n$ dimensions reduces to a problem with $n$ DOF.

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 $\mathbf{R}_1$ and $\mathbf{R}_2$, $\mathbf{R} = \mathbf{R}_2 \left( \mathbf{R}_1 \right)^{\top}$ 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—

\begin{displaymath}
\begin{array}{l}
\argmin_{\mathbf{R}} \sum_i w_i \Vert \pre...
...\mathbf{P}_1 \mathbf{W} \mathbf{P}^{\top}_2 \right)
\end{array}\end{displaymath} (1.108)

That is, minimizing the system of equations (1.105) is equivalent to maximizing the trace of matrix $\hat{\mathbf{R}} \mathbf{H}$, where $\mathbf{H}$ is the correlation matrix between the two point clouds, defined as
\begin{displaymath}
\mathbf{H} = \cov (\prescript{1}{}{\mathbf{x}}, \prescript{...
...athbf{x}}_i - \bar{\prescript{2}{}{\mathbf{x}}} \right)^{\top}
\end{displaymath} (1.109)

It can be shown that the matrix $\hat{\mathbf{R}}$ that maximizes the trace of $\hat{\mathbf{R}} \mathbf{H}$ is
\begin{displaymath}
\hat{\mathbf{R}} = \mathbf{V} \mathbf{U}^{\top}
\end{displaymath} (1.110)

where $\mathbf{H} = \mathbf{U} \Sigma \mathbf{V}^{\top}$ has been decomposed using singular value decomposition. This algorithm was first described in (Kab76), rediscovered in (AHB87), and further improved in (Ume91) (in particular, for the case $\det\hat{\mathbf{R}}=-1$). It is commonly known as the Kabsch–Umeyama algorithm.

This solution is much more stable than the PCA-based solution and is valid for all $n > 3$. 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
2026-10-19