UAS and Lidar Data: Comparison, Fusion, and Analysis

Center for Geospatial Analytics at North Carolina State University

Corey White adapted from Helena Mitasova, Anna Petrasova, and Justyna Jeziorska

Objectives

  • Explain why lidar and UAS SfM surfaces of the same site differ
  • Evaluate the differences with difference maps and with profiles along stable features
  • Separate systematic error, processing distortion, and real change in the landscape
  • Patch and fuse DEMs with a fixed and a spatially variable overlap
  • Evaluate a fused surface with an overland flow simulation

Lidar and UAS SfM data

Point clouds from lidar

3D view of the Mid Pines lidar point cloud: sparse white ground points in regular scan lines on a black background, red-brown tree points along the far edge, and a rectangular building footprint
  • The measured variable is the time of flight of each pulse
  • Georeferencing from the platform position (GNSS) and orientation (IMU), fused in the INS
  • Each (x, y, z) comes from range, position, and attitude; ground control serves only as a check

Point clouds from SfM

Perspective view of the dense UAS SfM point cloud of the same fields: near-continuous light-toned ground, crop rows as dark stripes, red-brown trees at the horizon, and a building
  • The measured variable is reflected light captured as overlapping images
  • Georeferencing from GCPs, or from the camera positions when the UAS carries RTK or PPK GNSS
  • Each (x, y, z) is reconstructed from matched image features

Properties of lidar and SfM point clouds

Airborne lidar

  • Penetrates vegetation, several returns per pulse
  • Shifts between swaths, the corduroy effect
  • Regional coverage, repeated every few years
  • High cost per flight, low cost per hectare

UAS SfM

  • Very high point density, color on every point
  • Cannot see the ground under vegetation
  • Distorted by cast shadows and by weak GCP layouts
  • Low cost per flight, limited area, flown on demand

The errors and distortions of the two methods are different and independent, so each surface can be used to check the other

Motivation for fusion

  • Low cost DEM updates where the landscape changes fast: construction sites, mines, eroding coasts
  • Replace vegetation in a UAS DSM with lidar bare ground
  • Watershed analysis when the UAS mapped only part of the watershed
  • More accuracy and detail over stable features: buildings, bridges, road surfaces

Fusion techniques

Approach Cost
Merge the point clouds, bin or decimate, interpolate once Heavy computation, one consistent surface
Interpolate each, sample randomly, patch, reinterpolate Loss of detail, slow
Interpolate each and patch the rasters Fast, but a sharp edge at the seam
Smooth fusion of the rasters Fast, no edge; both DEMs must share a resolution

Workflow

  1. Evaluate both point clouds and choose a common resolution
  2. Interpolate the lidar and the UAS DEMs at that resolution
  3. Map and measure the differences between them
  4. Identify systematic errors and distortions; correct or exclude them
  5. Fuse with a smooth overlap and check the result

Difference maps and profiles

Identifying distortions from processing

Difference map: one surface subtracted from the other cell by cell, r.mapcalc; the pattern tells you whether you are looking at error, distortion, or real change

Difference map of the lidar DSM minus the June 2015 Agisoft DSM over shaded relief: curved crop fields in yellow and orange where the UAS surface is 0.5 to 1 m higher, cyan patches where it is lower, forest edges in orange and blue, legend from minus 1 to 1 m, 500 m scale bar

Lidar DSM minus Agisoft DSM

The same difference map computed with the Pix4D DSM: the same yellow and orange crop fields, with larger cyan areas in the northern fields where the Pix4D surface sits below the lidar

Lidar DSM minus Pix4D DSM

Identifying changes in topography

Difference map of the 2013 lidar DSM minus the June UAS DSM: crop field strips in green where the UAS surface is up to 2.5 m above the lidar, yellow strips near zero, grey roads and bare ground, legend from 0.7 to minus 2.5 m, 100 m scale bar

Zoom of the same difference map: green crop strips and a yellow bare strip, with a thin red line where a gully has cut into the field since the lidar flight

Two photographs: tall sorghum beside a mown grass path, and below it a rill eroded into bare soil between crop rows

  • Vegetation growth or removal: the crop strips, two years apart
  • Erosion and deposition: the red gully line
  • Custom color rules center the scale on zero so that near-zero differences stay grey

Profiles: fields

Profile plot of the lidar DSM and four UAS DSMs along a 250 m line down a slope from 119 to 110 m: the lines coincide on bare ground, and the green June line rises 1 to 2 m above the others where it crosses the crop; the map at right shows the black transect
  • A vertical offset of the whole line is a systematic error
  • A local bump is vegetation, or erosion and deposition

