Rolling shutter (RS) distortion is a ubiquitous artifact in modern consumer photography, caused by the row-by-row readout mechanism of CMOS sensors. When either the camera or the subject moves during the capture process, the resulting image exhibits geometric distortions such as skew, wobble, or "jello" effects. In their CVPR 2020 paper, Liu et al. present DeepUnrollNet, the first end-to-end deep learning framework designed to correct these distortions by reconstructing a high-quality global shutter (GS) image from consecutive RS frames.
The Rolling Shutter Problem
Most modern smartphone cameras utilize rolling shutters to save on hardware costs and complexity. Unlike a global shutter, which exposes the entire sensor simultaneously, a rolling shutter exposes rows sequentially. As shown in Figure 2, there is a time delay $t_d$ between the start of exposure for consecutive rows.
If the camera moves during the total readout time, each row captures the scene from a slightly different perspective, leading to non-rigid geometric distortions. Correcting this "unrolling" problem is inherently ill-posed for a single image because the 3D motion and scene structure are unknown. While classical multi-image methods exist, they typically rely on slow, iterative optimization processes that are impractical for real-time use.
DeepUnrollNet Architecture
DeepUnrollNet addresses these challenges by using two consecutive RS images ($I^r_{prev}$ and $I^r_{cur}$) to estimate the underlying motion. The network is designed to output a single corrected GS image ($I^g_{cur}$) corresponding to the timestamp of the last row of the second frame.
Velocity Field Estimation and Forward Warping
A key innovation of the architecture is the prediction of a dense velocity field rather than a simple displacement map. By explicitly modeling the physics of the sensor—where pixel displacement is a product of velocity and the row-specific time offset—the network more accurately captures the nature of RS distortion.
To reposition pixels from the distorted RS grid to the corrected GS grid, the authors employ a differentiable forward warping layer. Unlike standard backward warping, forward warping can handle the "splatting" of pixels into new locations. The authors implemented a custom layer using Gaussian-weighted averaging to ensure the operation remains differentiable for end-to-end training.
Feature-Space Processing
The network follows an encoder-decoder structure. Instead of warping raw pixels, the Encoder extracts deep features, which are then processed by the Warping Blocks. This allows the Decoder to use latent context to "inpaint" regions that might be occluded or missing after the geometric correction, a significant advantage over purely geometric classical methods.
Training and Datasets
To train DeepUnrollNet, the authors developed two new benchmarks:
- Carla-RS: A synthetic dataset created using the CARLA autonomous driving simulator, providing 2,500 image pairs with ground truth 6-DoF motion and occlusion masks.
- Fastec-RS: A real-world dataset synthesized from high-speed (2400 FPS) global shutter footage, allowing for realistic RS distortions with perfect ground truth.
Performance and Results
DeepUnrollNet demonstrates a significant leap in both accuracy and efficiency. On the Carla-RS dataset, it achieved a PSNR of 27.78 dB, substantially higher than previous state-of-the-art optimization methods (25.93 dB).
More impressively, the network offers a massive speedup. While previous optimization-based approaches could take nearly 8 minutes (467.26 seconds) to process a single VGA resolution frame, DeepUnrollNet completes the task in just 0.43 seconds on a GPU. This near real-time performance makes it viable for integration into mobile camera pipelines.
Conclusion
DeepUnrollNet represents a paradigm shift in rolling shutter correction, moving from slow geometric optimization to fast, physics-informed deep learning. By leveraging temporal context and differentiable warping in the feature space, it provides a robust solution for the distortions inherent in modern CMOS sensors. Future work remains in addressing the coupling of RS distortion with motion blur and improving handling of complex bi-directional occlusions.
Summary updated