Module 10/10 · Weeks 15 · 14 h

Orthophotos, surface models, volumes and quality assurance

UAT 451 UAS Technology for Surveying, Mapping and Photogrammetry

About 95 minDraft, awaiting reviewLast updated 30 September 2026

Lesson

By the end of this module you will be able to

  1. Explain the difference between an ordinary orthomosaic and a true orthophoto, and why buildings still lean
  2. Create a DSM from a point cloud and choose a suitable cell size
  3. Compute stockpile volume from a DSM and explain the effect of the base choice
  4. Build a DTM with a morphological ground filter and explain how the window size affects it
  5. Check photogrammetric products for geometry, accuracy and completeness

Prerequisites: Module 9 Structure from motion and 3D point clouds

Why this matters

Most users never open a 3D point cloud; they use the products derived from it: orthophotos for viewing and locating, surface models for heights, and volume figures for paying for earthworks. In the case study the contractor is paid by the volume of soil excavated, so a figure off by a hundred cubic metres has real value, and how it was obtained must be explainable.

Orthophotos and leaning buildings

An orthophoto is an image corrected so every point appears as if seen from directly above, using the adjusted camera positions and a height model to remove the relief displacement of module 7. The result can be measured like a map.

But its accuracy depends on the height model used.

  • An ordinary orthomosaic: software often uses a smoothed surface, so building edges still lean or ripple and roofs may be shifted from their bases
  • A true orthophoto uses a detailed DSM with sharp building edges and chooses images that actually see each point without occlusion, so roofs sit on their bases and ground hidden behind buildings in some images is shown

In any ortho, check seamlines between images that cut through buildings or vehicles, making objects break or repeat, and moving objects such as cars or people that appear half-drawn.

From point cloud to DSM

A DSM is made by dividing the area into a grid and choosing a height for each cell from the points that fall in it, for example the maximum (the top surface) or the mean (smoother but with blurred building edges). Empty cells must be filled by estimating from neighbours and should be flagged as filled. The cell size should not be smaller than the point spacing, or the grid will be full of gaps.

Three kinds of height model must not be confused: the DSM, the top surface including buildings and trees; the DTM, the ground after filtering out objects (see the DTM section below); and the 3D mesh, which can hold walls and complex shapes that a DSM, with only one height per location, cannot.

Stockpile volume

Volume from a grid is the sum of height above the base times the cell area

The top surface comes from the DSM, but the base is the original ground under the pile, which the camera cannot see, so it must be assumed. The choice of base is the largest source of error in many volume jobs.

Example 1 A conical pile on 2% sloping ground

A pile with a 12 m base radius and 6 m height sits on ground sloping 2%. Volume is computed on a 0.5 m grid with several bases.

import math

CELL, R, TOP = 0.5, 12.0, 6.0            # cell size (m), pile base radius (m), pile height (m)
ground = lambda x, y: 10 + 0.02 * x      # original ground sloping 2% along x
xs = [CELL * (i + 0.5) for i in range(80)]           # 40 × 40 m area
dsm = {}
for x in xs:
    for y in xs:
        d = math.hypot(x - 20, y - 20)
        dsm[x, y] = ground(x, y) + max(0.0, TOP * (1 - d / R))

toe = [(20 + 12.5 * math.cos(a), 20 + 12.5 * math.sin(a)) for a in [k * math.pi / 18 for k in range(36)]]
toe_z = [ground(x, y) for x, y in toe]                 # heights at the pile toe from the DSM

def volume(base):
    return sum(max(0.0, dsm[x, y] - base(x, y)) * CELL * CELL for x in xs for y in xs
               if math.hypot(x - 20, y - 20) <= 12.5)

bases = {
    "true ground": ground,
    "flat at lowest toe": lambda x, y: min(toe_z),
    "flat at mean toe": lambda x, y: sum(toe_z) / len(toe_z),
    "plane through toe": lambda x, y: 10 + 0.02 * x,   # plane through the toe points (matches the ground here)
}
print(f"cone formula: {math.pi * R * R * TOP / 3:.1f} m3")
for name, b in bases.items():
    print(f"{name:<19} {volume(b):7.1f} m3")
