a comparative study of edge detection techniques … · a comparative study of edge detection...

6
Proceedings of International Conference on Recent Innovations in Engineering and Technology, Jaipur, India, 18 th - 19 th Feb’2017, ISBN: 978-93-86291-63-9 106 A COMPARATIVE STUDY OF EDGE DETECTION TECHNIQUES APPLIED TO BATTLEFIELD IMAGERIES 1 PARAMJEET SINGH, 2 M. J. NIGAM 1,2 Indian Institute of Technology, Roorkee, Uttarakhand ,India Email: 1 [email protected], 2 [email protected] Abstract - Edge detection finds its use in numerous applications such as feature extraction, diagnosis in medical imaging and computer vision. Number of techniques are being used for filtering out the less relevant information from the images while preserving the basic structural properties. In this paper a comparative study of Sobel, Laplacian of Gaussian, Canny, Gabor Wavelets, Structured Forests and Morphological Fuzzy Logic techniques for edge detection has been carried out qualitatively with a motive to identify the best technique using battlefield images. Index terms - Edge detection, Sobel, Laplacian of Gaussian, Canny, Gabor wavelets, Structured forests, Morphological Fuzzy. I. INTRODUCTION Edge detection is one of the fundamental tasks in image processing because it has wide usage in several techniques such as segmentation, object recognition, feature extraction, military, medical diagnostics, robotics and meteorology etc. [1-4]. Edge detection deals with localization of abrupt changes in gray levels of an image and an edge is defined as the demarcation between two regions separated by two relatively distinct gray levels [5]. The edge-detection process is useful for simplifying the analysis of images by drastically reducing the amount of data to be processed [6]. An edge may occur because of variations in light absorption, color, shade, and texture, and these changes can be utilized to find out the depth, size, orientation, and surface properties of a digital image [7]. The aim of this study is to analyze Sobel, Laplacian of Gaussian, Canny, Gabor Wavelets, Structured Forests and Morphological Fuzzy Logic techniques for edge detection of battlefield images. II. SOBEL EDGE DETECTION The Sobel operator is one of the most common operator that is used in image processing, particularly in relevance to edge detection algorithms. Technically, it is a discrete differentiation operator, which computes an approximation of the gradient of the image intensity function f (x, y), where x and y are the two-dimensional coordinates. At each point in the image, the result of convolving the input images with the Sobel operator is either the corresponding gradient vector or the norm of this vector. Sobel operator comprises of two distinct 3x3 masks corresponding to x and y direction [8]. In order to suppress noise, a certain weight is correspondingly increased on the center point, and its digital gradient approximation equations may be described as under. Generally, the gradient estimate can be calculated from the above components of gradient in x direction (Gx) and y direction (Gy) as under: Where, g(x, y) is the resultant gradient of the input image. Its equivalent convolution operators can be represented by equation where Sx and Sy denote the horizontal and vertical operators respectively. These two kernels are convolved with the input image separately to obtain the approximations of the derivatives in horizontal and vertical directions (Gx and Gy). The magnitude for the gradient is obtained using equation (3). The Sobel operators are preferred as compared to other traditional gradient operators like Roberts and Prewitt operators because they have better noise smoothing characteristics [9]. III. LAPLACIAN OF GAUSSIAN EDGE DETECTION The Laplacian operator can be used as an edge detection operator as it enhances the regions of sudden intensity variations in an image. As the Laplace of an image is quite sensitive to the noise along with the edges in an image, therefore the image needs to be smoothened first by applying a 2-D Gaussian filter which can be denoted by following kernel [10].

Upload: others

Post on 31-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A COMPARATIVE STUDY OF EDGE DETECTION TECHNIQUES … · A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries Proceedings of International Conference on

Proceedings of International Conference on Recent Innovations in Engineering and Technology, Jaipur, India, 18th - 19th Feb’2017, ISBN: 978-93-86291-63-9

106

