Inertial sensors aided image alignment and stitching for panorama on mobile phones

Qingxuan Yang, Chengu Wang, Yuan Gao, Hang Qu, Edward Yi Chang2011

TL;DR

This paper introduces a method to significantly speed up panorama creation on mobile phones by leveraging their built-in inertial sensors (accelerometers and gyroscopes). By using these sensors to predict camera movement, the system drastically reduces the search space for image alignment, leading to faster and more robust stitching, even with non-ideal camera movements.

What Problem Does This Paper Address?

Creating high-quality panoramas on mobile phones is challenging. Traditional methods rely on precise, slow camera movements and computationally intensive algorithms to align and stitch images. This often leads to a poor user experience, especially when users exhibit slight camera shakes, rotations, or uneven panning. Existing solutions for mobile devices struggle with limited computational resources and often make restrictive assumptions about camera motion, compromising usability. This paper aims to bridge this gap by using the increasingly common inertial sensors in smartphones to assist and accelerate the panorama stitching process, making it more practical and user-friendly.

Methods

The core of this work lies in using inertial sensor data to predict camera motion and aid image alignment. The proposed pipeline involves several key steps:

  • Sensor Calibration: Accelerometers and gyroscopes are first calibrated to improve their accuracy. This involves techniques like Allan Variance for error elimination and a novel "topology calibration" for gyroscopes to determine scale factor errors and biases.
  • Camera Path Tracking:
    • Orientation: Gyroscope data is used to track the phone's orientation, represented by quaternions for numerical stability and to avoid gimbal lock.
  • Displacement: Accelerometer data, after being transformed into an absolute reference frame and having gravity removed, is integrated twice to estimate displacement. This integration process is refined with a three-step pipeline:
  • High Pass Filter: Removes residual gravity influence on horizontal axes caused by slight orientation errors.
  • Zero Velocity Revision: Corrects for accumulated velocity drift by assuming zero velocity during photo capture (when the camera is relatively still).
  • Noise Gate: Further refines displacement by setting velocity to zero when it falls below a small threshold, preventing drift during static periods.
  • Prediction of Displacement between Photos: The tracked camera path (position and orientation) is used to predict the displacement between consecutive photos. This prediction significantly narrows down the search space for image alignment algorithms.
  • Alignment Speed Up: Both pixel-based and feature-based alignment methods benefit from this predicted displacement. Instead of searching the entire image for correspondences, the algorithms can focus on a much smaller, predicted overlapping region, drastically reducing computation time.

Datasets

Not discussed in the paper. The experiments were conducted using a Nexus S smartphone and demonstrated with various photo sets, but no specific public datasets were mentioned.

Key Insights and Ideas

  • Inertial Sensors as a "Free" Alignment Aid: The paper highlights that modern smartphones are already equipped with inertial sensors, making this approach cost-effective and readily deployable without requiring additional hardware.
  • Predictive Alignment is Key: The most significant insight is that predicting camera motion before detailed image analysis dramatically speeds up alignment. This shifts the computational burden from complex image matching to sensor data processing, which is generally faster.
  • Robustness to Non-Ideal Motion: By using sensor data, the system becomes more tolerant to user errors like shaky hands, uneven panning, or slight rotations, which are common pitfalls in manual panorama creation.
  • Synergy of Sensor Data and Image Processing: The paper demonstrates a powerful synergy where sensor data provides coarse alignment information, allowing image processing algorithms to focus on fine-tuning and achieving higher accuracy in a reduced search space.

Key Results

  • Significant Speed Improvements: Table 1 shows substantial time savings across various panorama creation scenarios. For instance, a pixel-based method achieved a 77% reduction in time (from 7.3s to 1.7s) when using sensor predictions. SIFT-based methods also saw considerable speedups, ranging from 7.5% to 43%.
  • Improved Accuracy: The sensor-aided alignment leads to more accurate stitching, as evidenced by the comparison of estimated camera paths with those derived from image alignment algorithms in the experimental results.
  • Effective Camera Path Tracking: The paper demonstrates that the inertial sensor pipeline can accurately track camera movement, providing reliable input for the alignment process.

Limitations and Future Work

  • Limitations:
    • Complex Motion: The current approach is most effective for translational motion. Complicated camera movements involving significant rotation, especially when combined with close-up shots, can lead to larger errors in displacement prediction due to the difficulty in precisely isolating gravity from acceleration.
  • Cumulative Errors: While manageable, the integration process for displacement calculation can accumulate errors over time, especially for long sequences of photos.
  • Future Work:
    • Handling Complex Motion: Developing better approaches to compute orientation and displacement in cases of complicated motion (e.g., significant rotation) is a key area for future research.
  • Real-time Performance: Further optimizing the running time for real-time panorama creation, potentially by using smaller image sizes or different feature-based methods (like SURF), is also suggested.
  • Improved Calibration: While calibration is addressed, further improvements could always enhance sensor accuracy.

Summary updated

Abstract

In this paper, we propose using signals collected from inertial sensors on cameras to speed up image alignment for panorama construction. Inertial sensors including accelerometers and gyroscopes are first calibrated to improve sensing accuracy. These sensors are then used to estimate the position and orientation of each captured image frame. By knowing the relative displacement of image frames, alignment can be performed with good accuracy and computational efficiency. Through examples we illustrate the effectiveness of inertial-sensor assisted panorama.
BibTeX
@misc{yang2011inertial,
  author = {Qingxuan Yang and Chengu Wang and Yuan Gao and Hang Qu and Edward Yi Chang},
  title = {{Inertial sensors aided image alignment and stitching for panorama on mobile phones}},
  year = {2011},
  doi = {10.1145/2025876.2025882},
}
Figure