Profiles: a building

Profile plot across a flat-roofed building: all five surfaces coincide, with the roof at 117.5 m and the ground at 113 m; the lidar line has slightly rounded corners at the roof edges; the map at right shows the transect across a rectangular roof
  • High accuracy in all surfaces, less detail in the lidar at the roof edges
  • Negligible systematic error between lidar and UAS

Profiles: a road

GRASS GUI with the Profile Tool plotting the lidar minus Agisoft difference along a 50 m road transect, values between minus 0.04 and 0.05 m, a Statistics window showing a mean of 0.009 m and a standard deviation of 0.02 m, and the map display with the difference map and the dashed transect on the road
  • Roads and parking lots are easy to find and do not grow
  • Lidar and UAS SfM agree within 4 cm here, with a mean offset under 1 cm

Correcting systematic errors

Systematic error: a difference that follows a rule over the whole surface, a constant shift or a tilt, as opposed to random noise or local change

  • A constant vertical shift (GNSS datum or antenna height): subtract the median difference over stable features
  • A tilt (weak GCP geometry): fit a plane or a low-order polynomial to the differences and subtract it
  • Complex SfM distortions: interpolate the GCP residuals or the lidar differences and subtract that surface
  • Well distributed, accurate GCPs prevent most of this (4A)

Patching

Updating a lidar DEM by patching

Patching: filling the cells of one raster with another where the first has data, r.patch; the first input wins wherever it is not null

Elevation map from 88 to 156 m in green, yellow and orange with a textured UAS patch inserted into the smooth lidar DEM along a straight seam

Shaded relief of the patched DEM: smooth lidar surface on the left, textured UAS surface with crop rows on the right, and a visible vertical seam and a horizontal step between them

A UAS DEM patched into a lidar DEM, elevation and shaded relief (images by Brendan Harmon)

Edge between the patched DEMs

Shaded relief labeled UAS at the top and Lidar at the bottom: a sharp line separates the smooth lidar relief from the UAS relief with its crop rows
  • A step of a few centimeters at the seam, and a change of texture
  • Water flow follows the step: an artificial channel along the edge

Smooth fusion

Smooth fusion

Smooth fusion: a weighted average of the two surfaces across an overlap zone along the edge, the weight going from one surface to the other with the distance from the edge; r.patch.smooth in GRASS

Colored shaded relief, yellow to green by elevation, of a patched DSM with a visible horizontal seam line running across the field

Patched

The same area after smooth fusion: no seam, and the curved crop rows blend into the smooth surrounding surface

Fused

Fusion method

A linear combination of the two elevation surfaces \(z_A\) and \(z_B\), weighted by the distance \(d\) to the edge of \(A\) over an overlap of width \(s\):

\[ z_{AB} = w\, z_A + (1 - w)\, z_B \] \[ w = \begin{cases} d / s & 0 \le d < s \\ 1 & d \ge s \end{cases} \]

Diagram: at the top, area A in black inside area B in grey with an overlap band of width s along the edge of A; below, profiles of A, B and the fused AB, with weight w equal to 1 inside A, between 0 and 1 across the overlap, and 0 outside

Influence of the overlap width s

Overlap width: how far into the updated surface the blend reaches; too narrow leaves a visible step, too wide erases detail of the better surface

Three shaded relief panels of the same patch edge with overlap widths of 0, 5 and 20 m: the seam is sharp at 0 m, faint at 5 m, and gone at 20 m

Fusion with spatially variable overlap

  • The width \(s(x, y)\) follows the elevation difference \(\Delta z\) between the two surfaces along the edge
  • Wide transition where they disagree, narrow where they agree
  • Fine features of both surfaces survive where the difference is small

The same fusion diagram with a spatially variable overlap width s of x and y around area A, and the elevation difference delta z between the A and B profiles marked at the edge

In GRASS: r.patch.smooth -s input_a=uas_ground input_b=lidar_dem output=fused overlap=overlap transition_angle=1.3 parallel_smoothing=13 (Petrasova et al. 2017)

Overlap width from the elevation difference

Two panels over shaded relief: the absolute difference between the two DEMs from 0 to 0.3 m in pink to red, labeled small difference and large difference, and the resulting weight raster from 0 to 1 in purple to yellow, labeled narrow zone and wide zone; 50 m scale bar

Patched and fused lidar and UAS DSMs

