Detection of Edges Using Mathematical Morphological Operators

Similar documents
MORPHOLOGICAL EDGE DETECTION AND CORNER DETECTION ALGORITHM USING CHAIN-ENCODING

SECTION 5 IMAGE PROCESSING 2

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

EE795: Computer Vision and Intelligent Systems

Biomedical Image Analysis. Mathematical Morphology

Morphological Image Processing GUI using MATLAB

Digital Image Processing. Image Enhancement - Filtering

Lecture 6: Edge Detection

Morphological Image Processing

A New Technique of Extraction of Edge Detection Using Digital Image Processing

[ ] Review. Edges and Binary Images. Edge detection. Derivative of Gaussian filter. Image gradient. Tuesday, Sept 16

SURVEY ON IMAGE PROCESSING IN THE FIELD OF DE-NOISING TECHNIQUES AND EDGE DETECTION TECHNIQUES ON RADIOGRAPHIC IMAGES

Introduction to Medical Imaging (5XSA0)

Edges and Binary Images

SRCEM, Banmore(M.P.), India

Comparison between Various Edge Detection Methods on Satellite Image

EDGE BASED REGION GROWING

Morphological Image Processing

Lecture 7: Most Common Edge Detectors

Image Processing

Anno accademico 2006/2007. Davide Migliore

Blood Vessel Segmentation in Angiograms using Fuzzy Inference System and Mathematical Morphology

Digital Image Processing COSC 6380/4393

Local Image preprocessing (cont d)

Edge detection by combination of morphological operators with different edge detection operators

International Journal of Advance Engineering and Research Development. Applications of Set Theory in Digital Image Processing

Topic 4 Image Segmentation

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

EECS490: Digital Image Processing. Lecture #19

Sobel Edge Detection Algorithm

CS 4495 Computer Vision. Linear Filtering 2: Templates, Edges. Aaron Bobick. School of Interactive Computing. Templates/Edges

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Table 1. Different types of Defects on Tiles

Neighborhood operations

Ulrik Söderström 16 Feb Image Processing. Segmentation

N.Priya. Keywords Compass mask, Threshold, Morphological Operators, Statistical Measures, Text extraction

CS534: Introduction to Computer Vision Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Comparative Analysis of Edge Detection Algorithms Based on Content Based Image Retrieval With Heterogeneous Images

SIMULATIVE ANALYSIS OF EDGE DETECTION OPERATORS AS APPLIED FOR ROAD IMAGES

Lecture: Edge Detection

Image Analysis. Edge Detection

Edge and local feature detection - 2. Importance of edge detection in computer vision

Filtering Images. Contents

A Case Study on Mathematical Morphology Segmentation for MRI Brain Image

Introduction. Computer Vision & Digital Image Processing. Preview. Basic Concepts from Set Theory

Line, edge, blob and corner detection

Dynamic Thresholding Based Edge Detection

Keywords: Thresholding, Morphological operations, Image filtering, Adaptive histogram equalization, Ceramic tile.

Morphological Image Processing

Edge Detection Lecture 03 Computer Vision

09/11/2017. Morphological image processing. Morphological image processing. Morphological image processing. Morphological image processing (binary)

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

COMPARATIVE STUDY OF IMAGE EDGE DETECTION ALGORITHMS

Extraction of connected components Skin pemphigus diseases image edge detection by Morphological operations

ECG782: Multidimensional Digital Signal Processing

Other Linear Filters CS 211A

Mathematical Morphology and Distance Transforms. Robin Strand

Improved Simplified Novel Method for Edge Detection in Grayscale Images Using Adaptive Thresholding

Analysis of Image and Video Using Color, Texture and Shape Features for Object Identification

EECS490: Digital Image Processing. Lecture #17

Evaluation Of Image Detection Techniques

Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

PERFORMANCE ANALYSIS OF CANNY AND OTHER COMMONLY USED EDGE DETECTORS Sandeep Dhawan Director of Technology, OTTE, NEW YORK

EDGE DETECTION-APPLICATION OF (FIRST AND SECOND) ORDER DERIVATIVE IN IMAGE PROCESSING

ECG782: Multidimensional Digital Signal Processing

Previously. Edge detection. Today. Thresholding. Gradients -> edges 2/1/2011. Edges and Binary Image Analysis

