NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Certified-Invertible Rolling Shutter Correction with Vertical-Line Anchors

Most phone and robot cameras read out an image one row at a time, so each row is a snapshot taken at a slightly different moment. When the camera moves, straight things bend: building edges lean, poles wobble, and the scene looks like jelly. Correcting this means building a warp that moves every pixel to where it would have been if all rows were captured at once. Current learned correctors predict that warp freely. Nothing stops the warp from folding the image onto itself or tearing it, and nothing checks the corrected image against the strongest cue a city scene offers, which is that walls, door frames and lampposts are vertical. This proposal does three things. It writes the correction warp as a motion field followed through time, with a different integration time for each row. It shows that the warp's local area change splits exactly into a fold-free part and a single scalar "readout factor." It then uses that scalar for two purposes: as a per-pixel certificate of invertibility, and as an explicit marker of where folding is physically real, namely at occlusions and wherever content outruns the readout. Vertical lines enter the same parameterization as near-linear constraints on the horizontal component of the motion field.

The point that makes this more than a mash-up is this. Taking the standard fold-free warp layer from medical image registration and dropping it into a rolling shutter network does not give a fold-free correction, because the row-dependent time adds a term that layer never sees. Getting that term right gives a cheap guarantee where the scene is continuous. It also gives a principled way to stop forcing smoothness where the scene is not continuous.

Core Claim

Let $v$ be a smooth image-plane velocity field, $t_d$ the delay between consecutive rows, and $\tau(y) = (y_{\text{ref}} - y)\,t_d$ the time gap between row $y$ and the reference time of the virtual all-rows-at-once ("global shutter") image. The correction map sends pixel $x=(x,y)$ to

$$\psi(x) = \Phi_{\tau(y)}(x),$$

where $\Phi_s$ denotes following the flow of $v$ for time $s$. For a fixed $s$, $\Phi_s$ is a diffeomorphism, meaning a smooth warp with a smooth inverse. This is the property that scaling-and-squaring layers exploit in Unsupervised learning of probabilistic diffeomorphic registration for images and surfaces. Because $\tau$ depends on $y$, the chain rule and the matrix determinant lemma give

$$\det J_\psi(x) = \det J_{\Phi}(x)\,\big(1 - t_d\, e_y^{\top} J_{\Phi}(x)^{-1} v(\psi(x))\big) = \det J_{\Phi}(x)\, r(x).$$

Here $J_\Phi$ is the Jacobian of $\Phi_{\tau(y)}$ at fixed time and $e_y$ is the vertical unit vector. The first factor is positive by construction. The whole question of folding therefore collapses into the scalar readout factor $r(x)$. It turns negative exactly when content, pulled back to its source position, moves vertically along the readout direction faster than the sensor sweeps rows. That condition has a physical reading: rows of the scene get captured twice or skipped. It also happens at depth edges, where a single smooth $v$ is the wrong model.

The claim is that a corrector should guarantee $r>0$ wherever the scene is locally continuous, and should predict $r\le 0$ only inside an explicitly estimated occlusion region. Under that design, the predicted fold region becomes an occlusion detector that can be checked against ground truth, rather than an artifact.

The off-diagonal Jacobian entry carries vertical-line information. To first order in $\tau$, the column shift per row along a corrected segment is about $\tau\,\partial_y v_x - t_d v_x$. The lean of a world-vertical line is therefore nearly linear in the horizontal velocity at that line's pixels. This is the dense-field counterpart of what Minimal Solvers for Monocular Rolling Shutter Compensation under Ackermann Motion and Rolling Shutter Correction in Manhattan World exploit with two-parameter vehicle models or low-order rotation polynomials. Here it pins the dense field locally instead of fitting a global motion.

How this sits relative to prior work

Three learned correctors motivate the gap. Deep Shutter Unrolling Network predicts a velocity field but applies it as a linear displacement $V\cdot\tau$ and then splats pixels forward. SUNet uses a coarse-to-fine optical-flow network with smoothness and consistency losses. Rolling Shutter Inversion (RSSR) scales optical flow per row and uses softmax splatting. None of the three integrates the field. None has an invertibility guarantee, and none uses structural cues. We keep their two-frame setting and backbone but change how the warp is built.

Two papers supply the method: the scaling-and-squaring and velocity-field machinery of VoxelMorph and its diffeomorphic variant (Dalca et al.). Our modification is per-pixel integration time, implemented as $N$ Euler sub-steps of size $\tau(y)/N$, together with the readout factor that their analysis lacks.

Neural Mesh Flow constrains the design. It documents that flows cannot change topology and that soft penalties strong enough to remove self-intersections erase detail. The first point is why we do not force invertibility at occlusions. The second is why we build invertibility into the parameterization rather than adding a penalty.

Occlusion-Aware Rolling Shutter Rectification of 3D Scenes handles depth-dependent occlusion with planar layers, graph cuts and matting. That approach is slow and limited to planar scenes. Our occlusion region is instead read off a continuous quantity, $r$. SMARSC shows that two-view rolling shutter geometry degenerates under pure translation, which motivates single-image priors. It lifts pixels to 3D but does not control the warp it induces. We stay in 2D and use verticality, not predicted depth, to break the ambiguity.

Research Program

The model has three parts.

The first part is a velocity network. It takes the two consecutive frames used by SUNet and RSSR, so the comparison is fair, and outputs a smooth field $v$ and an occlusion logit map.

The second part is the time-sliced integrator. It computes $\psi$ by per-pixel Euler steps and also returns $\det J_\Phi$ and $r$ in closed form from the same pass. We enforce $r > \epsilon$ outside the occlusion mask by reparameterization: the vertical component of the pulled-back velocity is bounded through a scaled $\tanh$ against $1/t_d$, so the bound is architectural rather than a loss term. Inside the mask the bound is lifted, and the second frame fills those pixels, as in the two-stream design of JCD.

