COMPARATIVE STUDY OF IMAGE EDGE DETECTION ALGORITHMS

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

Edge Detection Lecture 03 Computer Vision

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

Digital Image Processing COSC 6380/4393

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

Local Image preprocessing (cont d)

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

Segmentation and Grouping

Evaluation Of Image Detection Techniques

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

Biomedical Image Analysis. Point, Edge and Line Detection

Filtering Images. Contents

Comparison between Various Edge Detection Methods on Satellite Image

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

Lecture 7: Most Common Edge Detectors

Lecture 6: Edge Detection

Feature Detectors - Canny Edge Detector

Image Analysis. Edge Detection

Concepts in. Edge Detection

Adaptative Elimination of False Edges for First Order Detectors

What Are Edges? Lecture 5: Gradients and Edge Detection. Boundaries of objects. Boundaries of Lighting. Types of Edges (1D Profiles)

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

Digital Image Processing. Image Enhancement - Filtering

AN EFFICIENT APPROACH FOR IMPROVING CANNY EDGE DETECTION ALGORITHM

Edge and corner detection

CHAPTER 4 EDGE DETECTION TECHNIQUE

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

REVIEW PAPER ON IMAGE EDGE DETECTION ALGORITHMS FOR SEGMENTATION

Topic 4 Image Segmentation

Image Analysis. Edge Detection

LOCALIZATION OF LICENSE PLATE NUMBER USING DYNAMIC IMAGE PROCESSING TECHNIQUES

EE795: Computer Vision and Intelligent Systems

Effects Of Shadow On Canny Edge Detection through a camera

EECS490: Digital Image Processing. Lecture #19

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

An Improved Approach for Digital Image Edge Detection Mahbubun Nahar 1, Md. Sujan Ali 2

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

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

How and what do we see? Segmentation and Grouping. Fundamental Problems. Polyhedral objects. Reducing the combinatorics of pose estimation

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

Detection of Edges Using Mathematical Morphological Operators

Sobel Edge Detection Algorithm

Edge Detection. Ziv Yaniv School of Engineering and Computer Science The Hebrew University, Jerusalem, Israel.

Image Processing

Concepts in. Edge Detection

Practical Image and Video Processing Using MATLAB

Segmentation I: Edges and Lines

Comparative Analysis of Various Edge Detection Techniques in Biometric Application

EE795: Computer Vision and Intelligent Systems

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

Neighborhood operations

What is an edge? Paint. Depth discontinuity. Material change. Texture boundary

University of Cambridge Engineering Part IIB Module 4F12 - Computer Vision and Robotics Mobile Computer Vision

Anno accademico 2006/2007. Davide Migliore

ECEN 447 Digital Image Processing

SIMULATIVE ANALYSIS OF EDGE DETECTION OPERATORS AS APPLIED FOR ROAD IMAGES

EN1610 Image Understanding Lab # 3: Edges

Edge Detection. CS664 Computer Vision. 3. Edges. Several Causes of Edges. Detecting Edges. Finite Differences. The Gradient

Image features. Image Features

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

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

Solution: filter the image, then subsample F 1 F 2. subsample blur subsample. blur

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

Feature Detectors - Sobel Edge Detector

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS

EDGE BASED REGION GROWING

Features. Places where intensities vary is some prescribed way in a small neighborhood How to quantify this variability

Lecture 4: Image Processing

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

MORPHOLOGICAL EDGE DETECTION AND CORNER DETECTION ALGORITHM USING CHAIN-ENCODING

International Journal of Scientific & Engineering Research, Volume 6, Issue 8, August ISSN

Edges and Binary Images

DIGITAL IMAGE PROCESSING

Edge Detection. Announcements. Edge detection. Origin of Edges. Mailing list: you should have received messages

Performance Evaluation of Edge Detection Techniques for Images in Spatial Domain

SRCEM, Banmore(M.P.), India

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

Line, edge, blob and corner detection

CAP 5415 Computer Vision Fall 2012

Inspection of Rubber Cap Using ISEF (Infinite Symmetric Exponential Filter): An Optimal Edge Detection Method

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

School of Computing University of Utah

Lecture: Edge Detection

Image processing. Reading. What is an image? Brian Curless CSE 457 Spring 2017

Edge detection. Convert a 2D image into a set of curves. Extracts salient features of the scene More compact than pixels

Performance Evaluation of Different Techniques of Differential Time Lapse Video Generation

ECG782: Multidimensional Digital Signal Processing

Straight Lines and Hough

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

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

Implementation of Canny Edge Detection Algorithm on FPGA and displaying Image through VGA Interface

Edge Detection (with a sidelight introduction to linear, associative operators). Images

Image Segmentation Image Thresholds Edge-detection Edge-detection, the 1 st derivative Edge-detection, the 2 nd derivative Horizontal Edges Vertical