A COMPARATIVE STUDY OF EDGE DETECTION TECHNIQUES APPLIED TO BATTLEFIELD IMAGERIES

1PARAMJEET SINGH, 2M. J. NIGAM

1,2Indian Institute of Technology, Roorkee, Uttarakhand ,India

Email: [email protected], [email protected] Abstract - Edge detection finds its use in numerous applications such as feature extraction, diagnosis in medical imaging and computer vision. Number of techniques are being used for filtering out the less relevant information from the images while preserving the basic structural properties. In this paper a comparative study of Sobel, Laplacian of Gaussian, Canny, Gabor Wavelets, Structured Forests and Morphological Fuzzy Logic techniques for edge detection has been carried out qualitatively with a motive to identify the best technique using battlefield images. Index terms - Edge detection, Sobel, Laplacian of Gaussian, Canny, Gabor wavelets, Structured forests, Morphological Fuzzy. I. INTRODUCTION Edge detection is one of the fundamental tasks in image processing because it has wide usage in several techniques such as segmentation, object recognition, feature extraction, military, medical diagnostics, robotics and meteorology etc. [1-4]. Edge detection deals with localization of abrupt changes in gray levels of an image and an edge is defined as the demarcation between two regions separated by two relatively distinct gray levels [5]. The edge-detection process is useful for simplifying the analysis of images by drastically reducing the amount of data to be processed [6]. An edge may occur because of variations in light absorption, color, shade, and texture, and these changes can be utilized to find out the depth, size, orientation, and surface properties of a digital image [7]. The aim of this study is to analyze Sobel, Laplacian of Gaussian, Canny, Gabor Wavelets, Structured Forests and Morphological Fuzzy Logic techniques for edge detection of battlefield images. II. SOBEL EDGE DETECTION The Sobel operator is one of the most common operator that is used in image processing, particularly in relevance to edge detection algorithms. Technically, it is a discrete differentiation operator, which computes an approximation of the gradient of the image intensity function f (x, y), where x and y are the two-dimensional coordinates. At each point in the image, the result of convolving the input images with the Sobel operator is either the corresponding gradient vector or the norm of this vector. Sobel operator comprises of two distinct 3x3 masks corresponding to x and y direction [8]. In order to suppress noise, a certain weight is correspondingly increased on the center point, and its digital gradient approximation equations may be described as under.

Generally, the gradient estimate can be calculated from the above components of gradient in x direction (Gx) and y direction (Gy) as under:

Where, g(x, y) is the resultant gradient of the input image. Its equivalent convolution operators can be represented by equation

where Sx and Sy denote the horizontal and vertical operators respectively. These two kernels are convolved with the input image separately to obtain the approximations of the derivatives in horizontal and vertical directions (Gx and Gy). The magnitude for the gradient is obtained using equation (3). The Sobel operators are preferred as compared to other traditional gradient operators like Roberts and Prewitt operators because they have better noise smoothing characteristics [9]. III. LAPLACIAN OF GAUSSIAN EDGE DETECTION The Laplacian operator can be used as an edge detection operator as it enhances the regions of sudden intensity variations in an image. As the Laplace of an image is quite sensitive to the noise along with the edges in an image, therefore the image needs to be smoothened first by applying a 2-D Gaussian filter which can be denoted by following kernel [10].

Page 2: A COMPARATIVE STUDY OF EDGE DETECTION TECHNIQUES … · A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries Proceedings of International Conference on

A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries

Proceedings of International Conference on Recent Innovations in Engineering and Technology, Jaipur, India, 18th - 19th Feb’2017, ISBN: 978-93-86291-63-9

107

Where, G (x , y ) is the Gaussian kernel and is the standard deviation. Now if we take Laplacian of the above kernel while neglecting the factor, for simplifying the calculations, we get the following expression, which is also known as the LoG operator.

Where, ( , ) is the Laplacian of Gaussian operator and ∇ is the double derivative operator as mentioned under.

