Iterative Morphological Filtering for DEM Generation: Improving Accuracy and Robustness in Complex Terrains
Abstract
1. Introduction
2. Methodology
2.1. Image Blocking
2.2. Morphological Grayscale Filtering
2.3. Iterative Binarization
2.4. Connected Component Labeling
2.5. Threshold Filtering
2.6. Surface Interpolation
3. Experiments
3.1. Comparative Algorithms
3.2. Accuracy Metrics
3.3. Datasets and Results Analysis
3.3.1. Dataset 1
3.3.2. Dataset 2
4. Discussion
4.1. Treatment of Steep Slopes
4.2. Quantitative Performance and Error Trade-Off
4.3. Limitations and Scope of Application
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Guth, P.L.; Van Niekerk, A.; Grohmann, C.H.; Muller, J.-P.; Hawker, L.; Florinsky, I.V.; Gesch, D.; Reuter, H.I.; Herrera-Cruz, V.; Riazanoff, S.; et al. Digital Elevation Models: Terminology and Definitions. Remote Sens. 2021, 13, 3581. [Google Scholar] [CrossRef]
- Balasubramanian, A. Digital Elevation Model (DEM) in GIS; University of Mysore: Mysore, India, 2017. [Google Scholar]
- Sestras, P.; Badea, G.; Badea, A.C.; Salagean, T.; Roșca, S.; Kader, S.; Remondino, F. Land surveying with UAV photogrammetry and LiDAR for optimal building planning. Autom. Constr. 2025, 173, 106092. [Google Scholar] [CrossRef]
- Zhu, H.; Chen, Y. A study of the effect of DEM spatial resolution on flood simulation in distributed hydrological modeling. Remote Sens. 2024, 16, 3105. [Google Scholar] [CrossRef]
- Sohl, M.A.; Mahmood, S.A. Low-cost UAV in photogrammetric engineering and remote sensing: Georeferencing, DEM accuracy, and geospatial analysis. J. Geovisualization Spat. Anal. 2024, 8, 14. [Google Scholar] [CrossRef]
- Cirillo, D.; Tangari, A.C.; Scarciglia, F.; Lavecchia, G.; Brozzetti, F. UAV-PPK Photogrammetry, GIS, and Soil Analysis to Estimate Long-Term Slip Rates on Active Faults in a Seismic Gap of Northern Calabria (Southern Italy). Remote Sens. 2025, 17, 3366. [Google Scholar] [CrossRef]
- Tempa, K.; Peljor, K.; Wangdi, S.; Ghalley, R.; Jamtsho, K.; Ghalley, S.; Pradhan, P. UAV technique to localize landslide susceptibility and mitigation proposal: A case of Rinchending Goenpa landslide in Bhutan. Nat. Hazards Res. 2021, 1, 171–186. [Google Scholar] [CrossRef]
- Tabunshchik, V.; Gorbunov, R.; Gorbunova, T.; Pham, C.N.; Klyuchkina, A. Identification of river basins within northwestern slope of Crimean Mountains using various digital elevation models (ASTER GDEM, ALOS World 3D, Copernicus DEM, and SRTM DEM). Front. Earth Sci. 2023, 11, 1218823. [Google Scholar] [CrossRef]
- Hidayat, E.; Muslim, D.; Wibowo, D.A.; Puswanto, E.; Aribowo, S.; Mulyono, A.; Sudrajat, Y. Appraisal of active tectonics in Karangsambung Amphitheater: Insights from DEM-derived geomorphic indices and geological data. In IOP Conference Series: Earth and Environmental Science; IOP Publishing: Bristol, UK, 2024; p. 012092. [Google Scholar]
- Ressl, C.; Brockmann, H.; Mandlburger, G.; Pfeifer, N. Dense Image Matching vs. Airborne Laser Scanning—Comparison of two methods for deriving terrain models. Photogramm. Fernerkund. Geoinf. 2016, 2016, 57–73. [Google Scholar] [CrossRef]
- Zheng, Z.; Wan, Y.; Zhang, Y.; Hu, Z.; Wei, D.; Yao, Y.; Zhu, C.; Yang, K.; Xiao, R. Digital surface model generation from high-resolution satellite stereos based on hybrid feature fusion network. Photogramm. Rec. 2024, 39, 36–66. [Google Scholar] [CrossRef]
- Serati, G.; Sedaghat, A.; Mohammadi, N.; Li, J. Digital surface model generation from high-resolution satellite stereo imagery based on structural similarity. Geocarto Int. 2022, 37, 11390–11419. [Google Scholar] [CrossRef]
- Alzaghoul, E.; Al-Zoubi, M.B.; Obiedat, R.; Alzaghoul, F. Applying machine learning to DEM raster images. Technologies 2021, 9, 87. [Google Scholar] [CrossRef]
- Nilsson, H.; Pilesjö, P.; Hasan, A.; Persson, A. Dynamic spatio-temporal flow modeling with raster DEMs. Trans. GIS 2022, 26, 1572–1588. [Google Scholar] [CrossRef]
- Dehvari, A.; Heck, R.J. Removing non-ground points from automated photo-based DEM and evaluation of its accuracy with LiDAR DEM. Comput. Geosci. 2012, 43, 108–117. [Google Scholar] [CrossRef]
- DeWitt, J.; Warner, T.; Chirico, P.; Bergstresser, S. Creating high-resolution bare-earth digital elevation models (DEMs) from stereo imagery in an area of densely vegetated deciduous forest using combinations of procedures designed for lidar point cloud filtering. GIScience Remote Sens. 2017, 54, 552–572. [Google Scholar] [CrossRef]
- Sammartano, G.; Spanò, A. DEM Generation based on UAV Photogrammetry Data in Critical Areas. In Proceedings of the GISTAM, Rome, Italy, 26–27 April 2016; pp. 92–98. [Google Scholar]
- Axelsson, P. Processing of laser scanner data—Algorithms and applications. ISPRS J. Photogramm. Remote Sens. 1999, 54, 138–147. [Google Scholar] [CrossRef]
- Zhang, K.; Whitman, D. Comparison of Three Algorithms for Filtering Airborne Lidar Data. Photogramm. Eng. Remote Sens. 2005, 71, 313–324. [Google Scholar] [CrossRef]
- Meng, X. A slope-and elevation-based filter to remove non-ground measurements from airborne LIDAR data. UCGIS Summer Assembly 2005, 28. [Google Scholar]
- Ozcan, A.H.; Unsalan, C.; Reinartz, P. Ground filtering and DTM generation from DSM data using probabilistic voting and segmentation. Int. J. Remote Sens. 2018, 39, 2860–2883. [Google Scholar] [CrossRef]
- Sithole, G. Filtering of Laser Altimetry Data using a Slope Adaptive Filter. Int. Arch. Photogramm. Remote Sens. 2001, XXXIV-3/W4, 203–210. [Google Scholar]
- Vosselman, G. Slope based filtering of laser altimetry data. IAPRS 2000, XXXIII, 935–942. [Google Scholar]
- Kilian, J.; Haala, N.; Englich, M.; Iii, C. Capture Andevaluation of Airborne Laser Scanner Data. Int. Arch. Photogramm. Remote Sens. 2001, XXXI, 383–388. [Google Scholar]
- Keqi, Z.; Shu-Ching, C.; Whitman, D.; Mei-Ling, S.; Jianhua, Y.; Chengcui, Z. A progressive morphological filter for removing nonground measurements from airborne LIDAR data. IEEE Trans. Geosci. Remote Sens. 2003, 41, 872–882. [Google Scholar] [CrossRef]
- Axelsson, P. DEM generation from laser scanner data using adaptive TIN models. Int. Arch. Photogramm. Remote Sens. 2000, 33, 110–117. [Google Scholar]
- Zhang, W.; Qi, J.; Wan, P.; Wang, H.; Xie, D.; Wang, X.; Yan, G. An Easy-to-Use Airborne LiDAR Data Filtering Method Based on Cloth Simulation. Remote Sens. 2016, 8, 501. [Google Scholar] [CrossRef]
- Oshio, H.; Yashima, K.; Matsuoka, M. Generating DTM from DSM Using a Conditional GAN in Built-Up Areas. IEEE Geosci. Remote Sens. Lett. 2023, 21, 2500505. [Google Scholar] [CrossRef]
- Sithole, G.; Vosselman, G. Experimental Comparison of Filter Algorithms for Bare-Earth Extraction from Airborne Laser Scanning Point Clouds. ISPRS J. Photogramm. Remote Sens. 2004, 59, 85–101. [Google Scholar] [CrossRef]
- Kasser, M.; Egels, Y. Digital Photogrammetry; Taylor & Francis: London, UK, 2002; Volume 11, p. 221. [Google Scholar]
- Haralick, R.M.; Sternberg, S.R.; Zhuang, X. Image Analysis Using Mathematical Morphology. IEEE Trans. Pattern Anal. Mach. Intell. 1987, PAMI-9, 532–550. [Google Scholar] [CrossRef]
- Meng, X.; Wang, L.; Silván-Cárdenas, J.L.; Currit, N. A multi-directional ground filtering algorithm for airborne LIDAR. ISPRS J. Photogramm. Remote Sens. 2009, 64, 117–124. [Google Scholar] [CrossRef]
- Alexander, W.E.; Reeves, D.S.; Gloster, C. Parallel image processing with the block data parallel architecture. Proc. IEEE 2002, 84, 947–968. [Google Scholar] [CrossRef]
- Boykov, Y.Y.; Jolly, M.P. Interactive graph cuts for optimal boundary & region segmentation of objects in N-D images. In Proceedings of the Eighth IEEE International Conference on Computer Vision, ICCV 2001, Vancouver, BC, Canada, 7–14 July 2001; Volume 101, pp. 105–112. [Google Scholar]
- Sternberg, S.R. Grayscale morphology. Comput. Vis. Graph. Image Process. 1986, 35, 333–355. [Google Scholar] [CrossRef]
- Chaki, N.; Shaikh, S.H.; Saeed, K. A comprehensive survey on image binarization techniques. Explor. Image Bin. Tech. 2014, 560, 5–15. [Google Scholar]
- He, L.; Ren, X.; Gao, Q.; Zhao, X.; Yao, B.; Chao, Y. The connected-component labeling problem: A review of state-of-the-art algorithms. Pattern Recognit. 2017, 70, 25–43. [Google Scholar] [CrossRef]
- He, L.; Chao, Y.; Suzuki, K.; Wu, K. Fast connected-component labeling. Pattern Recognit. 2009, 42, 1977–1987. [Google Scholar] [CrossRef]
- Ismail, Z.; Jaafar, J. DEM derived from photogrammetric generated DSM using morphological filter. In Proceedings of the 2013 IEEE 4th Control and System Graduate Research Colloquium, Shah Alam, Malaysia, 20 August 2013; pp. 103–106. [Google Scholar]
- Anders, N.; Valente, J.; Masselink, R.; Keesstra, S. Comparing filtering techniques for removing vegetation from UAV-based photogrammetric point clouds. Drones 2019, 3, 61. [Google Scholar] [CrossRef]
- Meng, X.; Currit, N.; Zhao, K. Ground Filtering Algorithms for Airborne LiDAR Data: A Review of Critical Issues. Remote Sens. 2010, 2, 833–860. [Google Scholar] [CrossRef]
- Sulung, P.P.; Soeksmantono, B. Comparative Analysis of DTM Extraction from Airborne LiDAR Point Cloud Data with Adaptive TIN Filter, Cloth Simulation Filter, and Progressive Morphological Filter Methods. J. Geogr. Gea 2025, 25, 1–14. [Google Scholar]
- Koo, S.; Lim, E.T.; Jung, Y.H.; Suk, J.W.; Kim, S.S. Study on applicability of cloth simulation filtering algorithm for segmentation of ground points from drone LiDAR point clouds in mountainous areas. Korean J. Remote Sens. 2023, 39, 827–835. [Google Scholar]
- Li, H.; Ye, C.; Guo, Z.; Wei, R.; Wang, L.; Li, J. A fast progressive TIN densification filtering algorithm for airborne LiDAR data using adjacent surface information. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2021, 14, 12492–12503. [Google Scholar] [CrossRef]
- Chen, C.; Guo, J.; Wu, H.; Li, Y.; Shi, B. Performance comparison of filtering algorithms for high-density airborne LiDAR point clouds over complex LandScapes. Remote Sens. 2021, 13, 2663. [Google Scholar] [CrossRef]
- Chai, C.; Zhang, M.; Zuo, T.; Yang, Z.; Liu, Y.; Hou, P.; Wang, Z. Comparative Study on Point Cloud Filtering Algorithm in Constructing Mining Subsidence Model; SPIE: Bellingham, WA, USA, 2024; Volume 13223. [Google Scholar]
- Patel, H.B.; Singla, J.G. Evaluation and Analysis of Ground Filtering Algorithms for Building Height Estimation on Satellite-Based High-Resolution DEM Data. J. Indian Soc. Remote Sens. 2023, 51, 661–672. [Google Scholar] [CrossRef]
- Hudson, W.D. Correct formulation of the kappa coefficient of agreement. Photogramm. Eng. Remote Sens. 1987, 53, 421–422. [Google Scholar]













