Iterative Morphological Filtering for DEM Generation: Improving Accuracy and Robustness in Complex Terrains
Abstract
Accurate terrain modeling from high-resolution digital surface models (DSM) is critical for geosciences, geology, geomorphology, earthquake studies, and applied geology. However, existing filtering methods such as progressive morphological filtering (PMF), cloth simulation filtering (CSF), and progressive TIN densification (TIN) often struggle with complex topography and urban structures, leading to either excessive ground loss or incomplete object removal. Furthermore, some of these algorithms are only specialized for point cloud data and are not optimized for grid data. To address these limitations, we propose an iterative morphological filtering (IMF) algorithm that introduces a binary surface edge-segmentation strategy. The method refines object–ground separation by combining iterative morphological operations with block-based graph-cut stitching, thus enhancing continuity and accuracy in challenging terrain. Validation on UAV-derived DSM over the Haihe Basin in China and the ISPRS Vaihingen dataset shows that IMF achieves notable accuracy improvements: the Vaihingen test areas yielded an average Type I error of 8.93%, Type II error of 3.09%, overall accuracy of 80.85%, and Kappa coefficient of 0.7524, while the Haihe Basin test areas achieved Type I and II errors of 2.22% and 1.87%, overall accuracy of 89.32%, and a Kappa coefficient of 0.8706. These results demonstrate that IMF outperforms conventional methods by reducing both Type I and Type II errors, producing terrains highly consistent with real conditions. This innovation provides a robust and scalable solution for digital elevation models (DEM) generation from gridded DSM, offering significant value for large-scale environmental monitoring and flood risk assessment.