Photogrammetry principles
UAT 451 UAS Technology for Surveying, Mapping and Photogrammetry
Lesson
By the end of this module you will be able to
- Explain central projection and the collinearity condition between a ground point, the lens centre and the image point
- Compute the relief displacement of a building in a vertical image
- Explain depth from parallax and compute depth precision from the base-to-height ratio
- Explain interior and exterior orientation of a camera
Why this matters
Image-processing software rests on a few geometric principles photogrammetrists have used for decades. Understanding them explains why buildings lean in an orthomosaic, why very high overlap between one pair of images gives less precise depth, and why we fly the way we do rather than accepting the program’s defaults.
Central projection
A camera is a central projection: light from every ground point travels in a straight line through a single lens centre onto the sensor. The collinearity condition states that the ground point, the lens centre and the image point lie on one straight line. Its equations are at the heart of all image adjustment.
Using it requires two groups of values.
- Interior orientation: the camera’s own values, namely focal length, principal point position and lens distortion (module 8)
- Exterior orientation: the camera’s 3D position and its three rotation angles when each image was taken
Relief displacement
A consequence of central projection is that objects higher than the reference ground appear shifted away from the nadir in a vertical image, so building tops seem to lean outward. The displacement in the image is
where is the image distance from the nadir to the top of the object, the object’s height and the flight height above the object’s base.
Example 1 How far does a 20 m building lean in the image?
The code computes the image positions of the building base and top with similar triangles, then checks that the result matches .
H, h, F_MM, PIX_MM = 90.0, 20.0, 12.3, 0.00328 # flight height, building height (m), focal length, pixel size (mm)
for R in (10, 30, 60): # horizontal distance from nadir to the building base (m)
r_base = F_MM * R / H # base position in the image (mm from the principal point)
r_top = F_MM * R / (H - h) # top position in the image
d = r_top - r_base # relief displacement
assert abs(d - r_top * h / H) < 1e-9 # matches d = r h / H
print(f"building {R:>2} m from nadir: displacement {d:.2f} mm = {d / PIX_MM:4.0f} px "
f"= {d * H / F_MM:5.2f} m on the ground")
building 10 m from nadir: displacement 0.39 mm = 119 px = 2.86 m on the ground
building 30 m from nadir: displacement 1.17 mm = 357 px = 8.57 m on the ground
building 60 m from nadir: displacement 2.34 mm = 714 px = 17.14 m on the ground
A building only 10 m from the nadir still has its top displaced about 2.9 m on the ground (119 pixels), and one 60 m away by about 17 m. This is why ordinary orthomosaics still show leaning buildings, and why measuring wall lines from raw images is badly wrong. Correcting it requires a real height model of the building (module 10).
Depth from parallax
A single image only gives the direction from the camera to a point, not its distance. When the same point is photographed from two positions a base apart, it appears in different places in the two images. This difference is the parallax . For a parallel pair of vertical images
Points closer to the camera (higher) have more parallax, just as roadside posts seem to move faster than distant mountains when you look out of a car window.
Depth precision depends on how precisely parallax is measured. If points are matched to pixels, the approximate depth precision is
So the base-to-height ratio matters greatly: a wider base gives more precise depth.
Example 2 Overlap changes the depth precision of an image pair
H, GSD, IH = 90.0, 0.024, 3956 # height (m), GSD (m), pixels along the flight line
SIGMA_PX = 0.5 # matching precision (pixels)
along = GSD * IH # ground length of an image along the line
for front in (0.8, 0.6, 0.4):
B = along * (1 - front) # base between consecutive images
sigma_z = (H / B) * GSD * SIGMA_PX # depth precision of the image pair
print(f"front overlap {front:.0%}: base {B:4.1f} m, H/B {H / B:4.2f}, depth precision {sigma_z * 100:.1f} cm")
front overlap 80%: base 19.0 m, H/B 4.74, depth precision 5.7 cm
front overlap 60%: base 38.0 m, H/B 2.37, depth precision 2.8 cm
front overlap 40%: base 57.0 m, H/B 1.58, depth precision 1.9 cm
With 80% front overlap, consecutive images are only 19 m apart, is almost 5, and depth from that pair is precise to only about 5.7 cm; 40% overlap gives about 1.9 cm. That does not mean overlap should be reduced, because high overlap makes each point appear in many images, so the software can combine widely separated pairs (wide base) with close pairs (easy matching). The final precision is much better than a single consecutive pair, which is why mapping favours high overlap.
From image pairs to many images
Traditional photogrammetry worked with stereo pairs one at a time. Modern drone work uses hundreds or thousands of images together, and the software adjusts every camera and every point at once, as module 9 will show. The geometry is unchanged: rays from several images must intersect at the same ground point.
Module lab
Lab: measure parallax and relief displacement
- Choose two consecutive vertical images from the dataset your lecturer provides that include a building of known height
- Measure the image positions (pixels) of the building base and top, and compute the displacement to compare with the code in Example 1
- Measure the parallax of the building top and of the ground beside it in both images, and compute the building height from the parallax difference
- Compute the expected depth precision with the code in Example 2, and compare it with the difference between your computed height and the true height
Common mistakes
Watch out
- Measuring distances on raw images, forgetting that scale and relief displacement vary across the image
- Thinking buildings lean in the ortho because the drone tilted, when it is an effect of central projection
- Concluding that high overlap harms depth without considering widely separated pairs
- Rotating the camera in place and expecting depth, when there is no base
- Confusing interior with exterior orientation
Summary
- A camera is a central projection; the ground point, lens centre and image point lie on one straight line
- Tall objects shift away from the nadir in vertical images,
- Depth comes from parallax, , with precision
- A wide base gives more precise depth; high overlap provides both wide and narrow bases across many images
- Interior orientation is the camera’s values; exterior orientation is its position and attitude
Check your understanding
- A 30 m building top is 40 mm from the nadir in an image flown at 120 m. How many millimetres is it displaced?
- In a vertical image, does a building top shift towards or away from the nadir?
- If the base doubles, how does the depth precision of a pair change?
- With H = 100 m, B = 25 m, a 2 cm GSD and = 0.5, what is the depth precision?
- Why does rotating a camera in place give no depth?
Answers
- mm
- Away from the nadir
- It becomes twice as good, because is inversely proportional to
- m, or 4 cm
- There is no base; rays from every image pass through the same point, so they do not intersect at a 3D position
Key formulas
| Relief displacement | |
| Depth from parallax | |
| Depth precision |
Key references
- 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
- Westoby, M. J., Brasington, J., Glasser, N. F., Hambrey, M. J., & Reynolds, J. M. (2012). 'Structure-from-Motion' photogrammetry: A low-cost, effective tool for geoscience applications. Geomorphology, 179, 300–314. link
- Mapillary. Incremental reconstruction algorithm. OpenSfM documentation. 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