L1 rotation averaging using the Weiszfeld algorithm

Richard I. Hartley, Khurrum Aftab, Jochen Trumpf

Abstract

Robustly averaging 3D rotations is a fundamental challenge in computer vision, particularly in the presence of outliers. This paper presents a novel approach that applies the classical Weiszfeld algorithm to the $L_1$ norm on the $SO(3)$ rotation manifold. By performing iterative updates in the tangent space, the method achieves a simple, fast, and provably convergent solution that significantly outperforms traditional $L_2$ averaging in robustness.

Introduction

In tasks such as Structure-from-Motion (SfM) and multi-camera calibration, estimating a "mean" rotation from noisy data is essential. While $L_2$ averaging (minimizing squared distances) is common, it is highly sensitive to outliers. A single erroneous estimate can significantly bias the result.

The $L_1$ mean, or geometric median, offers superior robustness, theoretically handling up to 50% outliers. However, the curved nature of the rotation manifold $SO(3)$ makes optimization non-trivial, often requiring complex line-search techniques. This work introduces a streamlined Weiszfeld-based approach to compute the $L_1$ average efficiently.

Methodology

The authors adapt the Weiszfeld algorithm—originally designed for Euclidean space—to the $SO(3)$ manifold.

Tangent Space Updates

The algorithm avoids direct optimization on the curved manifold by mapping rotations to the tangent space (a 3D linear approximation) using the Log map. After computing updates in this flat space, the result is mapped back to the manifold via the Exp map.

The Weiszfeld Step

In the tangent space, the update is a weighted average where weights are inversely proportional to the distance to each target rotation. This specific weighting scheme ensures convergence without the need for computationally expensive line searches.

Convergence of the iterative Weiszfeld algorithm on the rotation manifold.

Scaling to Multiple Rotations

For multi-camera systems, the authors propose a "sweep" method. Each camera's orientation is updated sequentially using a single Weiszfeld iteration per pass, efficiently solving for absolute orientations in a graph of relative rotations.

Experimental Evaluation

The method was evaluated on the Notre Dame image set, a benchmark featuring 595 images and over 42,000 overlapping pairs. A high-quality bundle-adjusted reconstruction served as the ground truth.

Key Results

The $L_1$ averaging method achieved a median rotation error of 0.82 degrees on the Notre Dame dataset. As shown in the comparative analysis, $L_1$ averaging consistently produces lower errors and more stable results than $L_2$ across various metrics.

Comparison of L1 vs L2 averaging across different error metrics (E-bundled, E-algebraic, E-Sampson, and E-5pt). L1 averaging (1) consistently shows lower median errors and tighter distributions than L2 (2).

The algorithm is also highly efficient, processing the entire 595-camera dataset in approximately 3 minutes on standard hardware. This speed makes it an excellent initialization for subsequent Bundle Adjustment.

Discussion and Future Work

While the algorithm is provably optimal for single rotation averaging, global optimality for the multiple rotation case remains an open theoretical question, though it performs well in practice. Future work includes integrating this robust rotation averaging into full SfM pipelines that simultaneously handle camera translations.

Conclusion

By leveraging the Weiszfeld algorithm in the tangent space of $SO(3)$, this paper provides a robust and efficient tool for rotation averaging. Its simplicity and performance make it a compelling alternative to traditional $L_2$ methods in real-world vision applications.

Summary updated

BibTeX
@inproceedings{hartley2011l,
  author = {Richard I. Hartley and Khurrum Aftab and Jochen Trumpf},
  title = {{L1 rotation averaging using the Weiszfeld algorithm}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2011},
  doi = {10.1109/cvpr.2011.5995745},
}
Figure