Skip to content

Why calibrate the board shape

This page shows why MVIS can solve the shape of the calibration board, and what a flat solve does on our board. Data: our VI-Rig recordings on the Hub, calibench-vi/datasets.

The answer first:

  • Our board is not flat: our AprilGrid on a panel is a saddle 10–11 mm peak to peak on this VI-Rig mount.
  • A flat solve hides it: camera-only fx comes out 0.4–1.0 % low on average. Camera–IMU puts the gyro scale Dw about 1.1 % high and a lever about 9 mm off. No check fails; only the camera-only board_point_bias diagnostic hints at it.
  • What MVIS solves: estimate.board_points: true adds one height per corner, in camera-only and camera–IMU runs. Kalibr and Basalt treat the board as flat.
  • The cost: 144 more unknowns. On these runs the solve took no longer, and fx repeated no worse.
  • Off by default: we turn it on for VI-Rig.

How to turn it on: A board is never flat.

  • Board: an AprilGrid with 6 × 6 tags of 88 mm, 144 corners.
  • Recordings: the VI-Rig 4 IMUs + 4 cameras set, recordings 1–15, all on one mount of the board.
  • Code: every solve in sections 1–4 ran on MVIS main f902d39 (2026-11-11), unless a line says otherwise.
  • Lever: the translation between a camera and the IMU.

We estimated the height of every corner four ways, all on recordings 3–5:

  • ELP left camera, rolling shutter, camera-only.
  • T265 left, global shutter, camera-only.
  • ELP stereo pair, camera-only, two corners per tag (10.4–10.8 mm, 2.1–2.3 mm rms).
  • Camera–IMU: the ELP stereo pair with the T265 and Xsens IMUs. This one also ran on recordings 1–15 with two corners per tag, for the recording-to-recording row.
MeasureValue
Out of plane, peak to peak (all-corner estimates)10.5–11.0 mm
Out of plane, rms (all-corner estimates)2.3–2.4 mm
ShapeA ridge across the middle (+3 to +4.5 mm); two opposite corners sag to −5 to −6 mm
Agreement between the four estimates0.04–0.32 mm rms, correlation 0.991–0.9999
Recording to recording0.05–0.16 mm rms; recordings 1–2 sit about 0.4 mm from the 15-recording mean
+1.27 mm+0.14 mm+0.34 mm+1.51 mm-0.17 mm-1.45 mm-0.67 mm+0.07 mm-1.62 mm-2.58 mm-1.47 mm-0.86 mm-3.00 mm-4.09 mm-2.23 mm-1.58 mm-4.39 mm-5.54 mm-3.49 mm-2.39 mm-6.19 mm-5.78 mm-4.59 mm-3.69 mm+1.63 mm+0.57 mm+1.75 mm+2.21 mm+0.41 mm-0.31 mm+1.27 mm+1.49 mm-0.47 mm-0.94 mm+0.95 mm+1.15 mm-1.06 mm-1.67 mm+0.47 mm+0.88 mm-1.82 mm-2.68 mm-0.06 mm+0.55 mm-2.98 mm-3.70 mm-0.49 mm-0.18 mm+2.83 mm+2.25 mm+3.20 mm+2.73 mm+2.19 mm+1.80 mm+3.97 mm+3.28 mm+1.77 mm+1.60 mm+4.40 mm+4.04 mm+1.52 mm+1.35 mm+4.35 mm+4.73 mm+1.40 mm+0.91 mm+3.52 mm+4.68 mm+0.69 mm+0.65 mm+3.63 mm+4.02 mm+1.93 mm+2.29 mm-0.12 mm-0.49 mm+2.41 mm+3.04 mm+0.37 mm-0.17 mm+3.29 mm+3.75 mm+0.81 mm+0.46 mm+3.86 mm+3.63 mm+1.02 mm+0.90 mm+3.64 mm+3.18 mm+1.33 mm+1.11 mm+3.21 mm+3.20 mm+1.72 mm+1.60 mm-1.05 mm-0.73 mm-2.64 mm-3.09 mm-0.79 mm-0.23 mm-1.93 mm-2.63 mm-0.17 mm+0.22 mm-1.22 mm-1.84 mm+0.37 mm+0.60 mm-0.73 mm-1.21 mm+0.70 mm+1.09 mm+0.29 mm-0.50 mm+1.39 mm+1.72 mm+1.30 mm+0.50 mm-3.64 mm-3.26 mm-4.59 mm-5.29 mm-3.12 mm-2.50 mm-3.66 mm-4.48 mm-2.18 mm-1.53 mm-2.53 mm-3.52 mm-1.48 mm-0.99 mm-1.44 mm-2.33 mm-0.72 mm-0.03 mm-0.16 mm-1.15 mm+0.40 mm+1.40 mm+1.02 mm+0.36 mm012345012345-6.2 mm-3.1 mmflat+3.1 mm+6.2 mm
Height of each corner off the flat board: peak to peak 10.9 mm, rms 2.4 mm. Numbers are the tag column and row (row 0 at the bottom). Hover or tap a corner for its value.