Comparative Analysis of Various Edge Detection Techniques in Biometric Application

Edges and Binary Image Analysis. Thurs Jan 26 Kristen Grauman UT Austin. Today. Edge detection and matching

An Algorithm for Blurred Thermal image edge enhancement for security by image processing technique

Feature Detectors - Sobel Edge Detector

Algorithms for Edge Detection and Enhancement for Real Time Images: A Comparative Study

Concepts in. Edge Detection

Practical Image and Video Processing Using MATLAB

Effects Of Shadow On Canny Edge Detection through a camera

Segmentation and Grouping

morphology on binary images

Image gradients and edges

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

Edge Detection. CMPUT 206: Introduction to Digital Image Processing. Nilanjan Ray. Source:

Morphological Image Processing

Edges and Binary Image Analysis April 12 th, 2018

EE 584 MACHINE VISION

Fuzzy Inference System based Edge Detection in Images

CS443: Digital Imaging and Multimedia Binary Image Analysis. Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University

Morphological Image Processing

A Robust Method for Circle / Ellipse Extraction Based Canny Edge Detection

Perception. Autonomous Mobile Robots. Sensors Vision Uncertainties, Line extraction from laser scans. Autonomous Systems Lab. Zürich.

Edge and corner detection

Comparison of Some Motion Detection Methods in cases of Single and Multiple Moving Objects

Feature Detectors - Canny Edge Detector

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

Corner Detection using Difference Chain Code as Curvature

Edge Detection. CSE 576 Ali Farhadi. Many slides from Steve Seitz and Larry Zitnick

Time Stamp Detection and Recognition in Video Frames

An Approach for Real Time Moving Object Extraction based on Edge Region Determination

the most common approach for detecting meaningful discontinuities in gray level. we discuss approaches for implementing

Multimedia Computing: Algorithms, Systems, and Applications: Edge Detection

5. Feature Extraction from Images

Topic 6 Representation and Description

Transcription:

OPEN TRANSACTIONS ON INFORMATION PROCESSING Volume 1, Number 1, MAY 2014 OPEN TRANSACTIONS ON INFORMATION PROCESSING Detection of Edges Using Mathematical Morphological Operators Suman Rani*, Deepti Bansal, Beant Kaur Department of ECE, Punjabi University, Patiala, India *Corresponding author: sumanrani002@gmail.com Abstract: Edges form the outline of an object. An edge is the boundary between an object and the background, and indicates the boundary between overlapping objects also. So, by identifying edges in an image accurately, all the objects can be located and basic properties such as area, perimeter and shape can be measured. Therefore, edge detection is used to find the discontinuities in surface orientation, changes in material properties and variations in scene illuminations. In this paper, implementation of various morphological operators is done for medical images. Keywords: Dilation; Edge Detection; Erosion; Morphological Operators; Structuring Elements 1. INTRODUCTION Edges and corners are regions of interest where there is a sudden change in intensity. These features play an important role in object identification methods used in machine vision and image processing systems [1]. It is the ability to determine the edge of an object [2]. It is a primary step in many image enhancement procedures. In an image, an edge is an abrupt change in gray level intensity values of successive pixels. Hence, when there is a high difference between two neighbors, pixels, a possible edge is detected. The intensity of the pixels at the borders of a shadow also translates from a low to a high value. Due to this, any edge detection technique detects this outline of shadows as edges. This result in detection of false edges. Similarly, when there is a little change in the intensity between two objects, some edge detectors may fail in detecting this small difference as an edge of the object [1]. EDGE detection and Corner detection are essential tasks in various computer vision and image-understanding systems. Applications include motion tracking, object recognition, and stereo matching. The requirements of edge detector are that it should identify strong as well as weak edges. So, different techniques like traditional and mathematical morphology operators are used. 2. MATHEMATICAL MORPHOLOGY Binary images may contain numerous imperfections. In particular, the binary regions produced by simple thresholding are distorted by noise and texture. Morphology relates to structure or form of objects. 17

