Journal of Applied Mathematics and Physics
Vol.06 No.10(2018), Article ID:87961,9 pages
10.4236/jamp.2018.610171

Use of the Wavelet Transform for Digital Terrain Model Edge Detection (Special Issue―Wavelet Analysis)

Clovis Gaboardi

Military Engineers Corps of Brazilian Army (retired), Independent Researcher, São José dos Campos, SP, Brazil

Copyright © 2018 by author and Scientific Research Publishing Inc.

This work is licensed under the Creative Commons Attribution International License (CC BY 4.0).

http://creativecommons.org/licenses/by/4.0/

Received: July 30, 2018; Accepted: October 21, 2018; Published: October 24, 2018

ABSTRACT

The purpose of this work is to analyze the feasibility of using the wavelet transform in the edge detection of digital terrain models (DTM) obtained by Laser Scanner. The Haar wavelet transform and the edge detection method called Wavelet Transform Modulus Maxima (WTMM), both implemented in Matlab language, were used. In order to validate and verify the efficiency of WTMM, the edge detection of the same DTM was performed by the Roberts, Sobel-Feldman and Canny methods, chosen due to the wide use in the scientific community in the area of Image Processing and Remote Sensing. The comparison of the results showed superior performance of WTMM in terms of processing time.

Keywords:

Digital Terrain Model, Edge Detection, Wavelets Transform, Canny, Roberts, Sobel, Sobel-Feldman

1. Introduction

Edge detection of images and digital terrain models (DTM) obtained by Remote Sensing is an important research problem for mapping, especially in large scales (1:10,000 and larger), due to the need for greater detailing of the features and the large amount of digital data of the inputs used for these scales.

The wavelet transform (WT) had its origin in 1909 with the work of Alfred Haar [1] [2] [3] [4] , who described the first orthonormal function system and used it for multiscale analysis in his doctoral thesis. However, the formalization of the theory was consolidated only from the 1980s, with the works of Morlet, Mallat, Meyer and Daubechies, among others [1] [5] [6] [7] .

The wavelet transform has been widely applied in the areas of knowledge that require analysis and visualization at different scales, which makes its proper use in image processing, digital terrain modeling, cartographic generalization and geoprocessing.

The use of WT for edge detection appears in this context as a tool with great potential due to the characteristics of ease of implementation, simplicity of algorithms and speed of processing. In this paper, we used the edge detection method called Wavelet Transform Modulus Maxima (WTMM), described by [8] .

Among the traditional edge detection methods, Canny, Roberts and Sobel-Feldman are widely used in the Remote Sensing and Geoprocessing areas and for this reason they were used as reference for the validation, in this work, of the results obtained by edge detection by WTMM.

2. Fundamentals

In this section are made a brief study of the theoretical foundations and the main works carried out in the context of the edge detection with the operators of Canny, Roberts, Sobel-Feldman and WTMM. Several studies, such as those of [9] [10] [11] [12] [13] , compared the edge detection operators of Roberts, Sobel-Feldman and Canny, among others. The general conclusion of these studies is that the Canny operator presented better results than those of Roberts and Sobel-Feldman, but it is a more complex algorithm with a higher computational cost.

2.1. Roberts Edge Detector

The Roberts edge detector was created by Lawrence Gilman Roberts in his Ph.D. thesis at MIT in 1963 [14] . It is a classic edge detector that uses the directional derivative of the first order. Its implementation consists of a pair of 2 × 2 dimension convolution masks (matrices) as shown in Figure 1 for the detection of gradients.

These matrices provide maximum responses to the edges with a 45˚ direction in relation to the pixel grid and can be applied separately to the input grid to produce separate measurements of the gradient component in each orientation (called Gx and Gy). The results can then be agreed to find the absolute magnitude of the gradient at each point and the orientation of that gradient. The magnitude of the gradient is given by:

| G | = G x 2 + G y 2 (1)

And the direction of the gradient is given by:

Figure 1. Roberts operator template.

θ = arctan ( G x G y ) 3 π 4 (2)

Roberts edge detector has the advantage of simplicity of the algorithm and disadvantage of noise susceptibility.

2.2. Sobel-Feldman Edge Detector

The Sobel edge detector operator, more properly called the Sobel-Feldman operator [15] uses the first derivative, similarly to the Roberts operator, for the detection of gradients and their orientation. The Sobel-Feldman operator consists of a pair of convolution masks (3 × 3) as shown in Figure 2, which produces responses to the 0˚ and 90˚ direction edges in relation to the pixel grid. Like the Roberts operator, the matrices can be applied separately to the input grid to produce separate measurements of the gradient components in each orientation (Gx and Gy) and then agreed. By using a larger matrix, the Sobel-Feldman operator has the advantage of reducing errors due to the noise’s effects [16] .

The magnitude of the gradient is given by:

