C201 Lesson 4: Reading the Result
Every calibration tool ends with a reprojection error, and that number alone cannot tell you whether the calibration is right. This lesson is about the checks that can, applied to a fisheye stereo pair. The full treatment, with every source, is on Judging a Calibration.
Terms used in this lesson
Section titled “Terms used in this lesson”See also the glossary’s calibration section.
| Term | Meaning |
|---|---|
| Training error | Reprojection error on the same images the calibration was fitted to |
| Test (held-out) error | Reprojection error on images the calibration never saw, with the intrinsics held fixed and only the target pose solved |
| Residual | The error vector at one corner: detected position minus predicted position |
| Projection uncertainty | How far, in pixels, a projected point could move given the noise in the calibration data |
| Cross-validation | Calibrating twice from independent recordings and comparing the two results in pixels |
| Epipolar residual | How far a matched point lies from the line the calibration says it must lie on in the other camera |
Why the reported error is not enough
Section titled “Why the reported error is not enough”The solver makes the reprojection error as small as it can on the images it was given, so the number it reports is a training error. The mrcal documentation names the flaw: “we can always improve this metric by throwing away some input data” (mrcal, uncertainty).
The training error misses three kinds of fault (Judging a Calibration):
- Regions the target never reached. The model can be wrong wherever there were no corners, usually the image corners.
- Errors that leave the residuals unchanged. A target printed at the wrong scale scales every translation by the same factor and leaves every pixel residual exactly as it was.
- Changes after the calibration. A head-worn rig drifts from its factory values, which no calibration report can show.
There is no universal pass mark
Section titled “There is no universal pass mark”Kalibr’s documentation gives no pass mark for the reprojection error, and no calibration tool or paper in the field guide’s sources gives a universal one (Kalibr File Reference, Judging a Calibration). Pixel errors depend on resolution, lens and detector. What the sources give are measured values, for scale:
| Quantity | Published value | Conditions |
|---|---|---|
| Training reprojection error, well-fitting model | 0.127–0.227 px mean | five fisheye and wide-angle lenses, best models (double sphere paper, Table 1) |
| Training error, poorly fitting model | 0.417 and 0.490 px mean, against 0.145 and 0.157 px for the best | 195° lens fitted with the one-parameter FOV model |
| Test error, guided calibration | 0.229 px mean, 1.651 px max | AprilCal user study, one 648 × 482 camera |
The rows are taken from the field guide’s reference table, which lists more. In our experience, a sharp, well-lit, well-covered calibration gives reprojection errors well under one pixel, and errors of a pixel or more are a sign to check blur, focus, the target measurements and the model before using the result (Kalibr File Reference). That is a prompt to look, not a threshold.
Check 1: coverage and the shape of the residuals
Section titled “Check 1: coverage and the shape of the residuals”Look at where the corners landed before any average (Judging a Calibration):
- Corners everywhere. Detections should reach all four edges and corners of both images. In Kalibr’s
report-cam.pdf, the reprojection-errors page draws every detected corner on the image. - Error flat with angle. On Kalibr’s polar error page, residuals should stay level out to the widest angle. A rise toward the edge points to a model that does not fit the lens, or to too few views there.
- No pattern in the residual vectors. Detector noise points in random directions; a systematic shift near the edges means the model is wrong, even when the average is small. mrcal’s guide says the same: “There should be no discernible patterns to the residuals” (how-to-calibrate).
In Kalibr’s results-cam.txt, the reprojection error is given as a mean and a standard deviation in x and y. The mean should be close to zero; a mean far from zero means the errors lean one way. The “+-” on each parameter is its estimated standard deviation, and a large one means the data did not pin that parameter down (results-cam.txt). Check the target block at the end of the file too: it should hold the dimensions you measured.
Check 2: projection uncertainty
Section titled “Check 2: projection uncertainty”Per-parameter standard deviations are hard to read, because intrinsics and distortion terms trade off against each other. mrcal turns them into one picture: mrcal-show-projection-uncertainty maps, across the image, how far a projected point could move given the noise in the data. The uncertainty is lowest at the range where the board was observed, so calibrate at the distances you will work at (Judging a Calibration, check 2). mrcal’s guide: “If the uncertainty is poor in some region, you need more chessboard observations in that area.”
Check 3: a repeat calibration
Section titled “Check 3: a repeat calibration”A rig that has not changed should calibrate to the same result from two independent recordings, compared in pixels, not parameter by parameter. Parameters alone mislead: in the double sphere paper, high-order Kannala–Brandt coefficients varied by hundreds or thousands of per cent between recordings while the projections stayed nearly identical (check 4).
mrcal’s cross-validation compares two calibrations with mrcal-show-projection-diff. If the model fits, the difference is about the sum of the two uncertainties, and “if we see a cross-validation sample that’s far above double the uncertainty, either we got really unlucky or we have model errors.” Its how-to guide calls the cross-validation diffs “the single most important diagnostic output”. The guide splits one dataset into odd and even frames for this, and warns that if the board was moved very slowly, the two halves can look alike and hide a model error.
Without mrcal, hold back part of the recording, freeze the intrinsics and extrinsics, solve only the board pose in each held-out image, and report the RMS, a high percentile and the maximum error, with where in the image the largest errors sit (check 3).
Check 4: known geometry
Section titled “Check 4: known geometry”- The baseline against a ruler. Compare the translation of
T_cn_cnm1with the measured distance between the two lenses. The Kalibr wiki’s RealSense tutorial says: “Sanity check your final rotation and translation with hand-measured values.” If every translation is off by the same percentage, suspect the printed target size. - Straight lines. After undistortion to a pinhole view, straight edges in the scene must be straight, especially near the image edges (check 5).
- Depth on a known board. A wrong stereo calibration does not look wrong in a depth map: it is sharp and complete but systematically distorted in scale and shape. Comparing stereo depth with the board’s own pose catches it (check 6).
Common failure signs
Section titled “Common failure signs”| Sign | Likely cause | What to do |
|---|---|---|
| Error climbs toward the edge on the polar plot | model does not fit the lens, or no views at the edge | a fisheye model; record more edge coverage |
| Every translation off by the same few per cent | target dimensions do not match the print | measure the printed target and solve again |
| Kalibr: cameras not connected through mutual observations | too few shared views, or cameras not synchronised | record more shared views; check sync |
| Solver diverges in the first images | a bad initial guess on the focal lengths | restart (Kalibr’s advice) |
| A non-monotonic radial distortion fit | no target in the image corners | treat it as a failed calibration; record the corners |
| Transform has the right length but points the wrong way | direction convention mixed up between tools | check which frame each transform maps from and to |
Sources for the table: Kalibr workflow, common failures, stereo page, common failures and Lens Projections and Distortion.
Self-check
Section titled “Self-check”- Your Kalibr reprojection error is small, but the corner plot shows no detections in the outer third of the image. Do you accept the calibration?
- The baseline in your camchain is 3% shorter than your caliper says, and so is every other translation. What is the most likely cause?
- Two calibrations from independent recordings give k3 values that differ by several hundred per cent. Is the calibration unstable?
- In mrcal, your cross-validation diff is far above double the projection uncertainty. What does that suggest?
- Which number does the field guide give as a pass mark for reprojection error?
Answers
Section titled “Answers”- No. The model is unconstrained where the target never reached, and a low training error says nothing about those regions. Record again with edge coverage.
- The printed target is not the size in
target.yaml. A target size error scales every translation by the same factor and leaves the pixel residuals unchanged. - Not necessarily. High-order coefficients can swing widely while the projections stay nearly identical. Compare the two calibrations in pixel space instead.
- A model error: the lens model does not fit, or something in the data (non-central behaviour at close range, a warped board) is not modelled. Look at the residuals to find out which.
- None. No tool or source gives a universal pass mark; the published values are for scale only.
Sources
Section titled “Sources”- Field guide: Judging a Calibration, Kalibr File Reference, Kalibr Workflow, Calibrating a Stereo or Multi-Camera Rig, Lens Projections and Distortion, glossary.
- Kogan, D. mrcal: projection uncertainty, cross-validation and how to calibrate.
- Kalibr wiki, ETH Zurich ASL: Calibrating Intel RealSense cameras.
- Usenko, V., Demmel, N. and Cremers, D. (2018). The double sphere camera model. 3DV.
- Richardson, A., Strom, J. and Olson, E. (2013). AprilCal: Assisted and repeatable camera calibration. IEEE/RSJ IROS.