print(f"a 3 cm bias over {math.pi * 12.5 ** 2:.0f} m2 adds about {0.03 * math.pi * 12.5 ** 2:.0f} m3")
cone formula: 904.8 m3
true ground           904.8 m3
flat at lowest toe   1028.3 m3
flat at mean toe      909.1 m3
plane through toe     904.8 m3
a 3 cm bias over 491 m2 adds about 15 m3

The cone formula gives m³, matching the grid result with the correct base. A flat base at the lowest toe overestimates by about 124 m³, or about 14%, because it counts original ground lying below the plane on the higher side of the slope. A flat base at the mean toe height is close in this case because the pile is symmetric and the ground is a plane, but real ground is rarely this regular, so a plane or surface through the toe points is the better choice.

A systematic vertical error matters too: a bias of only 3 cm over a pile base of about 491 m² changes the volume by about 15 m³.

Stockpile profile. The yellow line is the pile surface from the DSM, a pointed triangle. The green line is the plane through the toe, rising slightly from left to right. The dashed pink line is a flat base at the lowest toe, lying below the green line on the right
Figure 1 Stockpile profile with two base choices

A volume report must therefore always state which base was used, how the toe was drawn, the cell size and the vertical error from checkpoints, so others can recompute it. When comparing volumes between two dates, first check that the two models agree in areas that have not changed.

From DSM to DTM: ground filtering

A DTM (digital terrain model) is the bare ground, as if every building, car and tree had been lifted off. Engineers need it for contours, drainage, cut and fill, and as the base under a pile as in Example 1. The camera only photographs the top surface, so a DTM must be made from the DSM or point cloud by ground filtering: deciding for each point or cell whether it lies on the ground or on an object, then filling the object areas from the surrounding ground.

Most filters rest on one observation: ground changes height gradually, while objects rise abruptly. The morphological approach of the Simple Morphological Filter (SMRF; Pingel et al., 2013), which OpenDroneMap uses when asked for a DTM, works like this:

  1. Opening: slide a window along the surface, take the lowest value in the window (erosion), then the highest value of that result (dilation). Picture pushing a flat board as wide as the window up from underneath: any bump narrower than the board is shaved off
  2. Slope test: a cell that stands higher above the opened surface than the ground could rise across that window (slope parameter × window radius) is flagged as an object
  3. Grow the window step by step up to a maximum radius and repeat, so small objects are removed first and large ones later
  4. Interpolate the ground under flagged cells from the remaining ground cells

The most important setting is the maximum window radius. The window must be wider than the largest object to be removed, or a big building survives as a “hill”; but an overly large window on steep or broken terrain can shave off real ridges or embankment edges. In ODM these settings are --smrf-window (radius in metres, default 18) and --smrf-slope (default 0.15), and --dtm builds the model (ODM 3.6 documentation).

Example 2 A simplified ground filter on an 80 m profile

A profile across the site crosses a parked car 4 m long, a building 12 m wide and a tree 8 m wide on gently rolling ground (all values assumed). The code is a one-dimensional version of the idea above, not the full SMRF.

import math

CELL, SLOPE = 0.5, 0.15                    # cell size (m) and slope parameter (rise over run), ODM default slope
xs = [CELL * (i + 0.5) for i in range(160)]  # 80 m profile
ground = [12 + 0.03 * x + 0.3 * math.sin(x / 8) for x in xs]   # true ground (unknown in practice)
def obj_height(x):
    if 12 <= x < 16: return 1.5            # parked car
    if 30 <= x < 42: return 7.0            # building 12 m wide
    if 55 <= x < 63: return 4 + 2 * math.sin((x - 55) / 8 * math.pi)  # tree canopy
    return 0.0
dsm = [g + obj_height(x) for g, x in zip(ground, xs)]