OPEN TRANSACTIONS ON INFORMATION PROCESSING Morphological filtering simplified segmented images by smoothing out object outlines using filling small holes, eliminating small projections [3]. Morphological image processing pursues the goals of removing these imperfections by accounting for the form and structure of the image. These techniques can be extended to grayscale images. Mathematical morphology is a new mathematical theory which can be used to process and analyze the images [4 8]. It is mathematical in the sense that the analysis is Based on theory, topology, and lattice algebra, function and so on [9]. Another use of it is to filter image. It is a well known non-linear filter for image enhancement [10, 11]. It analyzes the images using set theory instead of mathematical modeling and analysis. Morphological operations rely only on the relative ordering of pixel values, not on their numerical values, and therefore are especially suited to the processing of binary images. Morphological operations can also be applied to grayscale images such that their light transfer functions are unknown and therefore their absolute pixel values are of no or minor interest. Medical images edge detection is an important work for object recognition of the human organs, and it is an essential pre- processing step in medical image segmentation. The work of the edge detection decides the result of the final processed image [12]. 3. TRADITIONAL OPERATORS Some traditional operators are as below [13]: 1. First order derivative / gradient methods are as follows: Roberts operator Sobel operator Prewitt operator 2. Second order derivative: Laplacian Laplacian of Gaussian Difference of Gaussian 3. Optimal edge detection: Canny edge detection Sobel operator is used in image processing techniques particularly in edge detection. The Sobel operator is based on convolving the image with a small, separable, and integer valued filter in horizontal and vertical and is therefore relatively inexpensive in terms of computations. Mathematically, the operator uses two 3 3 kernels which are convolved with the original image to calculate approximations of the derivatives - one for horizontal changes, and one for vertical. Prewitt operator edge detection masks are the one of the oldest and best understood methods of detecting edges in images. Basically, there are two masks, one for detecting image derivatives in X and one for detecting image derivative in Y. To find edges, a user convolves an image with both masks, producing two derivative images (dx and dy). The strength of the edge at given location is then the square root of the sum of the squares of these two derivatives. The Prewitt edge detector is an appropriate way to estimate the magnitude and orientation of an edge. Although differential gradient edge detection needs a rather time consuming calculation to estimate the orientation from the magnitudes in the x- and y-directions, the Prewitt edge detection obtains the orientation directly from the kernel with the maximum response. The 18

Detection of Edges Using Mathematical Morphological Operators set of kernels is limited to 8 possible orientations; however experience shows that most direct orientation estimates are not much more accurate. Roberts edge detection method is one of the oldest method and is used frequently in hardware implementations where simplicity and speed are dominant factors. Canny edge detection operator was developed by John F. Canny in 1986 and uses a multistage algorithm to detect a wide range of edges in images. Stages of the Canny algorithm are noise reduction and nonmaximum suppression. 4. MORPHOLOGICAL OPERATORS Some mathematical morphological operators are as below [14, 15]: 1. Erosion: Shrinking the foreground 2. Dilation: Expanding the foreground 3. Closing: Removing holes in the foreground 4. Opening: Removing stray foreground pixels in background 4.1 Dilation The dilation process is performed by laying the structuring element B on the image A and sliding it across the image in a manner similar to convolution. The difference is in the operation performed. The different steps of dilation are: 1. If the origin of the structuring element coincides with a white pixel in the image, there is no change; move to the next pixel. 2. If the origin of the structuring element coincides with a black in the image, make black all pixels from the image covered by the structuring element. The Notation is as under: A B (1) Figure 1. Original [16] Figure 2. Applied Mask [16] Figure 3. Dilated image [16] 19

OPEN TRANSACTIONS ON INFORMATION PROCESSING 4.2 Erosion The erosion process is similar to dilation, but we turn pixels to white, not black. As before, slide the structuring element across the image and then follow these steps: 1. If the origin of the structuring element coincides with a white pixel in the image, there is no change; move to the next pixel. 2. If the origin of the structuring element coincides with a black pixel in the image, and at least one of the black pixels in the structuring element falls over a white pixel in the image, then change the black pixel in the image (corresponding to the position on which the center of the structuring element falls) from black to a white. The Notation is as under: AΘB (2) Figure 4. Original [16] Figure 5. Applied Mask [16] Figure 6. Eroded image [16] 4.3 Opening and Closing These two basic operations, dilation and erosion, can be combined into more complex sequences. The most useful of these for morphological filtering are called opening and closing [15]. Opening consists of an erosion followed by a dilation and can be used to eliminate all pixels in regions that are too small to contain the structuring element. In this case the structuring element is often called a probe, because it is probing the image looking for small objects to filter out of the image. The Opening process is as below: The Closing Process is as below: A B = (AΘB) B (3) A.B = (A B)ΘB (4) Erosion filters the inner image while dilation filters the outer image. Opening generally smoothes the contour of an image, breaks narrow gaps. As opposed to opening, closing tends to fuse narrow breaks, eliminates small holes, and fills gaps in the contours. Therefore, morphological operation is used to detect image edge, and at the same time, denoise the image. 20