The LoG operator as obtained using equation (6), can be convolved with the input image to obtain the required edges. The expression for the same is as under.

Where, g(x,y) is the resulting gradient, I(x,y) is the input grayscale image, and ∗ denotes convolution operation. Here the size and standard deviation of the LoG operator yields different results, we have taken the size as 5 x 5, and σ as 0.5. IV. CANNY EDGE DETECTION Canny edge detection is a technique to detect edges of an image and was developed by John F. Canny. Canny has found that the requirements for the application of edge detection on diverse vision systems are relatively similar. Thus, an edge detection solution to address these requirements can be implemented in a wide range of situations. The Canny edge detection follows a multi-stage algorithm which enables it to function over a wide range of input images. The algorithm can be summed up as shown in following basic steps: 1) Use a Gaussian filter to remove the noise and make the image smooth. The Gaussian kernel given in equation (5) can be used for the filter. Smoothened image, Ig(x,y) is obtained as.

2) Compute the gradients using the operators given in equation (4), as under.

The resultant gradient, g(x,y) can be obtained using equation (3), and the angle of gradient vector, can be calculated as under.

3) Edge thinning is performed by applying non-maxima suppression to the gradient. The gradient so obtained is scanned along the gradient direction, and

if pixels are not part of the local maxima they are set to zero. 4) Detect and connect edges by the application of double thresholding or hysteresis [11] and connectivity analysis [9]. Apply thresholding to image obtained previous step by using two different thresholds, 1and 2 (where 1 < 2 ) to obtain two binary images say, T1 and T2 respectively. Observe that T2 with greater threshold will have lesser noise and fewer false edges but greater gaps between edge segments, when compared to T1 with smaller threshold. Link edge segments in T2 to form continuous edges. To do so, trace each segment in T2 to its end and then search its neighbors in T1 to find any edge segment in T1 to bridge the gap until reaching another edge segment in T2. V. GABOR WAVELET EDGE DETECTION The human visual system may be viewed as a filter bank. The responses of these filters can be modeled using different Gabor functions [12]. The Gabor features are particularly effective for texture representation and discrimination. These have been successfully used for object detection and face recognition [12-16]. In the spatial domain, a 2-Dimensional Gabor filter is given by a Gaussian kernel function which is modulated by a sinusoidal plane wave, represented as follows.

Gabor wavelets enhances the edges and diminishes the background noise when the wave vector is perpendicular to the edge and the resultant image of the convolution demonstrates the local properties showing the edge of the input image [12]. Kernels related to different orientations can be obtained by setting angle factor. To detect the edges in an image, which have different directions, θ is set to have eight different orientations, i.e.,

Where, k = 0,1,2… 7. After obtaining these edges in different directions, we can combine them and obtain the required edges. However, this method proves to be a bit computationally expensive. VI. STRUCTURED FORESTS EDGE DETECTION Edges in a small patch are highly interdependent, and often consists of well-known patterns, such as straight

Page 3: A COMPARATIVE STUDY OF EDGE DETECTION TECHNIQUES … · A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries Proceedings of International Conference on

A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries

Proceedings of International Conference on Recent Innovations in Engineering and Technology, Jaipur, India, 18th - 19th Feb’2017, ISBN: 978-93-86291-63-9

108

lines, junctions (Y or T) [19]. For such problems which exhibit similar types of characteristics, a structured learning approach can be applied using random forest framework [20]. Here edge detection is taken up as prediction of local segmentation masks for given patches of input image. An approach for learning decision trees uses labels, which are mapped to a discrete space for determining the splitting function at each branch in the tree. All predictions are aggregated to compute the final edge map [21]. A brief about the random forests and structured random forests is as under. A. Random Decision Forests

Page 4: A COMPARATIVE STUDY OF EDGE DETECTION TECHNIQUES … · A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries Proceedings of International Conference on

A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries

Proceedings of International Conference on Recent Innovations in Engineering and Technology, Jaipur, India, 18th - 19th Feb’2017, ISBN: 978-93-86291-63-9

