Calculate one progressive morphological ground-filter height threshold — Stepped terrain
Calculate one progressive morphological ground-filter height threshold — a worked case for stepped terrain, with explicit data, a sensitivity comparison and an independent evidence check.

The measurement question
A progressive morphological filter compares point elevation with an opened surface using a threshold that changes with window growth. In a hypothetical iteration, slope factor 0.15, cell size 1 m, window-size increase of four cells, and initial distance 0.20 m produce a threshold of 0.80 m, provided the maximum-distance cap is larger. A point exceeding that opened-surface difference becomes nonground under this test. The example explains parameter interaction rather than recommending these values for every terrain. A permissive threshold can retain low objects, while an aggressive threshold can reject genuine terrain. PDAL advises considering its SMRF alternative for most practical cases.
This is an educational case with constructed input data. It is not a report of a completed NiVO project, a flight authorization, a product performance guarantee, or evidence that the photographed location was surveyed for this example.
Case conditions and evidence
The example contains an upper terrace and a lower work surface. A single reference elevation can hide a substantial change in sensor-to-surface distance. Keep the two surfaces separate during the first comparison and identify which height reference was actually used for every recorded observation.
Compare an independently checked location on each terrace. Do not use a point on the upper surface to claim that the lower surface has the same error or observation geometry.

Reproduce the numerical check
Illustrative input data: Maximum threshold cap (max_distance) = 2 m; PMF slope factor (slope) = 0.17 dimensionless; Filter grid-cell size (cell_size) = 1 m; Current window size (current_window) = 7 cells; Previous window size (previous_window) = 3 cells; Initial tolerance (initial_distance) = 0.2 m.
Calculation: min(max_distance,slope*cell_size*(current_window-previous_window)+initial_distance).
PMF iteration height threshold = 0.88 m.
The calculation below checks one part of the evidence chain. Keep the stated units and assumptions. The output does not replace field observations, the equipment manual, or an independent assessment of the complete deliverable.
Change one assumption
Increase only pmf slope factor (slope) from 0.17 to 0.187 dimensionless. Re-evaluating the same equation gives pmf iteration height threshold = 0.948 m. The arithmetic difference from the baseline is 0.068 m.
For the comparison, only the explicitly listed input changes. All other quantities stay fixed. This isolates the mathematical response; weather, image texture, viewing geometry and equipment behaviour can change together in a real mission, so do not interpret the comparison as a flight test.
Interpret the result
Tune interacting parameters on representative terrain and compare ground and nonground errors explicitly. Use this calculation to understand one PMF decision, while evaluating the documented SMRF alternative and retaining manual review of difficult surfaces and landform transitions.
The threshold is spatially uniform for an iteration and cannot capture every local terrain condition. Buildings, steep slopes, low vegetation, gaps, and noisy elevations can defeat simple tuning; reducing nonground contamination may simultaneously increase rejected terrain points.
Separate an arithmetic result from a verified measurement. A precise number can still be based on an uncertain input. Test the assumption with an independent observation before applying the result to an acceptance decision; retain the original value when the independent check disagrees.
Independent checks and delivery
Recompute one iteration's threshold and inspect points near its decision boundary against the opened surface. Compare classified profiles with independently surveyed terrain across flat, sloping, and vegetated patches, retaining confusion evidence rather than only an attractive coloured cloud.
Package the height reference, the terrace boundary and the observed transition zone. State where the surface was not directly observed and where a model filled a gap.
Deliver the original observations, the calculation inputs, their units, the processing settings and an exception log alongside the interpreted output. A reviewer should be able to repeat the arithmetic and identify which observations support the conclusion. Preserve rejected observations with reasons instead of silently removing them.