Detection of Edges Using Mathematical Morphological Operators 5. STRUCTURING ELEMENT Morphological techniques probe an image with a small shape or template called a structuring element. The structuring element is positioned at all possible locations in the image and it is compared with the corresponding neighborhood of pixels. Some operations test whether the element fits within the neighborhood, while others test whether it hits or intersects the neighborhood. A structuring element is simply a binary image that allows us to define arbitrary neighborhood structures. The structuring element is a small binary image, i.e. a small matrix of pixels, each with a value of zero or one. The matrix dimensions specify the size of the structuring element. The pattern of ones and zeros specifies the shape of the structuring element. An origin of the structuring element is usually one of its pixels, although generally the origin can be outside the structuring element [17]. Different structuring elements are as follows: Structuring Element of 2 2 matrice is as follows: SE1 = 1 1 SE2 = 1 0 1 1 0 1 (45 degree) SE3 = 0 1 1 0 (135 degree) Structuring Element of 3 3 matrice is as follows: SE1 = 1 1 1 SE2 = 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 qquad (180 degree) SE3 = 1 0 1 SE4 = 0 1 1 1 0 1 1 0 1 1 0 1 1 1 0 (90 degree) (135 degree) SE5 = 1 1 0 1 0 1 0 1 1 (45 degree) Structuring Element of 5 5 matrice is as follows: SE1 = 1 1 1 1 1 SE2 = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 (180 degree) 21

OPEN TRANSACTIONS ON INFORMATION PROCESSING SE3 = 1 1 0 1 1 SE4 = 0 1 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 0 (90 degree) (135 degree) SE5 = 1 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 1 (45 degree) 6. PROPOSED ALGORITHM Figure 7 Flow chart of Proposed Model Figure 7. Flow chart of Proposed Model 7. RESULTS The different results using proposed method are shown in Figures 8-28. The results of Traditional methods are shown in Figures 9-13. The results of 2 2 SE are shown in Figures 14-18 (Using SE1). The results of 3 3 SE are shown in Figures 19-23 (Using SE1). 22

Detection of Edges Using Mathematical Morphological Operators Figure 8. Original Image Figure 9. Sobel Figure 10. Roberts Figure 11. Prewitt Figure 12. Log Figure 13. Canny Figure 14. Dilation Figure 15. Erosion Figure 16. Closing Figure 17. Contrast adjusted Figure 18. Resultant Image Figure 19. Dilation Figure 20. Erosion Figure 21. Closing 23

OPEN TRANSACTIONS ON INFORMATION PROCESSING Figure 22. Contrast Adjusted Figure 23. Resultant Image The results of 5 5 SE are shown in Figures 24-18 (Using SE1). Figure 24. Dilation Figure 25. Erosion Figure 26. Closing Figure 27. Contrast adjusted Figure 28. Resultant Image 8. CONCLUSIONS 24 Edge detection has become a crucial step for detecting a correct object of an Image. We have observed in many theoretical and practical environments that Sobel Operator is better than Roberts and Prewitt operator. So in this paper we just compare our Proposed Operator with Sobel Operator and Paper Proposed Operator for first derivative filter and also compare the Laplacian Operator for second derivative filter. The classical operator such as Sobel, and Prewitt which uses first derivative has very simple calculation to detect the edges and their orientations but has inaccurate detection sensitivity in case of noise. Laplacian of Gaussian (LOG) operator is represented as another type of edge detection operator which uses second derivative. It finds the correct places of edges and testing wider area around the pixel. The disadvantages of LOG operator is that it cannot find the orientation of edge because of using the Laplacian filter. The other type of edge detection operator is the Gaussian edge detectors such as Canny, which is using probability for finding error rate and localization. Also it is symmetric along the edge and reduces the noise by smoothing the image. Canny method can produce good edge with the smooth continuous pixels and thin edge. Sobel edge detection method cannot produce smooth and thin edge compared to canny