Lecture 6 Linear Processing. ch. 5 of Machine Vision by Wesley E. Snyder & Hairong Qi. Spring (CMU RI) : BioE 2630 (Pitt)

Dynamic Thresholding Based Edge Detection

Filtering Applications & Edge Detection. GV12/3072 Image Processing.

Assignment 3: Edge Detection

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

Visual Computing Midterm Winter Pledge: I neither received nor gave any help from or to anyone in this exam.

CAP 5415 Computer Vision Fall 2012

Transcription:

COMPARATIVE STUDY OF IMAGE EDGE DETECTION ALGORITHMS Shubham Saini 1, Bhavesh Kasliwal 2, Shraey Bhatia 3 1 Student, School of Computing Science and Engineering, Vellore Institute of Technology, India, shubham.saini2010@vit.ac.in 2 Student, School of Computing Science and Engineering, Vellore Institute of Technology, India, bhavesh.kasliwal2010@vit.ac.in 3 Student, School of Computing Science and Engineering, Vellore Institute of Technology, India, shraey.bhatia2010@vit.ac.in Abstract Since edge detection is in the forefront of image processing for object detection, it is crucial to have a good understanding of edge detection algorithms. The reason for this is that 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. This means that if the edges in an image can be identified accurately, all of the objects can be located and basic properties such as area, perimeter, and shape can be measured. Since computer vision involves the identification and classification of objects in an image, edge detections is an essential tool. We tested two edge detectors that use different methods for detecting edges and compared their results under a variety of situations to determine which detector was preferable under different sets of conditions. I. Introduction Edge detection is a very important area in the field of Computer Vision. Edges define the boundaries between regions in an image, which helps with segmentation and object recognition. They can show where shadows fall in an image or any other distinct change in the intensity of an image. Edge detection is a fundamental of lowlevel image processing and good edges are necessary for higher level processing. [1] Since different edge detectors work better under different conditions, it would be ideal to have an algorithm that makes use of multiple edge detectors, applying each one when the scene conditions are most ideal for its method of detection. In order to create this system, you must first know which edge detectors perform better under which conditions. That is the goal of our project. We tested two edge detectors that use different methods for detecting edges and compared their results under a variety of situations to determine which detector was preferable under different sets of conditions. II. Classification of Edge Detectors A. Laplacian of Gaussian (LoG): Which was invented by Marr and Hildreth (1980) who combined Gaussian filtering with the Laplacian. This algorithm is not used frequently in machine vision. Those who continued his way were Berzins (1984), Shah, Sood and Jain (1986), Huertas and Medioni (1986) [2,3]. B. Gaussian Edge Detectors: This is symmetric along the edge and reduces the noise by smoothing the image. The significant operators here are Canny and ISEF (Shen-Castan) which convolve the image with the derivative of Gaussian for Canny and ISEF for Shen- Castan.[2,3]. III. The Marr-Hildreth Edge Detector The Marr-Hildreth edge detector was a very popular edge operator before Canny released his paper. It is a gradient based operator which uses the Laplacian to take the second derivative of an image. The idea is that if there is a step difference in the intensity of the image, it will be represented by in the second derivative by a zero crossing. So the general algorithm for the Marr-Hildreth edge detector is as follows: 1. Smooth the image using a Gaussian. This smoothing reduces the amount of error found due to noise. 2. Apply a two dimensional Laplacian to the image:

This Laplacian will be rotation invariant and is often called the Mexican Hat operator because of its shape: This operation is the equivalent of taking the second derivative of the image. 3. Loop through every pixel in the Laplacian of the smoothed image and look for sign changes. If there is a sign change and the slope across this sign change is greater than some threshold, mark this pixel as an edge. Alternatively, you can run these changes in slope through a hysteresis (described in the canny edge detector) rather than using a simple threshold. (Algorithm taken from [4]) IV. The Canny Edge Detector The Canny edge detector is widely considered to be the standard edge detection algorithm in the industry. It was first created by John Canny for his Master s thesis at MIT in 1983 [5], and still outperforms many of the newer algorithms that have been developed. Canny saw the edge detection problem as a signal processing optimization problem, so he developed an objective function to be optimized [5]. The solution to this problem was a rather complex exponential function, but Canny found several ways to approximate and optimize the edge-searching problem. The steps in the canny edge detector are as follows: 1. Smooth the image with a two dimensional Gaussian. In most cases the computation of a two dimensional Gaussian is costly, so it is approximated by two one dimensional Gaussians, one in the x direction and the other in the y direction. 2. Take the gradient of the image. This shows changes in intensity, which indicates the presence of edges. This actually gives two results, the gradient in the x direction and the gradient in the y direction. 3. Non-maximal suppression. Edges will occur at points the where the gradient is at a maximum. Therefore, all points not at a maximum should be suppressed. In order to do this, the magnitude and direction of the gradient is computed at each pixel. Then for each pixel check if the magnitude of the gradient is greater at one pixel's distance away in either the positive or the negative direction perpendicular to the gradient. If the pixel is not greater than both, suppress it. 4. Edge Thresholding. The method of thresholding used by the Canny Edge Detector is referred to as "hysteresis". It makes use of both a high threshold and a low threshold. If a pixel has a value above the high threshold, it is set as an edge pixel. If a pixel has a value above the low threshold and is the neighbor of an edge pixel, it is set as an edge pixel as well. If a pixel has a value above the low threshold but is not the neighbor of an edge pixel, it is not set as an edge pixel. If a pixel has a value below the low threshold, it is never set as an edge pixel. (Algorithm based on description given in [6])

