← Back to the scanner case study
Calibration · Metrology · Numerical optimization · Python/C++/CUDA
Rebuilding production calibration
An intraoral scan is used to make restorations that have to fit a patient's teeth, and every measurement in it depends on the scanner's calibration. This rebuild of the production calibration software extends from the legacy scanners to the client's next generation and is hardened against poor captures and outliers.
Where calibration errors go
A calibration error does not stay in calibration: it is built into every surface the scanner reconstructs afterward, and no later stage can remove it. This work replaced the legacy production calibration software with a new implementation, generalized so that it applies to both the legacy scanners and the client's next generation. It runs from the image measurements to the fitted model: target detection, centroid refinement, pattern-label validation, and the camera and pattern solvers.
Detection and pattern validation
Camera calibration uses observations of a patterned target. Fixed detection thresholds can reject valid pattern elements, so detection now relies on the target's spatial structure, and element labels stay consistent across calibration images. The estimate of each feature's center is also more accurate under uneven illumination.
Structured-light observations carry decoded labels identifying portions of the projected pattern. A CUDA validation stage checks those labels against the pattern's expected spatial relationships. It rejects inconsistent labels and corrects selected decoding errors before depth is computed.
Solvers and models
The rebuilt numerical solvers use analytical Jacobians and Gauss–Newton steps with Levenberg–Marquardt damping. Outlier rejection first identifies points by their deviation from the median, then refits with iteratively reweighted least squares.
One fitted parameter proved unidentifiable: changes to it could be absorbed by other parameters without changing the model's prediction. Its value is now fixed, which removes that freedom from the solve.
Perspective makes a calibration pattern element's image trajectory a Möbius function of stage position. Replacing the linear trajectory model with that form reduced the median per-element trajectory RMS residual by 55% in a recorded development comparison.
Measuring accuracy against ground truth
A scanner's headline accuracy number hides a sum of mechanisms: sensor noise, calibration bias, registration drift, fusion artifacts. Improving any of them first requires instruments that can tell them apart against real ground truth.
The evaluation instruments use methods informed by ISO 20896-1:2019. They were used to investigate the error budget over a recorded corpus of model scans against industrial ground truth. Comparing individual frames, estimated motion, and reconstructed surfaces helped distinguish errors already present in the measurements from those introduced downstream.
One investigation characterized a small periodic error in the calibration stage's leadscrew, which the standard sweep could not have resolved: a periodic signal can only be seen if you sample it more than twice per cycle — its Nyquist rate — and the sweep stepped more coarsely than that, folding the ripple into what read as noise.
Calibration's own residuals are a narrower measure. Camera calibration reports pixel reprojection residuals; pattern calibration reports surface-fit residuals in millimeters. Both describe agreement with the observations used for fitting, which is why reconstructed surface accuracy is evaluated separately.
Client work for Planmeca, formerly E4D Technologies, described at a technical level. The work described is my own unless noted otherwise. References are available on request.