Rolling-Shutter Modelling for Direct Visual-Inertial Odometry

David Schubert, Nikolaus Demmel, Lukas von Stumberg, Vladyslav Usenko, Daniel Cremers

Abstract

We present a direct visual-inertial odometry (VIO) method which estimates the motion of the sensor setup and sparse 3D geometry of the environment based on measurements from a rolling-shutter camera and an inertial measurement unit (IMU). The visual part of the system performs a photometric bundle adjustment on a sparse set of points. This direct approach does not extract feature points and is able to track not only corners, but any pixels with sufficient gradient magnitude. Neglecting rolling-shutter effects in the visual part severely degrades accuracy and robustness of the system. In this paper, we incorporate a rolling-shutter model into the photometric bundle adjustment that estimates a set of recent keyframe poses and the inverse depth of a sparse set of points. IMU information is accumulated between several frames using measurement preintegration, and is inserted into the optimization as an additional constraint between selected keyframes. For every keyframe we estimate not only the pose but also velocity and biases to correct the IMU measurements. Unlike systems with global-shutter cameras, we use both IMU measurements and rolling-shutter effects of the camera to estimate velocity and biases for every state. Evaluation shows that the proposed method outperforms a system where rolling shutter is not modelled and achieves similar accuracy to the global-shutter method on global-shutter data.

Introduction

Most visual odometry (VO) and visual-inertial odometry (VIO) algorithms are designed with the assumption of a "global shutter," where every pixel in an image frame is captured at the exact same moment. However, the CMOS sensors ubiquitous in consumer-grade hardware—such as smartphones, drones, and automotive cameras—typically utilize a rolling shutter (RS). These sensors capture images row-by-row with a slight temporal delay between them.

When the camera undergoes rapid motion, this row-wise delay manifests as significant geometric distortions: straight lines appear curved, and objects appear warped. For "direct" VIO methods, which track motion by comparing raw pixel intensities (photoconsistency) rather than extracted features, these distortions are catastrophic. Neglecting rolling-shutter effects leads to massive trajectory drift, inaccurate 3D reconstructions, and frequent system failure.

The difference between global-shutter (left) and rolling-shutter (right) images during fast motion. Note the distorted propeller.

Methodology

To address these challenges, we propose a system that extends Direct Sparse Odometry (DSO) with tightly coupled Inertial Measurement Unit (IMU) integration, specifically optimized for rolling-shutter sensors.

Rolling-Shutter Photometric Bundle Adjustment

Instead of estimating a single discrete pose for an entire frame, the system employs a constant-twist interpolation model. By modeling the camera's motion as a continuous "twist" (comprising linear velocity and rotation rate), the system can calculate a precise, unique pose for every individual row of pixels based on its specific capture time. This allows the photometric error to be calculated accurately even under high-velocity motion.

IMU Coupling and Twist Energy

A core novelty of our approach is the "twist energy" term. High-frequency IMU measurements (accelerometer and gyroscope) are used to provide a strong physical prior for the continuous motion parameters. This ensures that the estimated "twist" used to correct the rolling-shutter distortion is physically consistent with the actual forces experienced by the sensor rig.

Dual-World Optimization

The system maintains two distinct coordinate systems: a "non-metric" world for visual tracking (where scale is initially unknown) and a "metric" world for IMU factors. This architecture allows the system to initiate tracking immediately, maintaining robustness even before the metric scale of the environment is fully resolved by the IMU.

Experimental Setup and Datasets

Because existing VIO benchmarks lacked synchronized rolling-shutter and global-shutter data, we introduced a new, publicly available dataset. The hardware rig features two cameras (one RS, one GS) hardware-synchronized with a Bosch IMU. High-precision ground truth trajectory data was captured using an OptiTrack motion capture system across ten indoor sequences with varying speeds and complex motion patterns.

The custom sensor setup used to record the new dataset, featuring synchronized RS and GS cameras.

Key Results and Discussion

Our evaluation demonstrates that explicit rolling-shutter modeling is not just an improvement, but a necessity for direct VIO systems.

  • Stability: On rolling-shutter data, baseline global-shutter methods frequently became numerically unstable and failed. Our proposed method remained stable across all test sequences.
  • Accuracy: In high-speed sequences, error was reduced by orders of magnitude. For instance, in one challenging sequence, the baseline error of 482 meters was reduced to just 0.246 meters with RS modeling.
  • Parity with Global Shutter: The system's accuracy on rolling-shutter data was found to be nearly identical to the performance of state-of-the-art methods running on more expensive global-shutter hardware.

Interestingly, we found that rolling-shutter images can sometimes provide more information than global-shutter ones. Because rows are captured at different times, a single image frame contains "hidden" velocity information that our model successfully exploits to better estimate sensor biases.

Conclusion

By integrating a continuous-time motion model with IMU data, we have shown that it is possible to achieve high-end tracking accuracy on low-cost rolling-shutter sensors. While the computational cost of this complex photometric bundle adjustment remains a challenge for real-time mobile deployment, the robustness gains are significant. Future work will explore more flexible motion models, such as B-splines, to handle extremely high rotational accelerations.

Summary updated

BibTeX
@misc{schubert2019rolling,
  author = {David Schubert and Nikolaus Demmel and Lukas von Stumberg and Vladyslav Usenko and Daniel Cremers},
  title = {{Rolling-Shutter Modelling for Direct Visual-Inertial Odometry}},
  year = {2019},
  eprint = {1911.01015},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.01015},
}
Figure