Detection of Edges Using Mathematical Morphological Operators method. So it performs the better detection in noise condition but unfortunately it has complex computing. In the mean time we have applied our Proposed Operator to detect the edges which gives better results than Sobel and other operators. We can make decision by observing the subjective and object comparisons that our Proposed Operator is optimal. Hence, it is concluded that proposed method for detection of edges is simpler to use and after applying structuring elements of different matrices, there will be variations in edges. Results of 2 2 matrices are better than other matrices used. By doing comparison between traditional and morphological operators result, we come to know that the result of applying proposed model is better than all. So, it can be used in medical for better results because resultant output has continuous edges as compared to traditional operator s results. The main advantages of mathematical morphology are direct geometric interpretation, simplicity and efficiency in hardware implementation References [1] N. Nain, V. Laxmi, A. K. Jain, and R. Agarwal, Morphological edge detection and corner detection algorithm using chain encoding., IPCV, vol. 6, pp. 520 525, 2006. [2] Matasala, R. Benjamin, and R. Kitney, An edge detection technique using the fact model and parameterized relation labeling, IEEE Transaction, Pattern Analysis and Medical Intelligence, pp. 328 341, 1997. [3] M. Roushdy, Comparative study of edge detection algorithms applying on the grayscale noisy image using morphological filter, GVIP journal, vol. 6, no. 4, pp. 17 23, 2006. [4] F. Ortiz and F. Torres, Vectorial morphological reconstruction for brightness elimination in colour images, Real-Time Imaging, vol. 10, no. 6, pp. 379 387, 2004. [5] X. Jing, N. Yu, and Y. Shang, Image filtering based on mathematical morphology and visual perception principle, Chinese Journal of Electronics, vol. 13, no. 4, pp. 612 616, 2004. [6] R. A. Peters et al., A new algorithm for image noise reduction using mathematical morphology, Image Processing, IEEE Transactions on, vol. 4, no. 5, pp. 554 568, 1995. [7] T. Chen, Q. Wu, R. Rahmani-Torkaman, and J. Hughes, A pseudo top-hat mathematical morphological approach to edge detection in dark regions, Pattern Recognition, vol. 35, no. 1, pp. 199 210, 2002. [8] J.-F. Rivest, Morphological operators on complex signals, Signal Processing, vol. 84, no. 1, pp. 133 139, 2004. [9] Z. Yu-qian and G. Wei-hua, Medical images edge detection based on mathematical morphology, 2005. [10] M. Rajab, M. Woolfson, and S. Morgan, Application of region-based segmentation and neural network edge detection to skin lesions, Computerized Medical Imaging and Graphics, vol. 28, no. 1, pp. 61 68, 2004. [11] L.-H. Jiang and R.-H. Liu, A new algorithm for speckle suppression using mathematical morphology and adaptive weighted technique, pp. 19 22, 2007. [12] J. Mahena, Medical edge detection based on mathematical morphology, International Journal of Computer & Communication Technology (IJCCT), vol. 2, no. 6, pp. 49 53, 2011. [13] K. B. R. Suman, B. Deepti, Detection of edges using image processing: Literature review, in International Conference on Emerging Technologies in Electronics and Communications, pp. 19 25, 2013. [14] Z. Yu-qian and G. Wei-hua, Medical images edge detection based on mathematical morphology, in Proceedings of the 2005 IEEE Engineering in Medicine and Biology 27th Annual Conference, pp. 1 4, IEEE, 2006. 25

OPEN TRANSACTIONS ON INFORMATION PROCESSING [15] E. Umbaugh, Computer Vision and Image Processing: A Practical Approach Using Cviptools with Cdrom. Prentice Hall PTR, 1998. [16] http://rsbweb.nih.gov/ij/plugins/gray-morphology.html. [17] N. Efford, Digital Image Processing: A Practical Introduction Using Java (with CD-ROM). Pearson Education, 2000. 26