109

VII. MORPHOLOGICAL FUZZY LOGIC EDGE DETECTION This technique of edge detection is based on generalized type-2 fuzzy logic and the morphological gradient, which enables better modeling related to the uncertainty that is present in processing digital images [25].

Page 5: A COMPARATIVE STUDY OF EDGE DETECTION TECHNIQUES … · A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries Proceedings of International Conference on

A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries

Proceedings of International Conference on Recent Innovations in Engineering and Technology, Jaipur, India, 18th - 19th Feb’2017, ISBN: 978-93-86291-63-9

110

VIII. RESULTS

Fig. 3. Resultant Edges for Images: Tank, Helicopter and Artillery Gun

Page 6: A COMPARATIVE STUDY OF EDGE DETECTION TECHNIQUES … · A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries Proceedings of International Conference on

A Comparative Study of Edge Detection Techniques Applied to Battlefield Imageries

Proceedings of International Conference on Recent Innovations in Engineering and Technology, Jaipur, India, 18th - 19th Feb’2017, ISBN: 978-93-86291-63-9

111

The edge detection techniques used for comparative study have been applied to battlefield images such as Tank, Helicopter and Artillery Gun to obtain the corresponding edges. Results are shown in Fig. 3. Comparison of results clearly show that the edges obtained by Morphological Fuzzy technique detects almost all the edges of the images used. The resultant edges of the images using Sobel, LoG and Canny techniques are quite comparable to each other and the results obtained by Structured Forests is better than these three methods. Quality of edges using Gabor Wavelet is found to be better than the results of Structured Forests techniques but slightly inferior to the quality of edges obtained by Morphological Fuzzy method. However, the execution time of Structured Forests method is least out of all the other techniques compared. CONCLUSION A comparative study of Sobel, Laplacian of Gaussian, Canny, Gabor Wavelets, Structured Forests and Morphological Fuzzy Logic techniques for edge detection has been carried out using battlefield images. From the qualitative comparison of the resultant edges, it has been identified that the Morphological Fuzzy technique yields the best results. REFERENCES [1] L. R. Liang, C. G. Looney,” Competitive fuzzy edge

detection,” Appl. soft comput., pp. 123–137, 2003. [2] Y. P. Guan.,” Automatic extraction of lips based on multi-

scale wavelet edge detection,” IET Comput. Vis., vol 2, no 1, pp. 23–33, 2008.

[3] A. A. Goshtasby, “ 2-D and 3-D Image Registration: For Medical, Remote Sensing, and Industrial Applications, “ Hoboken, NJ, USA: Wiley, pp. 34–39, 2005.

[4] B. Siliciano, L. Sciavicco, L. Villani, and G. Oriolo, “ Robotics: Modelling, Planning and Control, “ New York, NY, USA: Springer, pp. 415– 418, 2010.

[5] M. Gudmundsson, E. A. El-Kwae, M. R. Kabuka, “ Edge detection in medical images using a genetic algorithm, “IEEE Trans. Med. Imaging, vol 17, no 3, pp. 469–474. 1998.

[6] J. Canny, “A computational approach to edge detection,” IEEE Trans. Pattern Anal. Mach. Intell., vol. PAMI-8, no. 6, pp. 679–698, Nov. 1986.

[7] V. Torre and T. A. Poggio, “On edge detection,” IEEE Trans. Pattern Anal. Mach. Intell., vol. PAMI-8, no. 2, pp. 147–163, Mar. 1986.

[8] Zhang Jin-Yu, Chen Yan, and Huang Xian-Xiang, “Edge Detection of Images Based on Improved Sobel Operator and Genetic Algorithms. “ IEEE conference: Image Analysis and Signal Processing, 2009.

[9] R. C. Gonzalez, and R. E. Woods, R, “Digital Image Processing,” Third ed., Pearson, 2008.

