Ctrl-VIO: Continuous-Time Visual-Inertial Odometry for Rolling Shutter Cameras

Xiaolei Lang, Jiajun Lv, Jianxin Huang, Yukai Ma, Yong Liu, Xingxing Zuo

Most of us have seen the "jello effect" in videos taken from a vibrating drone or a shaky smartphone—straight poles appearing curved or buildings leaning unnaturally. This is the Rolling Shutter (RS) effect, a byproduct of how modern CMOS sensors capture images row-by-row rather than all at once. For robots and augmented reality (AR) systems trying to navigate using these cameras, this distortion isn't just an eyesore; it’s a mathematical nightmare that can lead to total system failure.

In their paper, "Ctrl-VIO: Continuous-Time Visual-Inertial Odometry for Rolling Shutter Cameras," Xiaolei Lang and colleagues present a robust solution that treats camera motion not as a series of snapshots, but as a smooth, continuous curve.

TL;DR

Ctrl-VIO is a continuous-time visual-inertial odometry system that uses B-splines to model trajectory, allowing it to precisely account for the row-by-row exposure of rolling shutter cameras. By integrating online calibration for sensor "line delay" and a novel marginalization strategy, it significantly outperforms state-of-the-art methods in both accuracy and robustness.

What Problem Does This Paper Address?

Visual-Inertial Odometry (VIO) combines camera images with Inertial Measurement Unit (IMU) data to track a device's position and orientation. Most VIO algorithms assume a Global Shutter (GS), where every pixel in a frame is captured at the exact same moment.

However, consumer-grade electronics (like your phone) use Rolling Shutter (RS) cameras to save cost. In an RS camera, there is a tiny "line delay" between the exposure of one row and the next. If the camera moves quickly, the top of the image is captured at a different physical location than the bottom. Standard VIO treats the whole distorted image as one "pose," leading to massive errors. While some fixes exist (like assuming constant velocity between frames), they often fail during aggressive maneuvers or high-acceleration movements.

Methods

The authors move away from the "discrete-time" approach (pose at time $t_1$, pose at time $t_2$) and adopt a continuous-time trajectory representation.

  1. B-Spline Parameterization: The trajectory is modeled using cumulative B-splines. This allows the system to query the exact camera pose for any specific row of an image based on its precise timestamp.
  2. Online Line Delay Calibration: The "line delay" (the time difference between rows) is often a hardware secret. Ctrl-VIO treats this delay as a state variable, calibrating it on the fly during normal operation.
  3. Sliding-Window Marginalization: To keep the computational load manageable, the system uses a sliding window of recent frames. The authors developed a specific strategy to "marginalize" (retire) old control points of the spline while preserving their probabilistic influence on the current state.
  4. IMU Integration: They compared two strategies for fusing IMU data. Strategy 1 (pre-integration) proved more effective than Strategy 2 (using raw IMU factors) because it better constrains the spline's control points during the optimization process.

Datasets

The authors evaluated Ctrl-VIO on three distinct benchmarks:

  • WHU-RSVI: A synthetic dataset with ground truth for various motion speeds (fast, medium, slow).
  • TUM-RSVI: A real-world handheld dataset using a GS camera and an RS camera simultaneously for comparison.
  • SenseTime-RSVI: A real-world dataset collected via a smartphone (Xiaomi Mi 8) in more "natural," smoother motion sequences.

Key Insights and Ideas

  • The Power of Continuity: By using B-splines, the system naturally handles asynchronized data. The IMU might run at 400Hz while the camera runs at 30Hz, and each of the 1080 rows in a frame has its own unique timestamp. A continuous model handles this "messy" timing elegantly.
  • Self-Correction is Key: The ability to calibrate line delay online means the system can adapt to different hardware or even changes in camera configurations (like exposure settings) without needing a specialized calibration target (like a checkerboard).
  • Marginalization Matters: In continuous-time systems, "retiring" old data is harder than in discrete systems because splines are mathematically linked across time. The paper's "Strategy 1" for marginalization ensures that the system stays accurate without the "computational explosion" that usually plagues continuous-time filters.

Key Results

  • Superior Accuracy: On the WHU-RSVI "fast" sequence, Ctrl-VIO achieved an Absolute Pose Error (APE) of 0.034m, compared to 0.149m for RS-VINS-Mono (the previous state-of-the-art).
  • Robustness to Speed: While standard GS methods (like ORB-SLAM3) saw their error rates skyrocket as motion speed increased, Ctrl-VIO remained stable.
  • Rapid Convergence: The online calibration for line delay typically converged to a stable, accurate value within just one second of motion.

Limitations and Future Work

The primary drawback is computational efficiency. Currently, Ctrl-VIO cannot run in real-time on standard hardware. The optimization process for continuous-time splines is much heavier than discrete-time EKF or bundle adjustment.

The authors suggest that future work should explore non-uniform B-splines. Currently, control points are distributed evenly over time. Using fewer points during slow motion and more points during "violent" motion could significantly reduce the math load without sacrificing the accuracy that makes Ctrl-VIO so effective.

Summary updated

BibTeX
@article{lang2022ctrl,
  author = {Xiaolei Lang and Jiajun Lv and Jianxin Huang and Yukai Ma and Yong Liu and Xingxing Zuo},
  title = {{Ctrl-VIO: Continuous-Time Visual-Inertial Odometry for Rolling Shutter Cameras}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2022},
  url = {https://openreview.net/forum?id=jmgua_m9zE},
}
Figure