Algorithm Search⌘K

Modeladvanced

Rolling shutter camera model

Also called rolling shutter projection.

A camera that exposes its rows one after another, so each row has its own pose, and moving scenes or cameras bend straight lines.

Most CMOS image sensors do not expose all pixels at the same moment. They read the rows one after another, from top to bottom, and each row collects light over its own short time window. If the camera or the scene moves during the readout, each row sees the scene from a slightly different pose. The rolling shutter model adds this to the pinhole camera: the pose is a function of time, and the time is a function of the row. A moving camera then bends straight lines, slants vertical edges, and makes spinning objects look warped. A camera that exposes all rows at once has a global shutter, and it is the special case where the row time is zero. Visual odometry, SLAM and bundle adjustment on phone and drone cameras need the model when the camera moves fast.

The machine

Input. A point XwX_w of the world, the intrinsic matrix KK, the line delay τ\tau (the time between the starts of two neighbor rows), the start time t0t_0 of the frame, and the camera trajectory t↦(R(t),T(t))t \mapsto (R(t), T(t)), the extrinsic parameters as functions of time.

Row time. Row vv is exposed at time t(v)=t0+τvt(v) = t_0 + \tau v. A sensor with HH rows and a readout time trt_r has τ=tr/H\tau = t_r / H.

Projection. The image point (u,v)(u, v) of XwX_w is a solution of

λ (u,  v,  1)T=K(R(t(v)) Xw+T(t(v))),λ>0.\lambda \, (u, \; v, \; 1)^{\mathsf T} = K \big( R(t(v)) \, X_w + T(t(v)) \big), \qquad \lambda > 0 .

The row vv appears on both sides, so projection is an equation for vv, not a formula. Write v=g(v)v = g(v), where g(v)g(v) is the row of the pinhole projection with the pose at time t(v)t(v).

Trajectory models.

  • Constant velocity in the frame: R(t)=exp⁡([ω]×(t−t0))R0R(t) = \exp([\omega]_\times (t - t_0)) R_0 and T(t)=T0+w (t−t0)T(t) = T_0 + w \, (t - t_0), with the angular velocity ω\omega and the linear velocity ww. This adds 6 unknowns per frame.
  • Small rotation: replace the exponential by I+[ω]×(t−t0)I + [\omega]_\times (t - t_0). Then each coordinate of the camera point is affine in vv, and v⋅Zc(v)=cyZc(v)+fyYc(v)v \cdot Z_c(v) = c_y Z_c(v) + f_y Y_c(v) (with no skew) is a quadratic equation in vv.
  • Continuous trajectories: a B-spline in the pose, used over many frames in continuous time SLAM and calibration.

Solving for the row. Fixed point iteration v←g(v)v \leftarrow g(v), started at the global shutter row, converges when ∣g′(v)∣<1\lvert g'(v) \rvert < 1. Here g′(v)=τ⋅v˙g'(v) = \tau \cdot \dot v, where v˙\dot v is the vertical speed of the image point in rows per second, so the factor is the number of rows the point moves during one row time. For normal motion this is far below 1, and 2 or 3 steps are enough.

What it counts

The model predicts where each point appears, given the trajectory over the frame, and it predicts the time of each measurement. Estimation fits the poses and the velocities, and sometimes τ\tau, by minimizing the reprojection error. Since each row has its own pose, a rolling shutter image is a generalized camera image: the rays of different rows do not meet in one point when the camera translates.

Worked example. Let f=500f = 500, (cx,cy)=(320,240)(c_x, c_y) = (320, 240), 480 rows read in 15 ms, so τ=31.25\tau = 31.25 microseconds. The camera moves sideways along its xx axis at 2 m/s, and a vertical pole stands 2 m in front of it, at X=0X = 0 at time 0. At the time τv\tau v of row vv, the pole is at Xc=−2τvX_c = -2 \tau v in the camera frame, so

u=320+500⋅−2τv2=320−0.015625 v.u = 320 + 500 \cdot \frac{-2 \tau v}{2} = 320 - 0.015625 \, v .

The pole appears at u=320u = 320 in row 0, 316.25 in row 240, and 312.52 in row 479. So the straight vertical pole is imaged as a line that leans by 7.5 pixels over the height of the frame. A global shutter camera would show it vertical at u=320u = 320. In this example the point moves only horizontally, so vv does not depend on time and no iteration is needed.

Relation to other models

  • Pinhole. τ=0\tau = 0, or a camera at rest. Then every row has the same pose.
  • Generalized camera. With a translating camera, the rows are rays from different centers, so the image is a generalized camera image. Meingast, Geyer and Sastry (2005) studied this geometry for simple motions; for constant translation the rays meet two lines, a crossed slits camera.
  • Pure rotation. If the camera only rotates (a hand held camera, a distant scene), row vv maps to the global shutter image by the homography KR(t(v))R(t0)TK−1K R(t(v)) R(t_0)^{\mathsf T} K^{-1}. Correction is then an image warp with one homography per row, and it needs no depth.
  • Exposure time. The model treats each row as exposed at one instant. Motion blur within a row comes from the exposure time, which is a different effect.

Known results in the model

  • Pose and velocity from one view (theorem). Ait-Aider et al. (2006) showed that one rolling shutter image of a known object gives both its pose and its velocity relative to the camera, because the rows sample the motion at different times. A global shutter image gives only the pose. The velocity is observable only if the motion changes the image during the readout.
  • Row equation (theorem). Under constant velocity and the small rotation model, the row of a point is a root of a quadratic, as derived above; with translation only and no rotation it is linear. With the exact rotation it is a nonlinear equation, solved by iteration.
  • Bias without the model (heuristic and benchmark). Pose estimation, perspective-n-point and bundle adjustment that assume a global shutter give biased results when a rolling shutter camera moves fast. The size of the bias depends on the speed and on τ\tau; published comparisons on phone and drone data show clear gains from the model in such cases.
  • Line delay. τ\tau is a property of the sensor and its mode, and is often not in the data sheet. It is calibrated with a known motion or a light that flashes at a known rate, or estimated together with the trajectory.

References

  1. Marci Meingast, Christopher Geyer and Shankar Sastry, Geometric models of rolling-shutter cameras, Workshop on Omnidirectional Vision (OMNIVIS), 2005, the projection model with a row dependent pose, and the special cases of constant translation and rotation
  2. Omar Ait-Aider, Nicolas Andreff, Jean-Marc Lavest and Philippe Martinet, Simultaneous object pose and velocity computation using a single view from a rolling shutter camera, European Conference on Computer Vision, 2006, 56-68, the estimation of the pose and the velocity of a known object from one rolling shutter image

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/H7207T/text.yaml