def opening(z, r):                         # erosion (window minimum) then dilation (window maximum)
    n = len(z)
    ero = [min(z[max(0, i - r):i + r + 1]) for i in range(n)]
    return [max(ero[max(0, i - r):i + r + 1]) for i in range(n)]

def ground_filter(z, max_radius_m):
    surface, is_obj = z[:], [False] * len(z)
    for r in range(1, int(max_radius_m / CELL) + 1):
        op = opening(surface, r)
        for i in range(len(z)):
            if surface[i] - op[i] > SLOPE * r * CELL:   # rose too steeply above the opened surface
                is_obj[i] = True
        surface = op
    return is_obj

def interpolate(z, keep):                  # fill object cells linearly from the nearest ground cells
    idx = [i for i in range(len(z)) if keep[i]]
    out = []
    for i in range(len(z)):
        left = max((k for k in idx if k <= i), default=idx[0])
        right = min((k for k in idx if k >= i), default=idx[-1])
        t = 0 if right == left else (i - left) / (right - left)
        out.append(z[left] + t * (z[right] - z[left]))
    return out

for radius in (3.0, 9.0):
    is_obj = ground_filter(dsm, radius)
    dtm = interpolate(dsm, [not o for o in is_obj])
    err = [d - g for d, g in zip(dtm, ground)]
    rmse = math.sqrt(sum(e * e for e in err) / len(err))
    print(f"max window radius {radius:.0f} m: {sum(is_obj)} of {len(dsm)} cells removed, "
          f"DTM RMSE {rmse:.2f} m, worst {max(abs(e) for e in err):.2f} m")
    for name, a, b in (("car 4 m", 12, 16), ("building 12 m", 30, 42), ("tree 8 m", 55, 63)):
        cells = [i for i, x in enumerate(xs) if a <= x < b]
        print(f"   {name:<14} {'removed' if all(is_obj[i] for i in cells) else 'left in the DTM'}")
max window radius 3 m: 8 of 160 cells removed, DTM RMSE 3.19 m, worst 7.00 m
   car 4 m        removed
   building 12 m  left in the DTM
   tree 8 m       left in the DTM
max window radius 9 m: 48 of 160 cells removed, DTM RMSE 0.03 m, worst 0.09 m
   car 4 m        removed
   building 12 m  removed
   tree 8 m       removed

With a 3 m maximum radius the window is only about 6.5 m wide, so only the car is removed; the building and the tree stay in the “ground”, and the DTM is up to 7 m too high, the height of the building. With a 9 m radius all three objects are removed and the DTM follows the true ground within 0.09 m.

The DTM under the tree, however, is only an interpolation between the ground on either side. Photogrammetry sees the canopy, not the ground beneath it, unlike lidar, whose pulses can reach the ground through gaps in the leaves. Here the ground is smooth, so the guess is good; under real forest it can be far off.

So when you make a DTM: set the maximum window from the largest building or object in the area; view the DTM as a hillshade to find bumps where buildings survived and cuts where ridges were shaved off; map the areas that are pure interpolation, such as dense vegetation and building footprints; and check accuracy separately in open and vegetated ground. Edition 2 of the ASPRS positional accuracy standards uses non-vegetated vertical accuracy (NVA) to accept or reject the data, while vegetated vertical accuracy (VVA) is tested and reported without a pass or fail threshold (Abdullah, 2025).

Quality assurance of photogrammetric products

Six boxes in two rows: reprojection error and tie points; lens parameters look sensible; independent checkpoints horizontal and vertical; control distances checked in the model; holes, noise and ortho seamlines; settings and software version
Figure 2 Six checks on photogrammetric products
  1. Reprojection error and tie points: did every image register, and if not, why were images dropped?
  2. Lens parameters: are the estimated focal length and distortion sensible compared with the specification or calibration (module 8)?
  3. Independent checkpoints: report horizontal and vertical RMSE under the ASPRS standards, including central checkpoints to catch doming
  4. Control distances: measure known distances, such as a building length or a scale bar laid out on site, and compare them with the model to check scale
  5. Completeness: holes, noise and ortho seamlines, with a map showing which areas cannot be used
  6. Reproducibility: record settings, software version and the list of images used

