Segmentation of Tiles Image Using Various Edge Detection Techniques
Segmentation of Tiles Image Using Various Edge Detection Techniques
Abstract—Segmentation is a major step in image processing. and noise hold high-frequency content. Efforts to reduce the
Segmentation subdivides an image into its constituent regions noise result in unclear and distorted edges. This results in less
or objects. Image segmentation segments the object from the perfect localization of the detected edges; and results in
background to understand the quality of the image properly problems of fake edge detection, edge localization, and missing
and to identify the content of the image carefully. true edges [7-9]. In this paper gradient based classical operators
Segmentation can be done as Edge-based segmentation or like Robert, Prewitt, Sobel, Laplacian based operator LoG and
Region based segmentation. Edge based segmentation Canny operators were used for edge based segmentation.
considerably reduces the amount of data and filters out useless
information, while preserving the important structural
II. EDGEMODELS
properties in an image. Since it is very much needed to have a
good understanding of Edge based segmentation. In this paper
an attempt is made to study the performance of most Edge models are classified according to their intensity profiles.
commonly used edge detection techniques for edge based
image segmentation. The comparisons of these techniques are A. Step-edge model
carried out with a tiles image as an experiment by using
MATLAB software. A step edge involves a transition between two intensity levels
occurring ideally over the distance of one pixel. Digital step-
Keywords— Image Segmentation, Edge detection, Gradient, edges are used frequently as edge models in algorithm
Laplacian development. Canny edge detection algorithm was derived
using a step-edge model.
I. INTRODUCTION
B. Ramp-edge model
The image segmentation is used to reduce the information for
easy analysis.The component parts or objects of an image is In practice, digital images have edges that are blurred and noise.
separated by image segmentation[1]. Usually, the process of In such situation, edges are more closely modelled has having
image segmentation is done using edge detection techniques, an intensity ramp profile. The slope of the ramp is inversely
which detects the edges depending upon the level of intensity proportional to the degree of blurring in the edge. Instead, an
difference of pixels and the level of discontinuity [2-3]. The edge point is any point contained in the ramp, and edge segment
choice of image segmentation technique depends on the quality would then be a set of such points that are connected.
of the edge detecting operators. For the last few decades there
has been a lot of research work is carried out in this field. The C. Roof Model
edge detection performance measure is how well edge detector
markings match with the visual perception of object boundaries Roof edges are models of lines through a region, with the base
[4]. Points, lines, and edges are the three types of image of a roof edge being determined by the thickness and sharpness
features.The edge pixels are pixels at which the intensity of an of the line. In the limit, when its base is one pixel wide a roof
image function changes abruptly, and the sets of connected edge is really nothing more than one- pixel-thick line running
edge pixels are called edges. Edge detectors are local image through a region in an image.
processing methods designed to detect edge pixels. The
detection process is carried out by the examination of local
intensity changes at each pixel element of an image. Traditional
methods of edge detection involves that the image through an
operator/filter, which is constructed to be perceptive to large Step edge Ramp edge Roof edge
gradients in the image, although returning values of zero in
uniform regions [5-6]. A large number of edge detection
techniques are available, with mainly each technique designed Figure 1. Edge Models
to be perceptive to certain types of edges. Variables related to
the selection of an edge detection operator consist of edge III. PROPOSED METHOD
orientation, edge structure and noise environment. Edge
detection is a difficult task in noisy images, as both the edges
10
Integrated Intelligent Research (IIR) International Journal of Data Mining Techniques and Applications
Volume: 04 Issue: 01 June 2015 Page No.10-14
ISSN: 2278-2419
Due to the presence of noise, the problems of false edge
detection, missing of true edges, producing thick or thin lines
etc. are caused.In the proposed method the color image is
converted into Gray scale image and it is taken as input to the
most commonly used edge detection operators (robert, sobel,
prewitt, LoG, and canny). Segmentation is performed after
Binary and Dilated Gradient mask with threshold using edge Figure4.Gradient
detection operatorsand we did the visual comparison of images
for the problem of in-accurate edge detection, omitting of true
edges, generating thin or thick lines and problems due to noise
etc. The comparison of these techniques is carried out with a
defected tile image as an experiment. The software is developed Figure5. Laplacian
using MATLAB R2009a.
V. THE FOUR STEPS OF EDGE DETECTION
Edge Detection
Smoothing: suppress as much noise as possible, without
destroying the true edges.
Enhancement: apply a filter to enhance the quality of the
Gray Scale Segmentation after edges in the image (sharpening).
Image Binary Gradient Detection: determine which edge pixels should be discarded
mask and Dilated as noise and which should be retained (usually, thresholding
Gradient mask with provides the criterion used for detection).
threshold Localization: determine the exact location of an edge (sub-
Colour pixel resolution might be required for some applications, that is,
Image estimate the location of an edge to better than the spacing
between pixels). Edge thinning and linking are usually required
Figure 2. Proposed Method in this step.
Edge detection is performed in many different ways. The The magnitude of gradient provides information about the
majority of the methods are grouped into three categories:[11] strength of the edge.[10]
Gradient Based Edge Detection: In this type derivative of image The direction of gradient is always perpendicular to the
is taken by edge detectors and edges are detected by looking for direction of the edge (the edge direction is rotated with
maximum and minimum in that derivative.Taking its gradient respect to the gradient direction by -90 degrees).[10]
with respect to t of figure 1 is shown in figure2.
Gx
f =grad (f) = Gy (1)
To find diagonal edge direction 2-D mask is used. Consider 3×3 Sobel operator is a discrete differentiation operator used to
region in the following figure for 2-D mask, compute an approximation of the gradient of image intensity
function for edge detection. At each pixel of an image, sobel
TABLE 2. 2-D Mask operator gives either the corresponding gradient vector or
normal to the vector. It convolves the input image with kernel
and computes the gradient magnitude and direction. It uses
z z2 z3
following 3x3 two kernels:
1
TABLE 5 .2-D MASKTOIMPLEMENTEQS.10AND 11.
z4 z5 z6
- - -1 - 0 1
z7 z8 z9
1 2 1
0 0 1 0 0
0 1 2 1 0
1 2 - 2 1
16
0 1 2 1 0
0 0 1 0 0
LoG
The kernels of any size can be approximated by using the above
expression for LoG.
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 Figure 7
due to noise.
E. CannyEdgeDetector (b).Segmented images using various Edge Detection operators:
The Canny edge detector is regarded as one of the best edge
detectors currently in use, Canny's edge detector ensures good
noise immunity and at the same time detects true edge points
with minimum error.Canny’s approach is based on three basic
objectives [12]
1. Low error rate: Canny edge is as close as to the tree edge.
2. Edge points should be well localized: Distance between
canny edge and the true edge is minimum. Figure 8
3. Single edge point response: It will not find multiple edge
points when single edge point exit[13].
13
Integrated Intelligent Research (IIR) International Journal of Data Mining Techniques and Applications
Volume: 04 Issue: 01 June 2015 Page No.10-14
ISSN: 2278-2419
By visual inspection it is clear that gradient based classical
operators like Robert, Prewitt, and Sobel were used for edge
detection did not give sharp edges and they were highly
sensitive to noise image. Laplacian based LoG operators also
suffers from two limitations, the probability of detecting false
edges is high and at the curved edges, the localization error may
be severe but Canny operator proposed by John F. Canny in
1986 is the ideal for segmentation of images that are corrupted
with noise. Even though, the Canny’s edge detection algorithm
has a better performance. Canny’s edge detection algorithm is
more costly in comparing to Sobel, Prewitt and Robert’s
operator. Depending on the application technique it varies.
REFERENCES
[1] Amit Chaudhary,Tarun Gulati “Segmenting Digital Images using Edge
Detection”,International Journal of Application or Innovation in
Engineering & Management (IJAIEM), Volume 2, Issue 5, May 2013
Page 319
[2] S. Lakshmi & V.Sankaranarayanan (2010) “A Study of edge detection
techniques for segmentation computing approaches”, Computer Aided
Soft Computing Techniques for Imaging and Biomedical Applications,
35-41.
[3] P. Thakare (2011) “A Study of Image Segmentation and Edge Detection
Techniques”, International Journal on Computer Science and
Engineering, Vol 3, No.2, 899-904.
[4] Werner Frei and Chung-Ching Chen. Fast boundary detection: A
generalization and a new algorithm. Computers, IEEETransactions on,
100(10):988–998, 1977.
[5] K. J. Pithadiya, C. K. Modi & J. D. Chauhan (2011), “Selecting the Most
Favourable Edge Detection Technique for Liquid Level Inspection in
Bottles” International Journal of Computer Information Systems and
Industrial Management Applications (IJCISIM) ISSN: 2150-7988 Vol.3,
pp.034-044, 2011.
[6] S. Jeong You & N. I. Choet (2011), “A New Image Denoising Method
Based On The Wavelet Domain Nonlocal Means Filtering”, International
Conference on Acoustics, Speech and Signal Processing (ICASSP), pp.
1141-1144.
[7] Z. Zhang & G. Zhao (2011), “Butterworth filter and Sobel edge detection
to image”, International Conference on Multimedia Technology (ICMT),
pp. 254-256.
[8] Deng, W. Ma & Y. Yin (2011), “An Edge Detection Approach of Image
Fusion Based on Improved Sobel Operator” 4th International Congress
on Image and Signal Processing, pp. 1189-1193.
[9] Zhang Jin-Yu, Chen Yan, Huang Xian-Xiang (2009), “Edge Detection of
Images Based on Improved Sobel Operator and Genetic Algorithms”,
International Conference on Image Analysis and Signal Processing
(ICASP),pp. 31-35.
Figure 9 [10] R. C. Gonzalez and R. E. Woods. Digital Image Processing, Second
Edition, Prentice Hall, 2002. [5] J. A. Madhuri. Digital Image processing.
[11] Ayaz Akram, Asad Ismail, Comparison of Edge Detectors International
Journal of Computer Science and Information Technology Research
(IJCSITR) Vol. 1, Issue 1, pp: (16-24), Month: October-December 2013,
[12] Canny, J. F. (1986). A computation approach to edge detectors.
IEEETransactions on Pattern Analysis and Machine Intelligence.
[13] T. Acharya and A. K. Ray. Image Processing Principles and
Applications, John Wiley & Sons, Inc.,2005.
Figure 10
IX. CONCLUSION
14