<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JAMP</journal-id><journal-title-group><journal-title>Journal of Applied Mathematics and Physics</journal-title></journal-title-group><issn pub-type="epub">2327-4352</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jamp.2018.610171</article-id><article-id pub-id-type="publisher-id">JAMP-87961</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Use of the Wavelet Transform for Digital Terrain Model Edge Detection (Special Issue—Wavelet Analysis)
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Clovis</surname><given-names>Gaboardi</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Military Engineers Corps of Brazilian Army (retired), Independent Researcher, S&amp;amp;#227;o José dos Campos, SP, Brazil</addr-line></aff><pub-date pub-type="epub"><day>10</day><month>10</month><year>2018</year></pub-date><volume>06</volume><issue>10</issue><fpage>1997</fpage><lpage>2005</lpage><history><date date-type="received"><day>30,</day>	<month>July</month>	<year>2018</year></date><date date-type="rev-recd"><day>21,</day>	<month>October</month>	<year>2018</year>	</date><date date-type="accepted"><day>24,</day>	<month>October</month>	<year>2018</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  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.
 
</p></abstract><kwd-group><kwd>Digital Terrain Model</kwd><kwd> Edge Detection</kwd><kwd> Wavelets Transform</kwd><kwd> Canny</kwd><kwd> Roberts</kwd><kwd> Sobel</kwd><kwd> Sobel-Feldman</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>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.</p><p>The wavelet transform (WT) had its origin in 1909 with the work of Alfred Haar [<xref ref-type="bibr" rid="scirp.87961-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref4">4</xref>] , 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 [<xref ref-type="bibr" rid="scirp.87961-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref7">7</xref>] .</p><p>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.</p><p>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 [<xref ref-type="bibr" rid="scirp.87961-ref8">8</xref>] .</p><p>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.</p></sec><sec id="s2"><title>2. Fundamentals</title><p>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 [<xref ref-type="bibr" rid="scirp.87961-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.87961-ref13">13</xref>] , 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.</p><sec id="s2_1"><title>2.1. Roberts Edge Detector</title><p>The Roberts edge detector was created by Lawrence Gilman Roberts in his Ph.D. thesis at MIT in 1963 [<xref ref-type="bibr" rid="scirp.87961-ref14">14</xref>] . It is a classic edge detector that uses the directional derivative of the first order. Its implementation consists of a pair of 2 &#215; 2 dimension convolution masks (matrices) as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref> for the detection of gradients.</p><p>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 G<sub>x</sub> and G<sub>y</sub>). 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:</p><p>| G | = G x 2 + G y 2 (1)</p><p>And the direction of the gradient is given by:</p><p>θ = arctan ( G x G y ) − 3 π 4 (2)</p><p>Roberts edge detector has the advantage of simplicity of the algorithm and disadvantage of noise susceptibility.</p></sec><sec id="s2_2"><title>2.2. Sobel-Feldman Edge Detector</title><p>The Sobel edge detector operator, more properly called the Sobel-Feldman operator [<xref ref-type="bibr" rid="scirp.87961-ref15">15</xref>] 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 &#215; 3) as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>, 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 (G<sub>x</sub> and G<sub>y</sub>) and then agreed. By using a larger matrix, the Sobel-Feldman operator has the advantage of reducing errors due to the noise’s effects [<xref ref-type="bibr" rid="scirp.87961-ref16">16</xref>] .</p><p>The magnitude of the gradient is given by:</p><p>| G | = G x 2 + G y 2 (3)</p><p>And the direction of the gradient is given by:</p><p>θ = arctan G x G y (4)</p></sec><sec id="s2_3"><title>2. 3. Canny Edge Detector</title><p>The Canny edge detector [<xref ref-type="bibr" rid="scirp.87961-ref17">17</xref>] 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 [<xref ref-type="bibr" rid="scirp.87961-ref18">18</xref>] :</p><p>1) Low probability of failure: the ideal detector must find all edges and not find false edges.</p><p>2) Location Criteria: The location of the detected edges must match the actual edges.</p><p>3) Simple Response Criteria: The detector should provide a single response to a single edge.</p><p>The Canny detector implementation consists of 5 steps:</p><p>1) Application of a filter for smoothing the image, to reduce noise.</p><p>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.</p><p>3) Computation of the direction of the gradient.</p><p>4) Non-maximum suppression, which consists of thinning edges by suppressing pixels that are not local maxima.</p><p>5) Threshold with hysteresis, which consists in the use of thresholds for suppression of unconnected edges.</p><p>The Canny operator has more accurate edge detection, but its implementation is more complex and its computational cost is higher.</p></sec><sec id="s2_4"><title>2.4. WTMM: Wavelet Transform Modulus Maxima for Edge Detector</title><p>According to Mallat and Hwang [<xref ref-type="bibr" rid="scirp.87961-ref8">8</xref>] , 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 → &#177; ∞ . In <xref ref-type="fig" rid="fig3">Figure 3</xref> are shown examples of functions of the type θ ( x ) and ψ 1 ( x ) .</p><p>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 [<xref ref-type="bibr" rid="scirp.87961-ref8">8</xref>] 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, [<xref ref-type="bibr" rid="scirp.87961-ref8">8</xref>] showed that WTMM can be used for edge detection in images.</p><p>For two-dimensional functions ( z = f ( x , y ) ) , the magnitude of the gradient is given by:</p><p>| G | = G x 2 + G y 2 (3)</p><p>where G<sub>x</sub> is the derivative in the horizontal direction ( ∂ Ψ 1 ( x , y ) / ∂ x ) and G<sub>y</sub> is the derivative in the vertical direction ( ∂ Ψ 1 ( x , y ) / ∂ y ) of the grid;</p><p>And the direction of the gradient is given by:</p><p>θ = arctan G x G y (4)</p></sec></sec><sec id="s3"><title>3. Methods</title><p>The data used in the experiments are related to the DTM of an area of the Polytechnic Center of the Federal University of Paran&#225; (<xref ref-type="fig" rid="fig4">Figure 4</xref>). 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.</p><p>The grid obtained consists of 400 &#215; 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˚).</p><p>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.</p></sec><sec id="s4"><title>4. Results</title><p>Figures 5-8 are shown the results obtained in the edge detections and in <xref ref-type="table" rid="table1">Table 1</xref> 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.</p><p>It was also observed that the WTMM has thicker edges than the other detectors.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Processing time</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Method</th><th align="center" valign="middle" >Processing time (miliseconds)</th></tr></thead><tr><td align="center" valign="middle" >Roberts</td><td align="center" valign="middle" >6.5</td></tr><tr><td align="center" valign="middle" >Sobel-Feldman</td><td align="center" valign="middle" >7.0</td></tr><tr><td align="center" valign="middle" >Canny</td><td align="center" valign="middle" >36.0</td></tr><tr><td align="center" valign="middle" >WTMM</td><td align="center" valign="middle" >2.0</td></tr></tbody></table></table-wrap></sec><sec id="s5"><title>5. Conclusion</title><p>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.</p></sec><sec id="s6"><title>Acknowledgements</title><p>To the Institute of Technology for Development (LACTEC), for the assignment of the data of the Laser Scanner system used in this work.</p></sec><sec id="s7"><title>Conflicts of Interest</title><p>The author declares no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s8"><title>Cite this paper</title><p>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</p></sec></body><back><ref-list><title>References</title><ref id="scirp.87961-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Burrus, C.S., Gopinath, R.A. and Guo, H. (1998) Introduction to Wavelets and Wavelets Transforms: A Primer. Prentice Hall, New Jersey.</mixed-citation></ref><ref id="scirp.87961-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Nievergelt, Y. (1999) Wavelets Made Easy. Birkhauser, Harrisonbourg, VA, USA. https://doi.org/10.1007/978-1-4612-0573-9</mixed-citation></ref><ref id="scirp.87961-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">De Oliveira, H.M. (2005) Análise de Sinais para Engenheiros: Uma abordagem via Wavelets. Manole, Curitiba, Brazil. (In Portuguese)</mixed-citation></ref><ref id="scirp.87961-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Walker, J.S. (2008) A Primer on Wavelets and Their Scientific Applications. Chapman &amp; Hall/CRC, Taylor &amp; Francis Group, Boca Raton, FL, USA. https://doi.org/10.1201/9781584887461</mixed-citation></ref><ref id="scirp.87961-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Meyer, Y. (1993) Wavelets: Algorithms and Applications. Society for Industrial and Applied Mathematics, Philadelphia.</mixed-citation></ref><ref id="scirp.87961-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Sobel, I. (2014) An Isotropic 3 × 3 Image Gradient Operator. Irwin Sobel Profile. https://www.researchgate.net/profile/Irwin_Sobel</mixed-citation></ref><ref id="scirp.87961-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">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</mixed-citation></ref><ref id="scirp.87961-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Parker, J.R. (1997) Algorithms for Image Processing and Computer Vision. John Wiley &amp; Sons, New York.</mixed-citation></ref></ref-list></back></article>