V. Comparison of Edge Detectors In the past two decades several algorithms have been developed to extract edges within digital images but their functionalities and performances are not the same. In spite of all the efforts, none of the proposed operators are fully satisfactory in real world. The availability of well-defined quality criteria is important. There are five different criteria that are typically used for testing the quality of an edge detector: -The probability of a false positive (marking something as an edge which isn't an edge) -The probability of a false negative (failing to mark an edge which actually exists) -The error in estimating the edge angle -The mean square distance of the edge estimate from the true edge -The algorithm's tolerance to distorted edges and features such as corners and junctions (Criteria taken from [5]) However, in order to determine the third and fourth criteria, an exact map of the edges in an image must be known, and in general this is not available. It is also not plausible to assume that some "exact map" of all the edges can even be constructed. Therefore, the third and fourth criteria are not very useful. Additionally, corners and junctions simply are not handled well by any edge detector and must be considered separately. Therefore the fifth criterion is not very useful either. The most important criteria are the first two, as it is much more important to have the proper features labeled as edges than having each edge exactly follow what would be considered the "ideal" edge or being able to handle special features such as corners and junctions. VI. EXPERIMENTAL RESULTS All color images were converted to grayscale using MATLAB s RBG2GRAY function. FIGURE 1 FIGURE 2 The visual comparison of the above two sets of images (in Figures 1 and 2) can lead us to the subjective evaluation of the performances of selected edge detectors. Applying these two methods to a noisy image shows

that with noisy images, second derivative operators, like Canny, exhibit better performance but require more computations because of smoothing an image with a Gaussian function first and then computing the gradient. FIGURE 3 Figure 3 shows the ability of the edge detectors to handle corners as well as a wide range of slopes in edge on the circle. The Canny edge detector becomes fairly confused at corners due to the Gaussian smoothing of the image. Also, since the direction of the edge changes instantly, corner pixels looks in the wrong directions for its neighbors. The Marr-Hildreth edge detector fails to detect many prominent edges. FIGURE 4 Figure 4 is a picture of a shoreline. Both the edge detectors had problems detecting the different ridges of the cliff. The foam of the waves also provided some inconsistent results. There are a lot of discrepancies in color at these locations, but no clear edges. FIGURE 5

Figure 5 more accurately shows the capabilities of each edge detector. The Marr-Hildreth detector perceives many edges, but they are too spotty and wide to really identify any features. The Canny edge detector gives nice outlines of the table, the vase, and many of the flowers on the border. Features in the middle of the arrangement are missed, but some are recovered with the addition of color. For example, the red flower in the center and the leaves to its right are found. Canny has specified three issues that an edge detector must address in order to better detect edges in noise conditions: Error rate, Localization and Response. In Marr-Hildreth, locality is not especially good and the edges are not always thin, still this edge detector is much better than the classical ones in cases of low signal to noise ratio. The Marr-Hildreth edge detector will give more nicely connected edges if hysteresis is used to threshold the image, and will not give connected edges if a single threshold is used. Regardless, it is usually gives spotty and thick edges. CONCLUSION Since edge detection is the initial step in object recognition, it is necessary to know the differences between edge detection algorithms. In Marr-Hildreth, locality is not especially good and the edges are not always thin. Canny s method is preferred since it produces single pixel thick, continuous edges. REFERENCES [1] M.B. Ahmad and T.S. Choi, Local Threshold and Boolean Function Based Edge Detection, IEEE Transactions on Consumer Electronics, Vol. 45, No 3. August 1999. [2] Albovik, Handbook of Image and Video Processing, Academic Press, 2000. [3] R.M.Haralick, L.G.Shapiro, Computer and Robot Vision, Volume 1, Addition- Wesley Publishing Company Inc., 1992. [4] Jean Ponce, Lecture 26: Edge Detection II, 12/2/2004. http://www-cvr.ai.uiuc.edu/~ponce/fall04/lect26.ppt [5] R. Owens, "Lecture 6", Computer Vision IT412, 10/29/1997. http://homepages.inf.ed.ac.uk/rbf/cvonline/local_copies/owens/lect6/node2.html [6] S. Price, "Edges: The Canny Edge Detector", July 4, 1996. http://homepages.inf.ed.ac.uk/rbf/cvonline/local_copies/marble/low/edges/canny.htm