Camera calibration and geometric correction
UAT 451 UAS Technology for Surveying, Mapping and Photogrammetry
Lesson
By the end of this module you will be able to
- Explain the Brown lens distortion model and compute point shifts from radial distortion
- Compare pre-flight calibration with self-calibration during the adjustment
- Explain the causes of doming in drone models and how to reduce it
- Explain tying the model to a coordinate system with a seven-parameter transformation and control points
Why this matters
Real lenses do not project perfectly straight lines as the theory in module 7 assumes. Straight lines on the ground may curve slightly in the image, especially near the edges. Left uncorrected, small errors at the edge of every image accumulate into a model that bulges or sags across the whole area, something research often finds in drone work using only vertical images. This module covers describing, estimating and reducing these errors.
The lens distortion model
The widely used model comes from Brown (1971) and splits distortion into two parts.
- Radial: points shift towards or away from the image centre, growing with distance from it. If points move inward, straight lines bulge outward in barrel distortion; if outward, they bend inward in pincushion distortion
- Tangential: caused by lens elements not being exactly perpendicular to the sensor, usually much smaller than radial
The radial part is written as
where and are normalised coordinates (divided by the focal length in pixels) and are coefficients to be estimated.
Example 1 How far does a point shift at the image edge?
The values and are examples for a wide-angle lens.
import math
F_PX = 12.3 / 0.00328 # focal length in pixels
K1, K2 = -0.10, 0.02 # example radial distortion coefficients (Brown model)
W, H = 5280, 3956
corners = {"centre": (0, 0), "half-way": (W / 4, H / 4), "corner": (W / 2, H / 2)}
for name, (px, py) in corners.items():
x, y = px / F_PX, py / F_PX # normalised coordinates
r2 = x * x + y * y
factor = 1 + K1 * r2 + K2 * r2 * r2
shift = math.sqrt(r2) * abs(1 - factor) * F_PX
print(f"{name:<9} r = {math.sqrt(r2):.3f} point moves {shift:6.1f} px")
centre r = 0.000 point moves 0.0 px
half-way r = 0.440 point moves 30.7 px
corner r = 0.880 point moves 215.8 px
The centre does not move at all, half-way to the corner a point moves about 31 pixels, but at the corner it moves about 216 pixels. Distortion is therefore far from small and must be estimated to a fraction of a pixel, which is possible because many tie points spread over the whole image.
Calibrating before flight or during adjustment
- Pre-flight calibration photographs a checkerboard or a target field of known positions from many angles, giving precise values under lab conditions, but they may change with temperature, focus or vibration
- Self-calibration lets the bundle adjustment estimate lens values together with camera positions. Brown (1971) laid the foundations of this method, and current drone software uses it by default. Its advantage is that it gives that day’s actual values; its drawback is that with weak imaging geometry, lens values and camera positions become correlated and cannot be separated
The most important correlation is between focal length and flight height. In the simple vertical case , so if is misestimated, every height is wrong by the same proportion.
Example 2 A tiny focal length error, how large a height error?
H = 90.0 # distance from camera to ground (m)
for err_pct in (0.1, 0.5, 1.0): # error in the estimated focal length (%)
dz = H * err_pct / 100 # Z = f B / p, so dZ / Z = df / f
print(f"focal length off by {err_pct:.1f}% -> heights off by about {dz * 100:.0f} cm")
focal length off by 0.1% -> heights off by about 9 cm
focal length off by 0.5% -> heights off by about 45 cm
focal length off by 1.0% -> heights off by about 90 cm
A focal length only 0.5% off gives height errors of about 45 cm at 90 m. If every image looks straight down in parallel, the software can barely tell whether to adjust or the camera heights. Well-spread vertical GCPs and oblique images separate the two.
Doming
James and Robson (2014) showed that elevation models from drones often contain a systematic dome-shaped error, with the centre higher or lower than the edges. It arises from two factors together: near-parallel imaging directions (all vertical images) and inaccurate correction of radial distortion. They found that adding oblique images to the image set greatly reduces this error, even without control points.
Practical ways to reduce doming:
- Add oblique images, for example extra lines with the camera tilted about 20–30 degrees, or an orbit around the area
- Fly a cross-grid at slightly different heights to vary image scale
- Spread GCPs over the whole area, including the centre, not only the edges
- Test with checkpoints in the centre: if central checkpoints are offset in one direction more than edge checkpoints, suspect doming
Tying the model to a coordinate system
Without any position data, an SfM model has the right shape but unknown position, orientation and size. Tying it to a coordinate system uses a seven-parameter similarity transformation: three translations , three rotations and one scale .
At least three points of known coordinates that are not in one straight line are needed. In practice more are used, and GCPs are included inside the bundle adjustment itself, which corrects both position and model distortion rather than simply moving the whole block into place.
Module lab
Lab: calibrate the camera and test oblique images
- Photograph a checkerboard from many angles with the drone’s camera, calibrate it with the program your lecturer specifies, and record , the principal point and
- Compute the shift at the image corner from those values with the code in Example 1
- Process a vertical-only image set and one with added oblique images, using the same GCPs
- Compare the self-calibrated lens values in both cases, and the errors at checkpoints in the centre of the area
- Conclude whether adding oblique images reduced doming in your group’s data
Common mistakes
Watch out
- Locking lens values from another job without checking whether the camera or focus changed
- Flying only parallel vertical images without GCPs and then trusting the heights
- Placing GCPs only at the edges, leaving the centre free to bulge or sag
- Not checking the estimated lens values; very unusual values, such as a focal length several percent from the specification, often indicate weak geometry
- Assuming a seven-parameter transformation fixes model distortion, when it only corrects position, orientation and size
Summary
- Lenses have radial and tangential distortion; the Brown model uses , and points at the edge can shift hundreds of pixels
- Self-calibration estimates lens values with camera positions, but with weak geometry they become correlated and inseparable
- A focal length error causes height errors in the same proportion
- Parallel vertical images plus lens errors cause doming, reduced with oblique images, cross-grids and well-spread GCPs
- A seven-parameter transformation ties the model to coordinates, but using GCPs in the adjustment also corrects distortion
Check your understanding
- Does barrel distortion move points towards or away from the image centre?
- A 0.2% focal length error at 100 m gives about what height error?
- What two factors together cause doming according to James and Robson (2014)?
- What does the seven-parameter similarity transformation consist of?
- At least how many known points are needed, and under what condition?
Answers
- Towards the centre, making straight lines bulge outward
- m, or 20 cm
- Near-parallel imaging directions and inaccurate correction of radial distortion
- Three translations, three rotations and one scale
- At least three, and they must not lie in one straight line
Key formulas
| Radial distortion (Brown) | |
| Height error from focal length | |
| Seven-parameter transformation |
Key references
- Brown, D. C. (1971). Close-range camera calibration. Photogrammetric Engineering, 37(8), 855-866. link
- James, M. R., & Robson, S. (2014). Mitigating systematic error in topographic models derived from UAV and ground-based image networks. Earth Surface Processes and Landforms, 39(10), 1413-1420. https://doi.org/10.1002/esp.3609 link
- Wolf, P. R., DeWitt, B. A., & Wilkinson, B. E. (2014). Elements of photogrammetry with applications in GIS (4th ed.). McGraw-Hill Education. link
- Hartley, R., & Zisserman, A. (2004). Multiple view geometry in computer vision (2nd ed.). Cambridge University Press. link
- Sampath, A., Shrestha, M., While, M., & Scholl, V. M. (2023). Guidelines for calibration of uncrewed aircraft systems imagery (Open-File Report 2023–1033). U.S. Geological Survey. link
- OpenDroneMap Authors. Ground control points. OpenDroneMap documentation (Version 3.6.0). link
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
In class / field
Lab or field practice from worksheets with a safety checklist
Learning evidence: Checked worksheets and quiz results