Minimal Solutions for Panoramic Stitching Given Gravity Prior

Yaqing Ding, Daniel Barath, Zuzana Kukelova

Abstract

Panoramic image stitching on mobile devices often involves complex 3-DOF rotation estimation, requiring numerous point correspondences and significant computational overhead. This paper presents four novel minimal solvers that utilize the gravity vector from onboard IMUs to simplify the problem to 1-DOF. By reducing the required correspondences to as few as one, these solvers achieve exponential speedups in RANSAC processing and improved accuracy in estimating focal length and radial distortion.

Introduction

Traditional panoramic stitching algorithms map a sequence of images into a common reference frame by estimating relative rotation and intrinsic parameters. This process typically requires solving for a full 3-DOF rotation matrix, which necessitates 5 to 6 point correspondences. In robust estimation frameworks like RANSAC, the computational cost increases exponentially with the number of correspondences.

The gravity prior (g) aligns the y-axes of cameras, reducing the relative rotation to a 1-DOF yaw angle.

The authors identify a practical optimization: modern smartphones equipped with Inertial Measurement Units (IMUs) can accurately measure the gravity vector. By using this vector to pre-align the cameras' vertical axes, the relative rotation is reduced to a single parameter—the yaw angle. Surprisingly, this highly practical "gravity prior" had not yet been fully exploited for panoramic stitching.

Proposed Minimal Solvers

The research introduces four solvers tailored to common camera configurations, utilizing algebraic techniques such as the hidden variable trick, Gauss-Jordan elimination, and Sturm sequences:

  1. H1f: For equal focal lengths and no distortion; requires only 1 point correspondence (down from the standard 4).
  2. H2f1f2: For varying focal lengths (zoom) without distortion; requires 2 point correspondences.
  3. H2$\lambda$: For equal focal lengths and radial distortion (wide-angle); requires 2 point correspondences.
  4. H3$\lambda_1\lambda_2$: For varying focal lengths and varying distortion; requires 3 point correspondences.

These solvers are integrated into a Graph-Cut RANSAC (GC-RANSAC) pipeline to robustly handle feature matches and create seamless panoramas.

Experimental Results

The solvers were evaluated using synthetic data, the SUN360 dataset (579,800 image pairs), and a custom dataset of 7,770 image pairs captured with iPhone 6s and 11 Pro devices to test real-world IMU synchronization.

A stitched indoor scene where radial distortion is estimated and corrected by the proposed solvers.

Performance and Accuracy

  • Efficiency: Individual solvers execute in approximately 5 microseconds. The complete GC-RANSAC pipeline typically finishes in under 0.05 seconds for 95–99% of cases, enabling real-time performance.
  • Robustness: The gravity prior remains effective even with IMU noise up to 0.5°, well above the typical 0.06° noise floor of modern sensors. Modeling radial distortion directly inside the minimal solver is crucial for wide-angle smartphone cameras to prevent data loss at image borders.
  • Accuracy: The proposed methods consistently outperformed state-of-the-art 3-DOF solvers (e.g., H4 and H5$\lambda$) in both re-projection error and focal length estimation across all datasets.

Conclusion

By exploiting the ubiquitous gravity sensor in mobile devices, this work significantly simplifies the geometry of panoramic stitching. The resulting minimal solvers are faster, more accurate, and better suited for the wide-angle lenses common in modern smartphones. Future applications include enhanced AR/VR systems and more responsive mobile photography pipelines where IMU data is already ubiquitous.

Summary updated

BibTeX
@misc{ding2020minimal,
  author = {Yaqing Ding and Daniel Barath and Zuzana Kukelova},
  title = {{Minimal Solutions for Panoramic Stitching Given Gravity Prior}},
  year = {2020},
  eprint = {2012.00465},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.00465},
}
Figure