Modelcore
Brown-Conrady distortion model
Also called radial and tangential distortion, plumb bob model.
Lens distortion as even polynomials in the radius (radial terms k1, k2, k3) plus decentering terms p1, p2, applied to normalized image coordinates before K.
The Brown-Conrady model describes how a real lens moves the image of a point away from where a pinhole camera would put it. It has two parts: a radial part, a polynomial in the squared distance from the optical axis, and a tangential or decentering part, which comes from lens elements that are not exactly centered. Lens distortion acts on normalized coordinates: project, distort, then apply . In this form, with the parameters , it is the default model of OpenCV and of most calibration tools, and it is what Zhang's method and the camera calibration problem usually estimate. It suits normal and moderately wide lenses; fisheye lenses need the Kannala-Brandt model or the unified model, and the division model is a one parameter alternative that is easier to invert.
The machine
Input. A point of the world, the pose , the intrinsic matrix , and the distortion parameters.
Step 1: project. with , and the normalized coordinates are , . Let .
Step 2: distort.
The factor in parentheses is the radial part. It scales the point along the ray from the principal point. The terms with and are the decentering part; they also move the point at right angles to that ray.
Step 3: apply K. and .
Parameters.
- : radial coefficients. With the image of a square bulges outward in the middle (barrel distortion, typical for wide lenses); with the corners stretch (pincushion, typical for telephoto lenses).
- : decentering coefficients, usually small, of order .
- Extensions in OpenCV: the rational model multiplies by , and the thin prism model adds to and to . Tools differ in the order and the sign of and , so check the convention before you copy values between tools.
Domain. The model is used where the radial map is increasing. Outside this range two rays map to the same pixel, and the fit has no meaning there. Since for a ray at angle to the optical axis, the model can never reach degrees.
Inverse. Undistortion maps a distorted point , from , back to . It has no closed form in general. Two methods are common:
- Fixed point iteration, as in OpenCV: start at and repeat and , where is the radial factor and the decentering terms. This is fixed point iteration. It converges when the distortion is mild, and it can fail near the edge of a strong wide lens.
- Newton's method on the system, with the Jacobian of Step 2. It converges quadratically from a good start.
An undistorted image is made by the inverse warp: for each output pixel, apply the forward model to find where to read in the input, and interpolate (see image warping). So making an undistorted image needs only the forward model.
What it counts
The model predicts the pixel of each 3D point. Calibration chooses the parameters that minimize the sum of squared reprojection errors over many points with known structure, usually by Levenberg-Marquardt. The quantities to report are the RMS reprojection error in pixels and the spread of the parameters. The model is an empirical fit, not a law of optics: the polynomial has no physical meaning beyond the range of radii covered by the data, and higher terms can make it go wild outside that range. Brown (1971) also used the plumb line test: images of straight lines must be straight after undistortion, which needs no 3D target at all.
Worked example. Let , , , and , , , , . Take the normalized point , so .
- Radial factor: .
- Decentering: and .
- Distorted: and .
- Pixels: the ideal pixel is , and the distorted pixel is , about 18.8 pixels closer to the principal point. This is barrel distortion.
Undistortion of by fixed point iteration gave errors (distance to ) of , , , after 1 to 4 steps, a linear rate with a factor of about 0.09. Newton's method gave , and below after 1 to 3 steps. A script computed these values.
Relation to other models
- Pinhole. All parameters zero. The pinhole model and the camera projection matrix describe Steps 1 and 3 only.
- Tsai's model. Tsai's method uses only the radial part, often only , and the radial alignment constraint relies on this: radial distortion does not change the direction from the principal point.
- Division model. The division model writes the undistorted point as the distorted one divided by . It goes in the other direction, from distorted to undistorted, and with one parameter both directions have a closed form. With one parameter each, the two models agree to first order in with , and they differ for wide lenses.
- Fisheye models. The Kannala-Brandt model writes the image radius as an odd polynomial in the angle , not in , so it can handle fields of view up to and beyond 180 degrees. The unified model projects onto a sphere first. Mei and Rives add Brown-Conrady terms to the unified model.
- Distortion in robotics and graphics. The same polynomial is used to simulate lens effects in rendering, and as the default camera model of many SLAM systems for normal lenses.
Known results in the model
- Fold over. With only , the radial map has its maximum at , with value . For , (a ray at about 46.5 degrees from the axis) and the largest distorted radius is about . A distorted radius of then has two preimages, and . Undistortion must pick the one below , and a calibration with must not be used for rays beyond 46.5 degrees.
- Degree of the inverse. With radial terms only, undistortion is the root of a polynomial in : degree 3 with alone (solvable by Cardano's formula), degree 5 with , and degree 7 with . With decentering terms, it is a nonlinear system. In practice it is solved by iteration, not by a formula.
- Straight lines. A line through the principal point stays straight under the radial part, because radial distortion only moves points along rays from the principal point. Every other line bends. This is the basis of the plumb line method of Brown (1971).
- Coupling with K. The principal point and the decentering terms are strongly correlated in a fit: a small shift of looks like decentering distortion. So and are often fixed at 0 for good lenses.
- Small distortion. If the distortion is small, the inverse is close to the forward model with the opposite signs of and , which is a common approximation for a first guess. This is an approximation, valid to first order only.
References
- A. E. Conrady, Decentred lens-systems, Monthly Notices of the Royal Astronomical Society 79(5), 1919, 384-390, the effect of a decentred lens element on the image, the origin of the tangential terms
- Duane C. Brown, Decentering distortion of lenses, Photogrammetric Engineering 32(3), 1966, 444-462, the radial polynomial and the decentering terms of the model, derived from the Conrady analysis
- Duane C. Brown, Close-range camera calibration, Photogrammetric Engineering 37(8), 1971, 855-866, the calibration of the distortion terms, including the plumb line method
- Richard Hartley and Andrew Zisserman, Multiple View Geometry in Computer Vision, second edition, Cambridge University Press, 2004, Section 7.4, Radial distortion (the radial model on normalized coordinates, its estimation, and correction by straight lines)
- Richard Szeliski, Computer Vision, Algorithms and Applications, second edition, Springer, 2022, Chapter 2, Image formation (the part on lens distortions)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag TS280K Edit this page History Report an error Markdown