VI-Rig 4 IMUs + 4 cameras, recording 3: camera–IMU solve with all 144 corners (ELP stereo pair, T265 and Xsens IMUs), MVIS main f902d39. Red corners stand out of the best-fit plane, blue ones sink below it.

  • Two corners per tag: over the 72 corners they observe, these solves read 2.2–2.7 mm rms and 9.1–11.7 mm peak to peak (camera–IMU, recordings 1–15; recording 1 is the 9.1 mm low end). The other 72 heights have no data (section 4), so the first two rows leave them out. Since 2026-11-12 MVIS main writes the rms and peak to peak over the observed corners only, with a per-corner count n_obs, in the camera-only board shape output.
  • Agreement: the three estimates that use the ELP left camera agree within 0.04–0.13 mm. The T265 estimate, from another camera and lens, is 0.23–0.32 mm from them. Each comparison removes the best-fit plane first.
  • Not low-order: a biquadratic surface still leaves 0.9–1.0 mm rms, a biquartic 0.5 mm. A few bending terms cannot replace one height per corner.
  • Per mount: the shape depends on the mount. On another mount, the 5 IMUs + 4 cameras recordings, an older run estimated 7.3 mm peak to peak. That shape correlates only 0.60 with the stored 15-recording shape of this mount.

2. Camera-only: a flat board pulls the focal length down

Section titled “2. Camera-only: a flat board pulls the focal length down”

Recordings 3–5, equidistant model, all 144 corners. We solved each once with the shape and once with a rigid flat board:

CameraBoardReprojection rms (px)fx (px), mean ± std over 3 recordingscy (px)
ELP left (rolling shutter)shape0.445428.12 ± 0.88267.32 ± 0.28
flat0.614426.58 ± 1.17270.57 ± 0.75
T265 left (global shutter)shape0.427286.72 ± 0.44404.63 ± 0.47
flat0.573284.29 ± 0.63406.63 ± 0.90
  • Residual: the shape cuts it by 27.5 % on the ELP and 25.5 % on the T265. Across all camera-only arms, including two corners per tag and stereo, the cut is 25–29 %.
  • Focal length: flat reads fx 0.36 % low on the ELP and 0.85 % low on the T265. It is low on every recording, by 0.25–0.48 % and 0.77–0.93 %.
  • Two corners per tag: the fx gaps are 0.42 % and 0.99 %, up to 1.09 % on one recording.
  • Principal point: flat also moves cy, by +3.3 px on the ELP and +2.0 px on the T265.
  • Stereo: with two corners per tag, the ELP stereo pair reads fx 0.48 % low flat. Flat also moves its baseline by 0.3 %, from 59.23 to 59.04 mm, the stereo rotation by 1.2–1.8 mrad as log(R), mostly about y, and the rolling-shutter readout by 0.16 ms.
  • With the IMU: in the camera–IMU solves of section 3, on recordings 3–5, ELP left fx with the shape is 427.9 px with two corners per tag and 428.2 px with all corners. Camera-only gives 428.1 px, so all are within 0.2 px.
  • Smaller flat bias with the IMU: there the flat-board fx bias is 0.1–0.2 %: +0.4 ± 0.6 px over 15 recordings, with the opposite sign on 3 of them, and +0.8 px with all corners on recordings 3–5.

