Skip to content

Why calibrate rolling shutter

This page shows what rolling shutter does to a real calibration. You need no setup. Data: our runs on the VI-Rig dataset virig-4imus-4cams.

The answer first:

  • The ELP is rolling shutter: it reads its rows one after another, over about 16.6 ms.
  • Calling it global costs fit: on recording 01 the median reprojection error grew by 25 % (1.04 → 1.30 px).
  • tdt_d hides the error: the camera–IMU time offset tdt_d moves by about half the readout to absorb it.
  • No warning: the solve still converges, and the shifted tdt_d looks like a normal time offset.

How to turn it on: Rolling-shutter calibration.

  • Readout trt_r: the time a camera takes to read all its rows.
  • Reprojection error: the distance in pixels between a detected board corner and where the calibration predicts it.
  • Cameras: two ELP cameras, ELP left and ELP right, 640×480 at 25 Hz as recorded (about 20–22 Hz after restamping), rolling shutter.
  • Solve: MVIS solves the readout with the other camera terms, in the camera-only step and again in the camera–IMU step.

1. The ELP reads its rows over about 16.6 ms

Section titled “1. The ELP reads its rows over about 16.6 ms”
  • Example run, recording 01: readout 16.68 ms for ELP left and 16.73 ms for ELP right. See the worked example.
  • All 15 recordings, median: with ELP stereo and two IMUs (T8), ELP left reads 16.621 ms (sd 0.121) and ELP right 16.599 ms (sd 0.108).
  • Left and right agree: within 0.05 ms.
  • What it means: the top and bottom rows of one image are taken about 16.6 ms apart. If the rig moves, they see the board from slightly different poses.

2. Called global, the fit gets worse and the time offset moves

Section titled “2. Called global, the fit gets worse and the time offset moves”

We ran the same camera–IMU solve twice: once with rolling shutter, once with the ELP called global shutter. Setup: ELP pair, T265 IMU as base IMU, Xsens as aux IMU, recording 01.

RecordingMedian reprojection, RS (px)Median reprojection, called global (px)ELP left tdt_d shift (ms)Readout in the RS run (ms)
011.0431.303+9.516.2
  • Fit: the median error grows by 0.26 px.
  • tdt_d moves by about half the readout: a global-shutter model stamps the whole image at one time, so the solver moves tdt_d until that time sits near the middle row.
  • The IMU barely notices: the base gyro scale moved by 0.5 % or less. A wrong shutter model mainly corrupts the camera timing.
  • The real risk: the shifted tdt_d is right only for the middle row. The top and bottom rows are off by up to half the readout, about 8 ms.

3. MVIS repeats the readout tighter than Kalibr

Section titled “3. MVIS repeats the readout tighter than Kalibr”

The results compare MVIS and Kalibr on all 15 recordings; see VI-Rig: 4 IMUs + 4 cameras.

Camera-only (ELP stereo + readout, T2):

CameraMVIS readout (ms)Kalibr readout (ms)
ELP left14.614 (sd 0.404, n = 15)16.354 (sd 2.00, n = 15)
ELP right14.603 (sd 0.404, n = 15)17.369 (sd 1.42, n = 13)
  • MVIS repeats 3–5× tighter across recordings than Kalibr’s rolling-shutter model.
  • One camera at a time: Kalibr’s rolling-shutter model has no ELP stereo baseline.
  • Lens models differ: MVIS uses the equidistant model on the ELP, Kalibr radtan, so only the readout is compared.
  • Kalibr was not re-run after the ELP stamp correction.
  • With the IMU: the MVIS readout spread drops to about 0.1 ms (section 1).

Camera–IMU, mixed rig (T265 left + ELP left + two IMUs, T7):

CameraMVIS median reprojection (px)Kalibr median reprojection (px)
ELP left0.181 (rolling shutter)0.795 (taken as global shutter)
T265 left0.2000.367
  • Kalibr’s camera–IMU solver is global shutter only: it takes ELP left as global, with readout fixed at 0.
  • Not a clean on/off test: MVIS uses two corners per tag, non-base cameras at 4 Hz or lower and an estimated board shape. Kalibr uses none of these.
  • Part of the gap is settings: the gap on the global-shutter T265 suggests so.

Conclusion:

  • Model the shutter: the ELP is rolling shutter, and calling it global makes the fit worse.
  • The error goes into tdt_d: it moves by about half the readout, with no warning.
  • MVIS repeats the readout: tighter than Kalibr across recordings, and tighter still with the IMU.
  • Camera-only and camera–IMU disagree: MVIS gets 14.6 ms camera-only and 16.6 ms with the IMU, about 2 ms apart.
  • Readout needs help to be seen: a high enough frame rate or IMU support. On a low-rate camera with no IMU, the readout can follow the solver’s starting value, not the data.
  • Check repeatability, not one run: calibrate several recordings and compare the readout. A value that moves a lot between recordings is not well observed.
  • A round trip cannot test it: mvis apply-calib corrects frame stamps only. It does not unwarp image rows, so a round-trip validation says nothing about the readout.
  • Older on/off code: section 2 is one recording on October 2026 code.
  • Who ran it: we ran every solve, Kalibr included.
  • Recordings: virig-4imus-4cams, all 15 recordings.
  • Section 1: the worked example and the results page, batch 2026-11-30a.
  • Section 2: a diagnostic on/off run on October 2026 code, before the ELP stamp correction, board-shape estimation and vision_pose: imu.
  • Section 3: the results page, batch 2026-11-30a. Kalibr was not re-run after the ELP stamp correction.
  • Citation: please cite the VI-Rig dataset and MVIS.