From Bows to Arrows: Rolling Shutter Rectification of Urban Scenes

Vijay Rengarajan, A. N. Rajagopalan, Rangarajan AravindCVPR 2016

Abstract

Modern CMOS cameras often introduce geometric distortions due to the row-wise exposure mechanism known as rolling shutter (RS). When the camera moves during capture, straight lines in the scene can appear as curves. This paper presents a method for rectifying these distortions from a single image of an urban scene. By leveraging the geometric regularity of man-made structures, we estimate camera rotation during exposure and transform distorted curves back into straight lines. Our approach uses a rotation-only motion model and an optimization framework based on line straightness, angle, and length. We demonstrate successful rectification on real-world handheld captures and simulated datasets.

Introduction: The Rolling Shutter Problem

Most modern smartphones utilize CMOS sensors with a rolling shutter mechanism. Unlike global shutters that capture an entire frame simultaneously, rolling shutters record images row-by-row. If the camera moves—for instance, due to handheld shake—during this sequential exposure, the resulting image becomes warped. In urban environments, this effect is particularly noticeable as the straight lines of buildings, pillars, and windows are rendered as distinct curves.

Example of rolling shutter distortion in a hallway, where straight architectural lines appear curved.

Correcting this "blind" single-image distortion is an ill-posed problem because many different camera trajectories could produce the same warped image. While multi-frame video methods or hardware sensors can provide additional data, this research focuses on the challenge of rectifying a single, standalone image without auxiliary information.

Methodology

The proposed rectification pipeline treats the distorted image as a geometric puzzle, aiming to restore the "Manhattan world" properties (orthogonal planes and straight lines) of the original scene.

1. Curve Detection and Motion Modeling

The system first extracts edges using a Canny detector and groups them into curves. It specifically targets lines that should be vertical or horizontal. To make the problem tractable, the camera's rotation is modeled as a degree-3 polynomial. This reduces the estimation of thousands of row-wise positions to just 12 unknown coefficients, capturing the high-frequency jitter typical of handheld photography.

2. Optimization and Desirability Costs

The motion parameters are estimated by minimizing an objective function consisting of three "desirability costs":

  • Line Cost: Measures how well rectified pixels align with a straight line.
  • Angle Cost: Ensures that lines intended to be vertical or horizontal maintain those orientations.
  • Length Cost: Prevents unrealistic vertical stretching or shrinking that could occur if only straightness were considered.

3. Image Rectification

Once the camera trajectory is estimated, an iterative inverse mapping technique is applied. This process pulls intensity values from the distorted RS image into a new, rectified Global Shutter (GS) grid, effectively straightening the "bows" back into "arrows."

Experimental Results

The method was evaluated using real-world images from mobile phones and the Kohler Handshake Dataset, which provides ground-truth camera trajectories.

Comparison of rolling shutter rectification results. The method successfully restores the geometric integrity of the scene.

On simulated data, the polynomial model achieved a high degree of accuracy with an average angular error of only 0.0012°. Qualitatively, the method effectively straightens heavily warped architectural features in handheld photos. Despite using only a single image, the results are visually comparable to state-of-the-art video-based rectification techniques.

Discussion and Limitations

The core insight of this work is that the curvature in an RS image serves as a record of the camera's angular velocity. By enforcing geometric constraints, the ambiguity between different types of motion (e.g., in-plane rotation vs. horizontal shearing) can be resolved.

However, the current model assumes rotation-only motion, which may not account for depth-dependent distortions caused by rapid translation. Additionally, the method relies on the presence of long, straight lines, making it less suitable for natural scenes lacking geometric primitives. Future work could involve combining this approach with deblurring algorithms for cases where long exposures introduce motion blur within individual rows.

Conclusion

This research demonstrates that the geometric regularity of urban scenes provides sufficient cues to rectify rolling shutter distortions from a single image. By modeling camera motion and optimizing for line straightness and orientation, the proposed method offers a robust solution for improving the quality of handheld mobile photography.

Summary updated

BibTeX
@inproceedings{rengarajan2016from,
  author = {Vijay Rengarajan and A. N. Rajagopalan and Rangarajan Aravind},
  title = {{From Bows to Arrows: Rolling Shutter Rectification of Urban Scenes}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  url = {https://openreview.net/forum?id=S1EEDgfdbB},
}
Figure