The third part is a vertical-anchor module. It detects line segments, estimates the vertical vanishing direction, and keeps only segments consistent with it under a robust Huber fit as in Rolling Shutter Correction in Manhattan World. It then adds a residual requiring the corrected endpoints of each segment to be collinear with that vanishing point. We use this residual in two ways: as a training loss, and as a few steps of test-time refinement of $v$ on single images.

The analysis component is also a deliverable. We will compute $r$ on the ground-truth motion fields of Carla-RS and measure how often the physical warp is genuinely non-invertible. We will also check whether those regions coincide with the dataset's occlusion masks. If true folds are negligible outside occlusions, the certificate is justified. If they are common, we learn that rolling shutter correction is intrinsically non-invertible far more often than assumed. That would itself be a useful negative result.

Baselines

The naive reference is the uncorrected rolling shutter frame scored against the global-shutter ground truth, together with a single global vertical shear fit to detected lines. Every method must beat these.

The strongest existing two-frame method on Carla-RS is RSSR, which reports 30.17 dB PSNR on Carla-RS (Rolling Shutter Inversion). On Fastec-RS the reference is SUNet at 28.34 dB PSNR (SUNet). DeepUnrollNet reports 27.78 dB on Carla-RS in its own paper and 26.90 dB as re-run by RSSR; we report both rather than choosing one. On BS-RSCD, JCD reports LPIPS 0.122 against 0.159 for the next competitor (Towards Rolling Shutter Correction and Deblurring in Dynamic Scenes).

For single images, the structural baseline is the Manhattan corrector, which reports a mean angular error of 0.18° on synthetic data (Rolling Shutter Correction in Manhattan World). The learned single-image baseline is SMARSC, for which there is no reported result on Lacuna for KITTI-RS.

To keep comparisons fair, we retrain SUNet and RSSR from public code on identical splits with the same crop-based preprocessing. Crops matter because SMARSC warns that resizing fakes pitch. All methods get the same GPU budget and the same number of hyperparameter trials.

The ablation that isolates our key ingredient replaces only the integrator, holding backbone, losses and data fixed. It has four arms: linear $V\tau$ scaling; plain scaling-and-squaring at fixed time followed by row resampling, which is the naive transplant; the time-sliced integrator without the $r$ bound; and the full model, with and without vertical anchors.

Beating the strongest baseline means matching its PSNR within 0.3 dB on Carla-RS and Fastec-RS while cutting folded pixels outside true occlusion regions by an order of magnitude. A clear gain on the severe-motion subset and on line-verticality error is also required. We do not claim a large average PSNR gain, because folds occupy few pixels.

Why not just…?

Why not just add a Jacobian-determinant penalty and a line-straightness loss to SUNet or RSSR? This is the real threat, and it is cheap. The evidence against it is indirect. Soft folding penalties left "thousands of non-physical folds" where integrated fields left 0.2 folding voxels on average (Dalca et al.). Neural Mesh Flow's "regularizer's dilemma" shows that penalties strong enough to remove folds also blur detail. Neither result is on rolling shutter data, though. We will train this exact variant, sweeping the penalty weight, and plot fold rate against PSNR. If the soft variant reaches our point on that curve, the contribution shrinks to the readout-factor analysis and the occlusion detector, and we will say so.

Why not run a Manhattan or Ackermann solver first and let a network clean up? Those solvers fit global motion to planar corridors. Purkait and Zach report degradation under shaking and skidding, and Vasu et al. show global parametric unwarping failing in deep scenes: competing methods had pixel motion error above 6.3 versus 0.62 for a depth-aware method. We include this two-stage pipeline as a baseline on KITTI-RS and Carla-RS. We expect it to win on clean facades and lose on the severe-motion and non-Manhattan subsets. York Urban, where roughly 78% of images satisfy the Manhattan assumption, lets us separate these cases.

Why not use backward warping, which never leaves holes? Backward warping hides folds; it does not remove them. Many output pixels can sample one source pixel, and occluded content is silently duplicated. Our fold-region IoU metric applies to backward warps too, so the experiment will show whether hidden duplication occurs.

Why not use an IMU or two cameras with reversed readout? These approaches (From Two Rolling Shutters to One Global Shutter, IMU-Assisted Learning of Single-View Rolling Shutter Correction) do not apply to legacy single-camera footage. Purkait and Zach also needed line cues to absorb IMU angular errors of up to 1°. Where gravity is available, we treat it as an input to the vertical-anchor module, not as a competitor.

Proposed Experiments

On Carla-RS we report PSNR, SSIM and LPIPS. We also report the fraction of pixels with $\det J_\psi \le 0$ inside and outside the ground-truth occlusion masks, and the IoU between our predicted fold region and those masks. On Fastec-RS we report image metrics stratified by motion magnitude. BS-RSCD serves as a stress test with independently moving objects, which break the single-field assumption. There we expect the occlusion mask to absorb those objects, and we will report honestly if it does not.

On York Urban and KITTI-RS, in the single-image setting, we measure the angular deviation of detected world-vertical lines from the vertical vanishing direction after correction. On KITTI-RS we also run structure-from-motion on corrected sequences and compare against LiDAR depth, testing SMARSC's warning that 2D warps collapse 3D reconstructions.

The decisive checks are three. First, on ground-truth Carla-RS motion, regions with $r\le 0$ should be almost entirely contained in the occlusion masks. Second, in the integrator ablation, the naive scaling-and-squaring transplant should still fold at rates close to linear scaling, while the bounded model does not. Third, on the hardest motion quintile, baseline errors should concentrate where our $r$ approaches zero, showing that the readout factor predicts where unconstrained correctors break.