| G | = G x 2 + G y 2 (3)

And the direction of the gradient is given by:

θ = arctan G x G y (4)

2. 3. Canny Edge Detector

The Canny edge detector [17] was created by John Canny in 1986 and is also known as Canny's Great Edge Detector. It performs better than Roberts and Sobel-Feldman, but requires more computational effort. In his work, Canny considered three criteria [18] :

1) Low probability of failure: the ideal detector must find all edges and not find false edges.

2) Location Criteria: The location of the detected edges must match the actual edges.

3) Simple Response Criteria: The detector should provide a single response to a single edge.

The Canny detector implementation consists of 5 steps:

1) Application of a filter for smoothing the image, to reduce noise.

Figure 2. Sobel-Feldman operator template.

2) Obtaining the gradient with the use of convolution matrices similar to those of Roberts or Sobel-Feldman. In this step, four convolution matrices are generally applied to obtain the edges in 0˚, 45˚, 90˚ and 135˚ directions.

3) Computation of the direction of the gradient.

4) Non-maximum suppression, which consists of thinning edges by suppressing pixels that are not local maxima.

5) Threshold with hysteresis, which consists in the use of thresholds for suppression of unconnected edges.

The Canny operator has more accurate edge detection, but its implementation is more complex and its computational cost is higher.

2.4. WTMM: Wavelet Transform Modulus Maxima for Edge Detector

According to Mallat and Hwang [8] , if a wavelet function ψ 1 ( x ) has a null moment, it can be taken as the first derivative of a smoothing function θ ( x ) , where θ ( x ) is a function such that θ ( x ) = O ( 1 / ( 1 + x 2 ) ) , that is, θ ( x ) 0 when x ± . In Figure 3 are shown examples of functions of the type θ ( x ) and ψ 1 ( x ) .

Let W 1 f ( x ) = f * ψ 1 ( x ) the wavelet transform of a f ( x ) function performed by the application of wavelet functions of type ψ 1 ( x ) . In the work of [8] it was demonstrated that W 1 f ( x ) is proportional to the first derivative of the f ( x ) function smoothed by the convolution with the smoothing function θ ( x ) . This means that maximum W 1 f ( x ) localities can be used as detectors of abrupt points of variation (edges) and discontinuities of the function f ( x ) . In two-dimensions, [8] showed that WTMM can be used for edge detection in images.

For two-dimensional functions ( z = f ( x , y ) ) , the magnitude of the gradient is given by:

| G | = G x 2 + G y 2 (3)

where Gx is the derivative in the horizontal direction ( Ψ 1 ( x , y ) / x ) and Gy is the derivative in the vertical direction ( Ψ 1 ( x , y ) / y ) of the grid;

And the direction of the gradient is given by:

Source: Adapted from [8] .

Figure 3. Wavelet Transform Modulus Maxima. (a) Function wavelet θ ( x ) ; (b) ψ 1 ( x ) : first derivative of θ ( x ) .

θ = arctan G x G y (4)

3. Methods

The data used in the experiments are related to the DTM of an area of the Polytechnic Center of the Federal University of Paraná (Figure 4). The DTM was obtained by laser profiling (Lidar: Laser Dectection and Ranging) by the Institute of Technology for Development (LACTEC) with the LIDAR OPTECH ALTM 2050 System.

The grid obtained consists of 400 × 400 points of altimetry, with planimetric resolution of 1.00 meters and altitudes varying from 888.90 to 944.69 meters. The data are found in the SAD-69 (South American Datum 1969) reference geodetic system and the Universal Transverse Mercator coordinate system (UTM), in the UTM zone No. 22 (Central Meridian −51˚).

The Roberts, Sobel-Feldman, Canny and WTMM edge detectors were applied to the original DTM grid. The detectors of Roberts, Sobel-Feldman and Canny used were those in the Matlab library. The WTMM was implemented in Matlab language, from the Haar wavelet transform, also implemented in the same language. The data was processed on a PC/Desktop computer, with an Athlon XP processor of 2600 MHz and 1 (one) Gigabyte of RAM.

Figure 4. DTM of the study area.

4. Results

Figures 5-8 are shown the results obtained in the edge detections and in Table 1 are shown the respective processing times. From the analysis of the figures and the table we can conclude that the Canny detector presented a better result, mainly in the detection of circular edges (northwest sector of the study region), but at a much higher computational cost. On the other hand, WTMM presented a similar result of Sobel-Feldman and better than Roberts, but with a much lower computational cost, although a user-made computer program is usually slower than libraries. The processing time of WTMM was about three times less than Roberts and Sobel-Feldman and 18 times less than Canny.

It was also observed that the WTMM has thicker edges than the other detectors.

Figure 5. Edges obtained by the Roberts detector.

Figure 6. Edges obtained by the Sobel-Feldman detector.

Figure 7. Edges obtained by the Canny detector.