3. Camera–IMU: a flat board shows up as gyro scale and lever

Section titled “3. Camera–IMU: a flat board shows up as gyro scale and lever”

15 recordings of the ELP stereo pair with the T265 and Xsens IMUs, two corners per tag. We solved each once with the shape, starting from an earlier 7.7 mm estimate of the same board, and once with a rigid flat board. A good gyroscope reads a scale Dw close to 1.

Mean ± std over the 15 recordings, range in brackets:

QuantityFlat boardWith the shape
T265 gyro scale x1.0117 ± 0.0029 [1.0061–1.0161]1.0000 ± 0.0011 [0.9986–1.0021]
T265 gyro scale y1.0148 ± 0.0029 [1.0084–1.0188]1.0034 ± 0.0012 [1.0016–1.0058]
T265 gyro scale z1.0046 ± 0.0007 [1.0035–1.0066]1.0039 ± 0.0003 [1.0034–1.0044]
Xsens gyro scale x1.0115 ± 0.0032 [1.0050–1.0163]1.0008 ± 0.0012 [0.9991–1.0033]
ELP left lever z−4.6 ± 3.3 mm [−8.5 to 0.9]4.6 ± 1.3 mm [1.9 to 6.7]
Reprojection rms0.61 ± 0.03 px [0.57–0.65]0.33 ± 0.02 px [0.30–0.39]
  • Gyro scale: with the shape, every axis of both IMUs is within 0.6 % of 1. The largest is T265 y, 1.0058, on recording 11; the Xsens stays within 0.33 %.
  • Per recording: the shape lowers T265 x and y by 1.17 ± 0.28 % and 1.13 ± 0.23 %, and Xsens x by 1.07 ± 0.30 %, with the same sign on all 15.
  • T265 z: about 0.4 % high either way.
  • Accelerometer: the T265 accel scale Da moves by −0.31 ± 0.20 % in z; x and y barely move.
  • Lever: the shape moves ELP left lever z by +9.3 ± 2.7 mm per recording. The lever also repeats better, std 1.3 mm against 3.3 mm flat.
  • Time offsets: tgat_{ga} moves by −0.18 ms and tdt_d by under 0.1 ms.
  • Start value and corner set: on recordings 3–5 we also solved all 144 corners from a flat start, instead of two per tag from the 7.7 mm estimate. The answer is nearly the same: gyro scale within about 0.1 % and lever z within 1 mm (on average 0.08 % and 0.9 mm), at about 1.5× the solve time. Both changed at once, so this run does not separate them.
  • No alarm: the flat solves converged, and their 0.61 px residual failed no check. In the camera-only runs of section 2, the per-corner board_point_bias shows the twist: median 0.15–0.27 px flat against 0.06–0.13 px with the shape. Camera–IMU output has no such diagnostic.
  • Other mount: an older run used 7 recordings of the 5 IMUs + 4 cameras rig, 4 cameras each, with the EUCM and kb4 lens models. Turning the shape off rotated the camera extrinsics by a median 6.8 mrad (log(R), after aligning the two solutions as a whole; 7.4–8.0 mrad as solved). It moved the lever by 1.3–2.2 mm and cy by 1.8 px. That run compared extrinsics only, not gyro scale or fx.
  • More unknowns: 144 heights, each with a weak 3 mm prior (board_height_sigma: 0.003, in m).
  • Solve time: not longer on these runs. Camera-only with all corners, means of 3 on 2 threads, shape against flat: ELP 21.7 against 22.7 min, T265 12.1 against 13.9 min, ELP stereo 34.0 against 33.9 min. Camera–IMU: +3 ± 35 s on 10–14 min solves.
  • fx repeatability: no worse with the shape. Camera-only with all corners, the scatter with the shape is 0.55–0.93× the flat scatter: ELP 0.88 against 1.17 px, T265 0.44 against 0.63 px. Three recordings are too few to rank. Camera–IMU over 15 recordings: 0.62 against 0.91 px.
  • Earlier study: a study on development code found fx repeating 2–4× worse with the shape. Its flat runs let each corner move under a 1 mm prior. These runs do not show that.
  • Two corners per tag see half the heights: with corner_subsample: two_anti a camera–IMU solve or a one-camera solve observes 72 of the 144 corners. The other 72 heights have no data and stay near their start values. A camera-only solve with two or more cameras adds the other diagonal on frames that see at least 35 of the 36 tags, so it sees all 144, but half of them only from a few frames.
  • Where two corners per tag is set: it is the camera-only default, and our camera–IMU configs set it too. The camera–IMU default is all.
  • Default: MVIS keeps estimate.board_points off. We turn it on for every VI-Rig solve, camera-only and camera–IMU; our other rigs keep it off.
  • When to turn it on: when your board is measurably not flat. Signs: a smooth camera-only board_point_bias pattern across the board, or a gap under a straightedge. With the shape on, the MVIS report (main since 2026-11-12) adds a Board Shape section with a map of the heights.
  • Start value: a camera–IMU run can start from an earlier estimate with board.heights_file, for example the <output>_board_shape.yaml a previous run wrote. Camera-only runs do not read it.