[10] S. Pande, V. S. Bhadouria, and D. Ghoshal, “A study on edge marking scheme of various standard edge detectors, “ International Journal of Computer Applications, vol 44, no.9, Apr 2012.

[11] J. Canny, “ Finding Edges and Lines in Image, ” Master’s thesis, MIT, 1983.

[12] Wei Jiang, Kin-Man Lam, and Ting-Zhi Shen, “Efficient Edge Detection Using Simplified Gabor Wavelets,” IEEE Trans. on Systems, Man, And Cybernetics B: Cybernetics, vol. 39, no. 4, Aug 2009.

[13] A. C. Bovik, M. Clark, and W. S. Geisler, “Multichannel texture analysis using localized spatial filters,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 12, no. 1, pp. 55–73, Jan. 1990.

[14] B. S. Manjunath and W. Y. Ma, “Texture features for browsing and retrieval of image data,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 18, no. 8, pp. 837–842, Aug. 1996.

[15] H. Cheng, N. Zheng, and C. Sun, “Boosted Gabor features applied to vehicle detection,” in Proc. 18th Int. Conf. Pattern Recog., vol. 1, pp. 662– 666, 2006.

[16] M. Valstar and M. Pantic, “Fully automatic facial action unit detection and temporal analysis,” Proc. IEEE Conf. CVPRW, p. 149, Jun. 2006.

[17] X. Xie and K. M. Lam, “Gabor-based kernel PCA with doubly nonlinear mapping for face recognition with a single face image,” IEEE Trans. Image Process., vol. 15, no. 9, pp. 2481–2492, Sep. 2006.

[18] B. Ergen, “A Fusion Method of Gabor Wavelet Transform and Unsupervised Clustering Algorithms for Tissue Edge Detection, “The Scientific World Journal, Hindawi, vol 2014, Mar 2014.

[19] J. Lim, C. L. Zitnick, and P. Dollar, “Sketch tokens: A learned midlevel representation for contour and object detection,” in Proc. IEEE Conf. Comput. Vis. Pattern Recog., pp. 3158–3165, 2013.

[20] S. Nowozin and C. H. Lampert, “Structured learning and prediction in computer vision,” Found. Trends Comput. Graph. Vis., vol. 6, pp. 185– 365, 2011.

[21] P. Dollar and C. Lawrence Zitnick, “Fast Edge Detection Using Structured Forests, “IEEE Transactions On Pattern Analysis And Machine Intelligence, vol. 37, no. 8, Aug 2015.

[22] P. Geurts, D. Ernst, and L. Wehenkel, “Extremely randomized trees,” Mach. Learn, vol. 63, no. 1, pp. 3–42, Apr 2006.

[23] I. T. Joliffe, “Principal Component Analysis, “ New York, USA: Springer-Verlag, 1986.

[24] D. Martin, C. Fowlkes, D. Tal, and J. Malik, “A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics,” in Proc. IEEE 8th Int. Conf. Comput. Vis., pp. 416–423, 2001.

[25] P. Melin, C. I. Gonzalez, J. R. Castro, O. Mendoza, and O. Castillo, “Edge-Detection Method for Image Processing Based on Generalized Type-2 Fuzzy Logic,” IEEE Transactions on Fuzzy Systems, vol. 22, no. 6, Dec 2014.

[26] P. Melin, O. Mendoza, and O. Castillo, “An improved method for edge detection based on interval type-2 fuzzy logic,” Expert Syst. Appl., vol. 37, no. 12, pp. 8527–8535, Dec. 2010.

[27] A. Bel, C. Wagner, and H. Hagras, “Multiobjective optimization and comparison of nonsingleton type-1 and singleton interval type-2 fuzzy logic systems,” IEEE Trans. Fuzzy Syst., vol. 21, no. 3, pp. 459–476, Jun. 2013.

[28] F. Liu, “An efficient centroid type-reduction strategy for general type-2 fuzzy logic system,” Inf. Sci., vol. 178, no. 9, pp. 2224–2236, May 2008.