Module lab

Lab: products and volumes

  1. Create an orthomosaic, a DSM and a DTM (--dtm, with --smrf-window set from the largest building) from the model in module 9, check for seamlines cutting through buildings and vehicles, and view the DTM as a hillshade for buildings left in it
  2. Choose one stockpile, draw its toe in GIS and compute the volume with three bases following the code in Example 1
  3. Estimate the volume uncertainty from the vertical bias found at checkpoints
  4. Measure at least two control distances in the model and compare them with tape or GNSS measurements
  5. Write a one-page quality report covering the six checks in Figure 2

Common mistakes

Watch out

  • Measuring wall lines from an ordinary orthomosaic in which buildings still lean
  • Reporting volume without stating the base, so nobody can recompute it
  • Using a flat base at the lowest point on sloping ground, overestimating volume
  • Setting the DSM cell smaller than the point spacing, leaving a grid full of filled cells
  • Making a DTM with a filter window smaller than the largest building, so the building stays in the terrain as a hill
  • Checking only reprojection error and assuming the products are accurate without independent checkpoints

Summary

  • Ordinary orthomosaics still show leaning buildings; true orthophotos use a detailed DSM and choose unoccluded images
  • A DSM is made by gridding the point cloud, with a cell size suited to point density
  • A DTM needs ground filtering; the maximum window must exceed the largest object, and ground under dense canopy is only interpolated
  • Volume ; the base is a key error source and its choice must always be stated
  • A vertical bias over area changes volume by about
  • Check six things: adjustment, lens values, checkpoints, control distances, completeness and reproducibility

Check your understanding

  1. How does a true orthophoto differ from an ordinary orthomosaic?
  2. The largest building on a site is 30 m wide. What is the smallest maximum window radius that can remove it, and is the ODM default enough?
  3. A vertical bias of 5 cm over 400 m² changes the volume by how much?
  4. Why does a flat base at the lowest toe on sloping ground overestimate volume?
  5. What do control distances check?
Answers
  1. A true orthophoto uses a detailed DSM with sharp building edges and chooses images that actually see each point, so roofs sit on their bases; an ordinary orthomosaic uses a smoothed surface, so buildings still lean
  2. The window must be wider than 30 m, so the radius must exceed 15 m; the ODM default of 18 m is enough
  3. m³
  4. It counts original ground lying between the flat base and the higher side of the slope
  5. The scale of the model compared with real distances

Key formulas

Volume from a grid
Cone volume
Volume uncertainty from bias
Object test in a morphological filter

Key references

  1. Wolf, P. R., DeWitt, B. A., & Wilkinson, B. E. (2014). Elements of photogrammetry with applications in GIS (4th ed.). McGraw-Hill Education. link
  2. OpenDroneMap Authors. Outputs. OpenDroneMap documentation (Version 3.6.0). link
  3. OpenDroneMap. OpenDroneMap documentation. link
  4. American Society for Photogrammetry and Remote Sensing. (2024). Positional accuracy standards for digital geospatial data (Edition 2, Version 2). Photogrammetric Engineering & Remote Sensing, 91(5), 247–255. link
  5. 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
  6. 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
  7. Pingel, T. J., Clarke, K. C., & McBride, W. A. (2013). An improved simple morphological filter for the terrain classification of airborne LIDAR data. ISPRS Journal of Photogrammetry and Remote Sensing, 77, 21-30. https://doi.org/10.1016/j.isprsjprs.2012.12.002 link
  8. OpenDroneMap Authors. Options and flags. OpenDroneMap documentation (Version 3.6.0). link
  9. Abdullah, Q. A. (2025). Overview of the ASPRS positional accuracy standards for digital geospatial data. LIDAR Magazine, 15(2). 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

Module quiz

This is a formative self-check, not a graded exam

Knowledge domain: Surveying, mapping and geoinformatics