| Test Area | Algorithm | Type I Error | Type II Error | Accuracy | Kappa Coefficient |
|---|---|---|---|---|---|
| a | CSF | 19.20% | 2.06% | 71.20% | 0.5762 |
| IMF | 10.99% | 3.50% | 80.72% | 0.7106 | |
| PMF | 18.65% | 2.38% | 71.65% | 0.5807 | |
| TIN | 25.85% | 1.46% | 65.01% | 0.4562 | |
| b | CSF | 19.32% | 1.14% | 63.29% | 0.5974 |
| IMF | 9.16% | 2.90% | 77.50% | 0.7439 | |
| PMF | 21.89% | 1.45% | 60.13% | 0.5471 | |
| TIN | 11.14% | 2.78% | 73.98% | 0.7085 | |
| c | CSF | 14.36% | 1.30% | 72.21% | 0.6893 |
| IMF | 6.64% | 2.88% | 84.32% | 0.8027 | |
| PMF | 8.67% | 2.70% | 80.55% | 0.7668 | |
| TIN | 4.85% | 6.12% | 87.00% | 0.7671 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Linghu, S.; Song, W.; Lu, Y.; Xiang, K.; Liu, H.; Chen, L.; Feng, T.; Gui, R.; Zhao, Y.; Abbas, H. Iterative Morphological Filtering for DEM Generation: Improving Accuracy and Robustness in Complex Terrains. Appl. Sci. 2025, 15, 11683. https://doi.org/10.3390/app152111683
Linghu S, Song W, Lu Y, Xiang K, Liu H, Chen L, Feng T, Gui R, Zhao Y, Abbas H. Iterative Morphological Filtering for DEM Generation: Improving Accuracy and Robustness in Complex Terrains. Applied Sciences. 2025; 15(21):11683. https://doi.org/10.3390/app152111683
Chicago/Turabian StyleLinghu, Shaobo, Wenlong Song, Yizhu Lu, Kaizheng Xiang, Hongjie Liu, Long Chen, Tianshi Feng, Rongjie Gui, Yao Zhao, and Haider Abbas. 2025. "Iterative Morphological Filtering for DEM Generation: Improving Accuracy and Robustness in Complex Terrains" Applied Sciences 15, no. 21: 11683. https://doi.org/10.3390/app152111683
APA StyleLinghu, S., Song, W., Lu, Y., Xiang, K., Liu, H., Chen, L., Feng, T., Gui, R., Zhao, Y., & Abbas, H. (2025). Iterative Morphological Filtering for DEM Generation: Improving Accuracy and Robustness in Complex Terrains. Applied Sciences, 15(21), 11683. https://doi.org/10.3390/app152111683