Shaded relief of the Mid Pines fields with the clipped UAS DSM patched into the lidar DSM: textured crop rows inside the UAS area and straight seams visible along the clip boundary; 100 m scale bar

Patched

The same area after smooth fusion with a 20 m overlap: the seams along the clip boundary are gone

Fused, \(s = 20\) m

Fusing UAS bare ground with the lidar DEM

Shaded relief with the UAS bare ground highlighted in yellow: the bare field strips, roads and lawns are yellow, while the crop strips stay unhighlighted and textured

UAS cells within 0.3 m of the lidar ground, in yellow

Shaded relief of the fused bare ground: the textured crop strips are replaced by smooth lidar ground, with yellow where the UAS ground was kept

Fused bare ground

Spatially variable overlap at Mid Pines

The spatially variable overlap raster drawn over shaded relief: purple to yellow bands along the edges of every bare ground patch, wide where the UAS and lidar surfaces differ and narrow where they agree; 100 m scale bar

Overland flow simulation

Modeling overland flow at high resolution

  • Real depressions are features, not errors to fill
  • Water ponds, overtops barriers, and splits: standard flow routing cannot represent this
  • A noisy surface needs a robust algorithm that does not chase every cell

Path sampling: a stochastic solution of the flow continuity equations; many walkers are released as rainfall and move downslope, and their density gives the water depth; r.sim.water in GRASS (Mitasova et al. 2004)

Path sampling

3D view of a hilly terrain covered with thousands of small blue dots, the walkers of a path sampling simulation

Walkers released over the terrain

The same 3D terrain with the simulated water depth in yellow: streams in the valleys and ponds in the flat areas

Water depth from the walker density

Flow over a UAS mapped field

3D view of simulated water depth from 0 to 0.34 m, yellow to blue, on the June UAS DSM: water pools in cyan along the edges of the crop fields, with the crop rows acting as barriers

The crop surface acts as a barrier: water ponds against it instead of flowing through

Flow on a patched versus a fused DEM

Simulated water depth over shaded relief of a patched DEM: a straight blue channel follows the patch edge across the field; 50 ft scale bar

Patched: an artificial channel along the seam

The same area on a smoothly fused DEM: the water follows a natural channel and the straight artificial channel is gone

Fused: the flow follows the terrain

Assignment example: simple and smooth patching

Simulated water depth, yellow to blue, over the Mid Pines fields on the simply patched DSM: water collects in blue lines along the straight patch edges and along the field boundaries

r.patch

The same simulation on the DSM smoothed with a 20 m overlap: the straight edge lines are gone, and water still pools along the crop strips

Weighted average, \(s = 20\) m

Assignment example: DSM and bare ground

Simulated water depth on the smoothly patched DSM: water pools in blue along the crop strips and field edges

Smooth patched DSM

The same simulation on the fused bare ground: water flows in natural channels across the fields toward the stream in the southeast, and the crop barriers are gone

Fused bare ground

Key terms

Difference map: one surface minus the other, cell by cell; the pattern separates error, distortion and change

Systematic error: a shift or tilt that follows a rule over the whole surface, found with profiles over stable features

Patching: filling one raster with another where the first has data; fast, but leaves a seam

Smooth fusion: a distance-weighted blend of two surfaces across an overlap zone along the edge

Overlap width: how far the blend reaches; fixed, or variable with the elevation difference at the edge

Path sampling: a stochastic overland flow simulation that keeps depressions and ponding; the test for a fused surface

Wrap-up

Assignment 5A: Fusion of UAS and lidar data: map and measure the differences between the 2013 lidar DSM and two June 2015 UAS DSMs, patch and fuse the UAS DSM into the lidar, build a fused bare ground, and compare the overland flow simulated on each surface

References

Mitasova, Helena, Chris Thaxton, Jaroslav Hofierka, Richard McLaughlin, Amber Moore, and Lubos Mitas. 2004. “Path Sampling Method for Modeling Overland Water Flow, Sediment Transport, and Short Term Terrain Evolution in Open Source GIS.” In Computational Methods in Water Resources: Proceedings of the XVth International Conference, vol. 55. Developments in Water Science. Elsevier. https://doi.org/10.1016/S0167-5648(04)80159-X.
Petrasova, Anna, Helena Mitasova, Vaclav Petras, and Justyna Jeziorska. 2017. “Fusion of High-Resolution DEMs for Water Flow Modeling.” Open Geospatial Data, Software and Standards 2 (1): 6. https://doi.org/10.1186/s40965-017-0019-2.