Rolling-Shutter-Aware Differential SfM and Image Rectification

Bingbing Zhuang, Loong-Fah Cheong, Gim Hee Lee

Abstract

This paper presents a novel differential Structure from Motion (SfM) framework designed to mitigate rolling shutter (RS) artifacts in CMOS sensor images. By modeling camera motion as a continuous process rather than a series of discrete poses, the authors demonstrate that RS distortion can be corrected through linear scaling of optical flow under constant velocity assumptions. For more complex motions, a 9-point algorithm for constant acceleration is introduced. The framework enables both accurate 3D reconstruction and high-quality image rectification without the need for external sensors.

Introduction

Most modern consumer cameras utilize CMOS sensors with a rolling shutter mechanism, where image rows are captured sequentially rather than simultaneously. When the camera or scene moves during this readout period, geometric distortions such as skew and wobble occur. Standard SfM algorithms, which assume a global shutter (GS) model, fail to account for the varying camera pose across scanlines, leading to significant errors in trajectory and structure estimation.

Rolling shutter timing diagram illustrating the delay between frame rows and the resulting scanline-specific poses.

Existing solutions often struggle with computational intractability due to the high number of parameters required to model every scanline's pose or rely on auxiliary sensors like IMUs. This work addresses these challenges by adopting a differential formulation that looks at infinitesimal motion between frames.

Methodology

The proposed framework shifts from discrete frame-to-frame matching to a differential approach based on optical flow. This avoids the "parameter explosion" typical of discrete RS models, keeping the problem tractable for robust estimation frameworks like RANSAC.

Differential RS Models

  1. Constant Velocity: The authors prove that under constant velocity, RS effects can be neutralized by scaling optical flow vectors by a factor $\alpha$, derived from readout time and pixel position. This allows the use of standard GS differential SfM techniques on rectified flow.
  2. Constant Acceleration: To handle non-uniform motion, a 9-point algorithm is developed using a polynomial system solved via the hidden variable resultant method.

Pipeline and Rectification

The complete pipeline involves estimating RS-aware optical flow, followed by differential SfM to recover motion and dense depth. Finally, "RS-aware warping" is performed by back-projecting pixels into 3D and re-projecting them onto a virtual global shutter plane, effectively "un-distorting" the image.

Overview of the RS-aware differential SfM and image rectification pipeline, from input images to rectified output.

Experimental Results

The method was evaluated on synthetic datasets (Old Town, Castle) and real-world iPhone footage featuring significant RS distortion.

  • Accuracy: The RS-aware model maintained high accuracy across varying readout times and accelerations, whereas GS models showed errors exceeding 50° in translation as distortion increased.
  • 3D Reconstruction: The framework successfully eliminated skew in point clouds, correctly reconstructing planar surfaces (like walls) that appeared curved under standard SfM.
  • Rectification Quality: Qualitative comparisons with commercial tools like Adobe After Effects and Apple iMovie showed superior preservation of vertical structures and significantly reduced wobble artifacts.

Conclusion

By leveraging a differential formulation, this work provides a tractable and accurate solution for RS-aware SfM and rectification. While dependent on high-quality optical flow and small-motion assumptions, it offers a significant advancement over discrete models and sensor-dependent methods. Future work may focus on improving robustness in low-texture regions and reducing the computational cost of dense refinement required for high-quality rectification.

Summary updated

BibTeX
@inproceedings{zhuang2017rolling,
  author = {Bingbing Zhuang and Loong-Fah Cheong and Gim Hee Lee},
  title = {{Rolling-Shutter-Aware Differential SfM and Image Rectification}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.108},
}
Figure