Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
269
Dr.C. Chandrasekar 2
Computer Science, Associate Professor, Periyar University Salem, Tamilnadu, India.
Abstract
In this paper the important problem is to understand the
fundamental concepts of various filters and apply these
filters in identifying a shark fish type which is taken as a
case study. In this paper the edge detection techniques
are taken for consideration. The software is
implemented using MATLAB. The main two operators
in image processing are Gradient and Laplacian
operators. The case study deals with observation of
Shark Fish Classification through Image Processing
using the various filters which are mainly gradient
based Roberts, Sobel and Prewitt edge detection
operators, Laplacian based edge detector and Canny
edge detector. The advantages and disadvantages of
these filters are comprehensively dealt in this study.
Keywords: Canny, Laplacian, Prewitt, Robert, Sobel.
1.
Introduction
Fig. 1 The gradient and an edge pixel. The circle indicates the location
of the pixel.
Copyright (c) 2012 International Journal of Computer Science Issues. All Rights Reserved.
IJCSI International Journal of Computer Science Issues, Vol. 9, Issue 5, No 1, September 2012
ISSN (Online): 1694-0814
www.IJCSI.org
270
h( x, y ) [ g ( x, y)* f ( x, y)]
[2 g ( x, y)]* f ( x, y)
Where
x 2 y 2 2 2
g( x , y )
( x 2 y 2 )/ 2 2
(1)
Methodology
Copyright (c) 2012 International Journal of Computer Science Issues. All Rights Reserved.
IJCSI International Journal of Computer Science Issues, Vol. 9, Issue 5, No 1, September 2012
ISSN (Online): 1694-0814
www.IJCSI.org
271
simple
(2)
Gx=
-1
-1
Gy=
In Fig.6 it depicts the laplacian operation of onedimensional signal. As expected, the edge corresponds
to a zero crossing, but other zero crossings are
corresponding to small ripples in the original signal
which is also marked. In this method the laplacian
operation is applied to test the image. In this study, the
image of the Shark has been taken for testing the
laplacian operations.
2.1.1
Roberts
2.1.2
Sobel
M sx2 s y2
Where the partial derivatives are computed by:
Copyright (c) 2012 International Journal of Computer Science Issues. All Rights Reserved.
IJCSI International Journal of Computer Science Issues, Vol. 9, Issue 5, No 1, September 2012
ISSN (Online): 1694-0814
www.IJCSI.org
272
(3)
Sx =
-1
-2
-1
-2
-1
Sy =
a0
a1
a2
a7
[i , j]
a3
a6
a5
a4
2.1.3 Prewitt
The Prewitt operator uses the same equations as the
Sobel operator, where constant c = 1.
Table 4 Masks used by Prewitt gradient Operator
Sx =
Sy =
-1
-1
-1
-1
-1
-1
Copyright (c) 2012 International Journal of Computer Science Issues. All Rights Reserved.
IJCSI International Journal of Computer Science Issues, Vol. 9, Issue 5, No 1, September 2012
ISSN (Online): 1694-0814
www.IJCSI.org
273
2.2.1
Marr-Hildreth
2 g ( x, y )
( x y
1 ( x2 y 2 ) 2 2
2
e
2 2
(4)
S [i , j ] G[i , j , ]* I [i, j ]
(5)
(6)
The x and y partial derivatives are computed with
averaging the finite differences over the 2x2 square.
From the standard formulas for rectangular-to-polar
conversion, the magnitude and orientation of the
gradient can be computed as:
is a change in gradient.
M [i, j ] P[i, j ]2 Q[i, j ]2
Fig. 12 Marr-Hildreth Edge Detection Filte
(7)
Copyright (c) 2012 International Journal of Computer Science Issues. All Rights Reserved.
IJCSI International Journal of Computer Science Issues, Vol. 9, Issue 5, No 1, September 2012
ISSN (Online): 1694-0814
www.IJCSI.org
applied for the thresholding operation in the gradientbased method and end up with ridges of edge pixel. But
canny has a more sophisticated approach to the problem.
In this approach an edge point is defined as a point
whose strength is locally maximum in the direction of
the gradient. This is a stronger constraint to satisfy and
is used to thin the ridges found by thresholding. This
process, which results in one pixel wide ridges which is
called Nonmaxima suppression. After Nonmaxima
suppression one ends up with an image. N[i,j] =
nms(M[i,j], [i,j] which is zero everywhere except the
local maxima points. The local maxima points at the
value are preserved. The Thresholding is required in
spite of the smoothing performed as the first step in edge
detection, the Non-maxima suppressed magnitude
image N[i,j] may contain many false edge fragments
which are caused by noise and fine texture. The contrast
of the false edge fragments is small. These false edge
fragments in the Nonmaxima suppressed gradient
magnitude should be reduced. One typical procedure is
to apply a threshold to N[i,j]. All values below the
thresholds are set as zero. After the application of
threshold to the Nonmaxima suppressed magnitude, an
array E(i,j) containing the edges detected in the
image I[i,j] is obtained. However; in this method
applying the proper threshold value is difficult but
involves in trial and error. Because of this difficulty, in
the array E(i,j) there may be some false edges if the
threshold is too low or some edges may be missing if the
threshold is too high. A more effective thresholding
scheme is used for two thresholds.To overcome the
problem, two threshold values, T1 and T2 are applied
to N[i,j]. Here T2 2T1. With these threshold values, two
thresholded edge images T1[i,j]T1[i,j] and T2[i,j] are
produced. The image T2 has gaps in the contours but
contains fewer false edges. With the double thresholding
algorithm the edges in T2 are linked into contours. When
it reaches the end of a contour, algorithm looks in T1 at
the locations of the 8-neighbours for edges that can be
linked to the contour. This algorithm continues until the
gap has been bridged to an edge in T2. The algorithm
performs edge linking as a by-product of thresholding
and resolves some of the problems choosing a threshold.
The Shark is identified by using of the edge detection
methodology. The target image and the original image
with the crossing lines are mapped through the Shark
type as shown in the following Fig. 14 and 15.
274
Fig.16 The Final Horizontal and vertical pair of edges which helps to
identify the Shark fish
Copyright (c) 2012 International Journal of Computer Science Issues. All Rights Reserved.
IJCSI International Journal of Computer Science Issues, Vol. 9, Issue 5, No 1, September 2012
ISSN (Online): 1694-0814
www.IJCSI.org
275
Conclusions
4.
References
[1] Canny, J., A Computational Approach to Edge
Detection, IEEE Trans. Pattern Analysis and
Machine Intelligence, vol.
8:679-714,
November 1986.
[2] Chen, L., Laplacian Embedded Regression for
Scalable Manifold Regularization, Neural
Networks and Learning Systems, IEEE
Transactions, Volume: 23, pp. 902 915, June
2012.
[3] Chunxi Ma, et.al.; An improved Sobel
algorithm based on median filter, Institute of
Electrical and Electronics Engineers, 2nd
Copyright (c) 2012 International Journal of Computer Science Issues. All Rights Reserved.
IJCSI International Journal of Computer Science Issues, Vol. 9, Issue 5, No 1, September 2012
ISSN (Online): 1694-0814
www.IJCSI.org
Copyright (c) 2012 International Journal of Computer Science Issues. All Rights Reserved.
276