Figure 8. Edges obtained by the WTMM detector.

Table 1. Processing time.

5. Conclusion

The experiments carried out in this research had the objective of verifying the feasibility of using the wavelet transform in the edge detection of the digital terrain model obtained by Laser Scanner. The results show that edge detection by using WTMM can be seen as an alternative to edge detection due to its characteristics of simplicity of the algorithms, ease of implementation and low computational cost.

Acknowledgements

To the Institute of Technology for Development (LACTEC), for the assignment of the data of the Laser Scanner system used in this work.

Conflicts of Interest

The author declares no conflicts of interest regarding the publication of this paper.

Cite this paper

Gaboardi, C. (2018) Use of the Wavelet Transform for Digital Terrain Model Edge Detection (Special Issue―Wavelet Analysis). Journal of Applied Mathematics and Physics, 6, 1997-2005. https://doi.org/10.4236/jamp.2018.610171

References

  1. 1. Burrus, C.S., Gopinath, R.A. and Guo, H. (1998) Introduction to Wavelets and Wavelets Transforms: A Primer. Prentice Hall, New Jersey.

  2. 2. Nievergelt, Y. (1999) Wavelets Made Easy. Birkhauser, Harrisonbourg, VA, USA. https://doi.org/10.1007/978-1-4612-0573-9

  3. 3. De Oliveira, H.M. (2005) Análise de Sinais para Engenheiros: Uma abordagem via Wavelets. Manole, Curitiba, Brazil. (In Portuguese)

  4. 4. Walker, J.S. (2008) A Primer on Wavelets and Their Scientific Applications. Chapman & Hall/CRC, Taylor & Francis Group, Boca Raton, FL, USA. https://doi.org/10.1201/9781584887461

  5. 5. Daubechies, I. (1998) Orthonormal Bases of Compactly Supported Wavelets. Communications on Pure and Applied Mathematics, 41, 909-996. https://doi.org/10.1002/cpa.3160410705

  6. 6. Mallat, S.G. (1989) A Theory for Multiresolution Signal Decomposition: The Wavelet Representation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 11, 674-693. https://doi.org/10.1109/34.192463

  7. 7. Meyer, Y. (1993) Wavelets: Algorithms and Applications. Society for Industrial and Applied Mathematics, Philadelphia.

  8. 8. Mallat, S. and Hwang, W.L. (1992) Singularity Detection and Processing with Wavelets. IEEE Transactions on Information Theory, 38, 617-643. https://doi.org/10.1109/18.119727

  9. 9. Rabbani, M.M.A. (2009) Face Recognition Using Semantic Object Recognition Techniques. Ph.D. Thesis, Anna University Chennai, Chennai, India. http://shodhganga.inflibnet.ac.in/handle/10603/26311

  10. 10. Juneja, M. and Sandhu, P.S. (2009) Performance Evaluation of Edge Detection Techniques for Images in Spatial Domain. International Journal of Computer Theory and Engineering, 1, 1793-8201. https://doi.org/10.7763/IJCTE.2009.V1.100

  11. 11. Maini, R. and Aggarwal, H. (2009) Study and Comparison of Various Image Edge Detection Techniques. International Journal of Image Processing (IJIP), 3, 1-11. http://www.cscjournals.org/library/manuscriptinfo.php?mc=IJIP-15

  12. 12. Saini, R., Dutta, M. and Kumar, R. (2012) A Comparative Study of Several Image Segmentation Techniques. Journal of Information and Operations Management, 3, 21-24. http://www.bioinfo.in/contents.php?id=55

  13. 13. Batra, B., Singh, S., Sharma, J. and Arora, S.M. (2016) Computational Analysis of Edge Detection Operators. International Journal of Applied Research, 2, 257-262. http://www.allresearchjournal.com/archives/2016/vol2issue11/PartD/2-10-106-638.pdf

  14. 14. Roberts, L.G. (1963) Machine Perception of Three-Dimensional Solids. Ph.D. Thesis, Massachusetts Institute of Technology, Cambridge. https://dspace.mit.edu/handle/1721.1/11589

  15. 15. Sobel, I. (2014) An Isotropic 3 × 3 Image Gradient Operator. Irwin Sobel Profile. https://www.researchgate.net/profile/Irwin_Sobel

  16. 16. Vincent, O.R. and Folorunso, O.A. (2009) Descriptive Algorithm for Sobel Image Edge Detection. Proceedings of Informing Science and IT Education Conference, Macon, United States, 9, 97-107. https://www.informingscience.org/Publications/3351?Search=folorunso

  17. 17. Canny, J.A. (1986) Computational Approach to Edge Detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-8, 679-698. https://doi.org/10.1109/TPAMI.1986.4767851

  18. 18. Parker, J.R. (1997) Algorithms for Image Processing and Computer Vision. John Wiley & Sons, New York.