Comparison of Edge Detectors: Ayaz Akram, Asad Ismail
Comparison of Edge Detectors: Ayaz Akram, Asad Ismail
Comparison of Edge Detectors: Ayaz Akram, Asad Ismail
Vol. 1, Issue 1, pp: (16-24), Month: October-December 2013, Available at: www.researchpublish.com
I. INTRODUCTION
Edge can be defined as a sharp discontinuity or geometrical change in an image. The edges carry significant information
regarding the objects present in an image. Edge detection, the process of determining edge pixels within an image, is a task of
huge importance in feature-based image processing. Accurately detected edges separate objects from the background and help
in calculation of different features of objects like area, perimeter and shape. There is a large number of image processing and
computer vision applications that rely on correctly detected edges within an image. For example, military applications
involving tasks such as object recognition and motion analysis, security applications including data coding, data hiding, and
watermarking also benefit from improved edge detection capabilities. There has been a lot of research in this field for the last
few decades. The performance measure for the edge detection is how well edge detector markings match with the visual
perception of object boundaries [6]. The detection process is carried out by the examination of local intensity changes at each
pixel element of an image. This paper is further organized as follows. Section 2 describes different methodologies for edge
detection. Section 3 describes working of some edge detection algorithms. Section 4 deals with quantitative comparison of
those algorithms. In section 5 a comparison is made between results of those algorithms after applying them to real life
images. Section 6 provides with conclusions.
II. METHODOLOGIES
There are many ways to perform edge detection. However, the majority of different methods may be grouped into three
categories:
Gradient Based Edge Detection: In this category of edge detectors derivative of image is taken and edges are detected
by looking for maximum and minimum in that derivative.
(a) figure 1
(b) figure2
Page | 16
Research Publish Journals
(c) figure 3
Non-derivative Based Edge Detection: This category of edge detectors do not require image derivatives at all.
There are many problems associated with edge detection such as false edge detection, missing true edges, edge
localization, high computational time and problems due to noise. Past research and experience with numerous edge
detectors indicates that the problem of locating edges in real images is extremely difficult. The performance of an edge
detector depends on how well localized its response to real and synthetic images is. All real life images contain noise.
Usually, to minimize the effect of this noise low pass filtering (using Gaussian kernels) is performed prior to edge
detection. But, this smoothing also reduces the effect of sharp discontinuities due to edges [7]. Smoothing performed by filter
can be controlled by varying parameters of filter. Increasing strength of filter too much would result in effective removal of
noise but detected edges will have large localization errors and many edges would not be picked. On the other hand
decreasing strength of filter would result in ineffective removal of noise but fine details would be preserved [1].Keeping in
view the problems of Gaussian kernels and gradient based edge detectors SUSAN Edge detector [12] was presented in 1995
and the fact that it uses no image derivatives makes its performance good in presence of noise. Marr and Hildreth [9] in 1980
argued that an edge detecting operator should be a scalable differential operator, which can compute the first or second
derivatives at different scales. They achieved these goals using a Laplacian of Gaussian (LoG) operator,
which was as:
Page | 17
Research Publish Journals
LoG: This operator belongs to Laplacian based edge detectors class. Laplacian operator highlights the regions of rapid
intensity changes in an image. As the Laplacian of an image detects the noise along with the edges in an image, the image is
smoothened first by convolving by a 2-D Gaussian kernel of standard deviation .
LoG is then convolved with input image I(x,y) giving resultant edge map.
Page | 18
Research Publish Journals
The kernels of any size can be approximated by using the above expression for LoG. The edge detection in an image using
LoG operator can thus be obtained by the following steps:
1.Apply Log to the input image.
2.Detect the zero-crossings of the image.
3.Apply threshold to minimize the weak zero-crossings caused due to noise.
Canny: The Canny edge detection algorithm constitutes the following basic steps [7]
1. Noise is filtered and image is smoothed using Gaussian filter.
2. Edge strength is found by computing the gradient magnitude and angle of gradient vector for edge direction.
3. Non-maxima suppression is applied to the gradient magni- tude to trace move along the edge direction and suppress those
pixel values that are not considered edge and thus resulting in thinning of edge.
4. Final step is to use hysteresis and connectivity analysis to detect and connect edges.
If threshold value for edge detection is kept too low or too high there can be problem of either false positive or false
negative edges. Canny algorithm solves this problem by using two thresholds: A low threshold and a high threshold.
Susan: SUSAN Edge detector [12] was presented in 1995 and the fact that it uses no image derivatives makes its
performance good in presence of noise. SUSAN stands for smallest Uni value Segment Assimilating Nucleus. The idea
behind this detector is to use a pixels similarity to its neighbors gray values as the classification criteria (a non linear
filter). Figure 7 shows that the area of the USAN carries information about the image structure around a given point. The
area of the USAN is at a maximum in a flat region, becomes half when USAN is near a straight edge and becomes further
low when mask is used near a corner. Circular masks placed at different locations of an image containing a rectangle can be
seen in figure. USAN is marked in dark color for each circular mask.
Page | 19
Research Publish Journals
Here g is a geometric threshold which is set to 3/4. After computing the edge response image non maxima suppression is
performed for which direction perpendicular to edge is required. The direction depends on the edge type which is being
examined either inter-pixel (edge is between pixels) or intra-pixel (pixel itself is part of the edge).For inter pixel case, if the
USAN area is greater than the mask diameter and the center of gravity of the USAN lies more than one pixel from the
nucleus. The center of gravity of the USAN is defined as:
Required direction is given by r0 C G(r0 ). For intra pixel case, if the USAN area is smaller than the mask diameter or the
USAN center of gravity lies less than one pixel from the nucleus. Compute the second order moments of the USAN about the
nucleus r0 = (x0 , y0 ):
where, NI is number of actual edge pixels, NA is the number of detected edge pixels, and d(k) is the distance from the
kth actual edge to the corresponding detected edge. is a scaling constant, which is set to 1/9 as is often done in the
literature. We have taken a synthetic image (box shape) as an input, and find out its edge map at different levels of
independent Gaussian noise. Threshold parameters of every edge detector are chosen to maximize Pratts FOM. Outputs of
all detectors are shown in figure 8 and resulting values of Pratts FOM are given in table 1.
Page | 20
Research Publish Journals
Page | 21
Research Publish Journals
Also, it is observed from figure 8 that the visual appearance of the output isnt always as good as the numerical. This is
due to the limitations of the figure of merit measure (for which the output edge maps were optimized).
Page | 22
Research Publish Journals
VI. CONCLUSIONS
Edge detection is a key tool for image segmentation used for object detection and many other applications. Therefore, it is
necessary to use a robust edge detector which gives the best results at all conditions. In this paper we have tried to explain
the differences between some famous edge detection algorithms and evaluate them on the basis of their results to different
images. Gradient based edge detectors like Prewitt and Sobel are relatively simple and easy to implement, but are very
sensitive to noise. LoG tests wider area around the pixel and find the edges correctly, but malfunctions at corners and curves.
It also does not find edge orientation because of using Laplacian filter. Cannys algorithm is an optimal solution to problem
of edge detection which gives better detection specially in presence of noise, but it is time consuming and require a lot of
parameter setting. SUSAN edge detector uses no image derivatives which explains why the performance in the presence of
noise is good. The integrating effect of the principle, together with its non-linear response, give strong noise rejection. This
can be understood simply if an input sig nal with identically independently distributed Gaussian noise is considered. As long
as the noise is small enough for the USAN function to contain each similar value, the noise is ignored. The integration of
individual values in the calculation of areas further reduces the effect of noise. Another strength of the SUSAN edge detector
is that the use of controlling parameters is much simpler and less arbitrary (and therefore easier to automate) than with most
other edge detection algorithms [12]. Numerical analysis of these algorithms is done for synthetic image (with known edges)
at various noise levels using Pratts figure of merit. For natural image results are analyzed visually.
REFERENCES
[1]
Volker Aurich and Jo rg Weule. Non-linear gaussian filters performing edge preserving diffusion. In Mustererkennung 1995, pages
538545. Springer, 1995.
[2]
Mitra Basu. Gaussian-based edge-detection methods-a survey. Systems, Man, and Cybernetics, Part C: Applications and Reviews,
IEEE Trans- actions on, 32(3):252260, 2002.
[3] F. Bergholm. Edge focusing. Proc. 8th Int. Conf. Pattern Recogni- tion,Paris,France, 3(1):597600, 1986.
Page | 23
Research Publish Journals
[5]
James J. Clark. Authenticating edges produced by zero-crossing algo- rithms. Pattern Analysis and Machine Intelligence, IEEE
Transactions on, 11(1):4357, 1989.
[6]
Werner Frei and Chung-Ching Chen. Fast boundary detection: A generalization and a new algorithm.
Transactions on, 100(10):988998, 1977.
[7]
Rafael C Gonzalez and RE Woods. Digital image processing (interna- tional ed.), 2008.
[8]
Raman Maini and Himanshu Aggarwal. Study and comparison of various image edge detection techniques. International
Journal of Image Processing (IJIP), 3(1):111, 2009.
[9]
David Marr, Tomaso Poggio, Ellen C Hildreth, and W Eric L Grimson. A computational theory of human stereo vision. Springer,
1991.
[10]
David Martin, Charless Fowlkes, Doron Tal, and Jitendra Malik. A database of human segmented natural images and its
application to evaluating segmentation algorithms and measuring ecological statistics. In Computer Vision, 2001. ICCV 2001.
Proceedings. Eighth IEEE International Conference on, volume 2, pages 416423. IEEE, 2001.
[11]
Judith MS Prewitt. Object enhancement and extraction, volume 75. Academic Press, New York, 1970.
[12]
Computers, IEEE
Page | 24
Research Publish Journals