A corrected image has straighter lines, but that visual improvement does not establish that every measured dimension is correct. The software has applied a geometric model using estimated parameters. Its usefulness depends on whether that model represents the imaging arrangement and the measurement being attempted.
Lens calibration is therefore more than choosing a distortion slider. The camera projection, distortion coefficients, image coordinates, and observed calibration features have distinct roles.
Projection and distortion answer different questions
An ideal perspective camera maps three-dimensional points to an image according to their position relative to the camera. A tilted rectangular surface can appear trapezoidal even with a perfectly modeled lens. That projection is not automatically a lens defect.
Lens distortion changes the mapping relative to the chosen ideal camera model. Correcting it does not, by itself, turn every tilted or three-dimensional object into an orthographic engineering drawing.
Edmund Optics' Distortion and Telecentricity application note distinguishes distortion from parallax and geometric projection. Its discussion explains why correcting one source of displacement does not eliminate the others. Its comparisons do not establish a recommendation for any particular robot lens.
A robot measuring a feature must still relate the resulting image coordinates to the relevant object geometry. Straightening lines and determining physical dimensions are connected but separate operations.
A deliberately small radial model
OpenCV's Camera Calibration tutorial, version 4.12.0, introduces radial and tangential distortion alongside the intrinsic camera matrix. For the following original example, retain only one radial coefficient and set every other distortion term to zero.
Use normalized image coordinates x and y, with r² = x² + y². Define the forward radial model as:
x_distorted = x × (1 + k1 × r²).
y_distorted = y × (1 + k1 × r²).
Assume k1 = -0.10. This invented coefficient describes the example only; it is not a calibration result for a commercial lens.
For the ideal point x = 0.50, y = 0, r² is 0.25. The radial factor is 0.975, so the distorted coordinate is x_distorted = 0.4875.
Now assume the horizontal focal-length parameter is 800 pixels and the principal point remains fixed. The horizontal shift is 800 × (0.50 - 0.4875) = 10 pixels toward the principal point.
At x = 0.10, y = 0, the factor is 0.999 and the distorted coordinate is 0.0999. The corresponding shift is only 0.08 pixel.
Both shifts arise from the same coefficient. A single correction offset applied everywhere would not represent this radial relationship.
The model's coordinate system matters
The x = 0.50 value above is normalized; it is not pixel column 0.50. Its conversion to a pixel location uses the focal-length and principal-point parameters.
Applying a coefficient fitted in normalized coordinates directly to raw pixel coordinates would change the meaning of r² dramatically. An apparently minor unit or coordinate mismatch can therefore create a large correction error.
Cropping or resizing an image also changes the pixel-coordinate description. A crop can move the principal point relative to the new image origin, while resizing changes pixel scales. A stored parameter set cannot be interpreted without knowing the image geometry it accompanies.
These are geometric consequences of the mapping, not evidence that a particular software package failed.
Undistortion is an inverse problem
The forward model predicts where an ideal ray appears in the distorted image. Recovering the ideal coordinate requires inverting that relationship.
For the outer point, the observed value 0.4875 corresponds to ideal value 0.50 in the stated model. Merely reversing the sign of k1 and applying the same forward expression to 0.4875 gives approximately 0.499086, rather than exactly 0.50.
At the assumed 800-pixel scale, that shortcut leaves approximately 0.73 pixel of horizontal discrepancy. It is a mathematical example of why inverse correction and coefficient sign reversal are not interchangeable operations.
Image remapping introduces a further distinction. Output pixels may sample locations between original pixels, so interpolation and the chosen output camera geometry affect the corrected image. A new raster is not a collection of newly observed optical measurements.
What reprojection error describes
Calibration uses relationships between known target points and their observed image locations. Reprojection compares those observations with locations predicted by the fitted camera model and target poses.
A small residual indicates agreement for those data under the chosen definition. It does not independently verify the target dimensions, prove adequate coverage of the image edges, or establish physical measurement error at every working distance.
The summary statistic also matters. For hypothetical residual magnitudes of 0.2, 0.2, 0.2, and 2.0 pixels, the arithmetic mean is 0.65 pixel, while the root mean square is approximately 1.015 pixels. Both summarize the same four observations differently.
Neither number is a universal acceptance threshold. A report should identify the metric and the data it summarizes before interpreting a change as improvement.
The operating arrangement remains part of the result
Changing focus, zoom, the lens assembly, or the pixel-coordinate geometry can alter the relationship that was calibrated. An unchanged camera model name does not prove an unchanged optical arrangement.
Likewise, a model fitted to clear static target features does not explain motion blur, row-time distortion, hidden surfaces, or an incorrect object-depth assumption. Adding distortion coefficients cannot automatically repair unrelated missing information.
For robot vision, a useful calibration record preserves the model, parameter conventions, image geometry, and optical configuration together with evidence relevant to the intended measurement. The result is a defined geometric relationship whose limits can be evaluated, rather than a general claim that the image has become accurate.
Sources checked October 23, 2026:
OpenCV, Camera Calibration, version 4.12.0 tutorial: https://docs.opencv.org/4.12.0/dc/dbb/tutorial_py_calibration.html
Edmund Optics, Distortion and Telecentricity, Imaging Resource Guide Section 4.2, web edition as accessed: https://www.edmundoptics.com/knowledge-center/application-notes/imaging/distortion-and-the-telecentricity-specification/
Image note: The accompanying site-library robot vision scene is a conceptual illustration. It is not a measured distortion map, a verified OpenCV calibration, or evidence of a particular lens's accuracy.