Conclusion:

  • A flat solve is biased and silent: on this mount it is off by 0.4–1.0 % in camera-only fx, about 1.1 % in gyro scale and about 9 mm in lever, and no check fails.
  • The shape fits better: the residual drops by about a quarter and the gyro scales sit within 0.6 % of 1, so we read the flat numbers as biased.
  • It is free here: on these runs the shape cost no repeatability and no solve time.
  • No measured reference shape: the four estimates agree with each other, but none was checked against a metrology scan of the board.
  • Who ran it: we ran every solve.
  • Gyro near 1 is a prior, not a measurement: the same T265 reads its accel scale about 2 % high with or without the shape.
  • One board, one mount: sections 1–4 use one mount on one rig. The other mount appears only in the shape comparison of section 1 and the extrinsic shifts at the end of section 3, both from one older run. We did not test other mounts.
  • Small camera-only sets: section 2 has 3 recordings per camera, with the equidistant model only.
  • Stereo settings: the stereo runs used the regression settings (two corners per tag, 5 Hz with the reference camera at 10 Hz, 15 iterations), not the mono ones (10 Hz, 30 iterations).
  • Not re-run with the shape on and off: the camera–IMU setup that also puts the T265 camera in the solve.
  • Untested cause: why the flat-board fx bias is smaller in camera–IMU than in camera-only runs.
  • Solve times: from 2-thread runs on a shared, loaded machine.
  • Recordings: the VI-Rig datasets on the Hub, calibench-vi/datasets. Please cite the VI-Rig dataset and MVIS.
  • Board config: with the shape on, in the 4 IMUs + 4 cameras example.
  • Main runs: MVIS main f902d39 (2026-11-11), unless a line says otherwise.
  • Other mount: the 7.3 mm shape of section 1 and the extrinsic shifts of section 3 come from MVIS main 644f7a2 (2026-11-06), not repeated on f902d39. Its 0.60 correlation uses the stored 15-recording shape from earlier regression rows, not recomputed against the f902d39 shape.
  • Earlier study: the development-code study in section 4 dates from 2026-10-31.