SlideShare una empresa de Scribd logo
1 de 8
Descargar para leer sin conexión
Jan Zizka (Eds) : CCSIT, SIPP, AISC, PDCTA - 2013
pp. 233–240, 2013. © CS & IT-CSCP 2013 DOI : 10.5121/csit.2013.3626
EDGE DETECTION BY MODIFIED OTSU
METHOD
J. K. Mandal and Abhinaba Ghosh
Department of Computer Science and Engineering, University of Kalyani
Kalyani, Nadia-741235, West Bengal, India
Email- {jkm.cse@gmail.com, abhinabaghosh4u@gmail.com}
ABSTRACT
In this paper a novel edge detection method has been proposed which outperform Otsu method
[1]. The proposed detection algorithm has been devised using the concept of genetic algorithm
in spatial domain. The key of edge detection is the choice of threshold; which determines the
results of edge detection. GA has been used to determine an optimal threshold over the image.
Results are compared with existing Otsu technique which shows better performances.
KEYWORDS
Otsu Method, Edge Detection, Advanced Sobel Operator, Genetic algorithm, Crossover,
Chromosome.
1. INTRODUCTION
In digital image, edge is a collection of the pixels whose gray value has a step or roof change, and
it also refers to the part where the brightness local area of the image changes significantly. Edge
detection of an image is a very vital area in the field of Computer Vision. Edges are significant
local changes of intensity in an image. Edges typically occur on the boundary between two
different regions in an image. Edges can be modeled according to their intensity profiles [2]. The
quality of edge detection is highly dependent on lighting conditions, density of edges in the scene
and noise. While each of these problems can be handled by adjusting certain values in the edge
detector and changing the threshold value for what is considered an edge, no good method has
been determined for automatically setting these values, so they must be manually changed by an
operator each time the detector is run with a different set of data [3]. Since different edge
detectors work better under different conditions, it would be ideal to have an algorithm that
makes use of appropriate edge detection. In order to create this system, we must first know which
edge detectors perform better under which conditions.
Section 2 of the paper deals with literature survey, the proposed technique and algorithm is given
in section 3; Result is discussed in section 4. Performance and Comparisons with existing
techniques with advantage and disadvantages are discussed in section 5, Conclusion is drawn in
section 6 and references are given in section 7.
234 Computer Science & Information Technology (CS & IT)
2. LITERATURE SURVEY
Edge detection find out outlines of an object and boundaries between objects and the background
in the image. An edge-detection filter can also be used to improve the appearance of blurred or
anti-aliased video streams. The basic edge
that determines the level of variance between different pixels [4]. The edge
calculated by forming a matrix centered on a pixel chosen as the center of the matrix area
value of this matrix area is above a given threshold, then the middle pixel is classified as an edge
[5]. Examples of gradient-based edge detectors are Roberts, Prewitt, and Sobel operators. All the
gradient-based algorithms have kernel operators
directions which are orthogonal to each other, commonly vertical and horizontal [6]. Many
operators have been used for edge detection of digital image in spatial domain; some of them are
reviewed briefly. All this edge detection operators’ work for gray scale images in spatial domain.
In section 2.1 we have discussed the Roberts edge detection method, Sobel edge detector in
section 2.2 and that of Prewitt edge detection scheme in section 2.3 and Otsu method in se
2.4.
2.1 The Roberts edge detector
The Roberts Cross operator performs a simple, quick to compute, 2
measurement on an image [3]. It also produces very weak responses to genuine edges unless they
are very sharp. Convolution meth
My represents the vertical 2*2 mask. The vertical and horizontal masks for Robert edge detection
is given below.
These masks are convoluted with the original image and the output image is
detected image. It highlights regions of high spatial frequency which often correspond to edges.
2.2 The Sobel edge detector
The Sobel operator performs a 2
emphasizes regions of high spatial frequency that correspond to edges. Typically it is used to find
the approximate absolute gradient magnitude at each point in an input grayscale image. It is a
discrete differentiation operator computing an approximation of the gradient of the
intensity function. Mx represents the horizontal 3*3 mask and M
mask. The vertical and horizontal masks for sobel edge detection are given below.
The Sobel operator is slower to compute than the Roberts Cross operator
convolution kernel smoothes the input image to a greater extent and so makes the operator less
Computer Science & Information Technology (CS & IT)
URVEY
Edge detection find out outlines of an object and boundaries between objects and the background
detection filter can also be used to improve the appearance of blurred or
basic edge-detection operator is a matrix area gradient operation
that determines the level of variance between different pixels [4]. The edge-detection operator is
calculated by forming a matrix centered on a pixel chosen as the center of the matrix area
value of this matrix area is above a given threshold, then the middle pixel is classified as an edge
based edge detectors are Roberts, Prewitt, and Sobel operators. All the
based algorithms have kernel operators that calculate the strength of the slope in
directions which are orthogonal to each other, commonly vertical and horizontal [6]. Many
operators have been used for edge detection of digital image in spatial domain; some of them are
s edge detection operators’ work for gray scale images in spatial domain.
In section 2.1 we have discussed the Roberts edge detection method, Sobel edge detector in
section 2.2 and that of Prewitt edge detection scheme in section 2.3 and Otsu method in se
The Roberts edge detector
Roberts Cross operator performs a simple, quick to compute, 2-D spatial gradient
measurement on an image [3]. It also produces very weak responses to genuine edges unless they
are very sharp. Convolution method is applied here. Mx represents the horizontal 2*2 mask and
represents the vertical 2*2 mask. The vertical and horizontal masks for Robert edge detection
These masks are convoluted with the original image and the output image is the required edge
detected image. It highlights regions of high spatial frequency which often correspond to edges.
Sobel operator performs a 2-D spatial gradient measurement on an image [3] and so
high spatial frequency that correspond to edges. Typically it is used to find
the approximate absolute gradient magnitude at each point in an input grayscale image. It is a
discrete differentiation operator computing an approximation of the gradient of the
represents the horizontal 3*3 mask and My represents the vertical 3*3
mask. The vertical and horizontal masks for sobel edge detection are given below.
The Sobel operator is slower to compute than the Roberts Cross operator, but its larger
convolution kernel smoothes the input image to a greater extent and so makes the operator less
Edge detection find out outlines of an object and boundaries between objects and the background
detection filter can also be used to improve the appearance of blurred or
detection operator is a matrix area gradient operation
detection operator is
calculated by forming a matrix centered on a pixel chosen as the center of the matrix area. If the
value of this matrix area is above a given threshold, then the middle pixel is classified as an edge
based edge detectors are Roberts, Prewitt, and Sobel operators. All the
that calculate the strength of the slope in
directions which are orthogonal to each other, commonly vertical and horizontal [6]. Many
operators have been used for edge detection of digital image in spatial domain; some of them are
s edge detection operators’ work for gray scale images in spatial domain.
In section 2.1 we have discussed the Roberts edge detection method, Sobel edge detector in
section 2.2 and that of Prewitt edge detection scheme in section 2.3 and Otsu method in section
D spatial gradient
measurement on an image [3]. It also produces very weak responses to genuine edges unless they
represents the horizontal 2*2 mask and
represents the vertical 2*2 mask. The vertical and horizontal masks for Robert edge detection
the required edge
detected image. It highlights regions of high spatial frequency which often correspond to edges.
D spatial gradient measurement on an image [3] and so
high spatial frequency that correspond to edges. Typically it is used to find
the approximate absolute gradient magnitude at each point in an input grayscale image. It is a
discrete differentiation operator computing an approximation of the gradient of the image
represents the vertical 3*3
, but its larger
convolution kernel smoothes the input image to a greater extent and so makes the operator less
Computer Science & Information Technology (CS & IT) 235
sensitive to noise. The operator also generally produces considerably higher output values for
similar edges, compared with the Roberts Cross.
2.3 Prewitt’s operator:
Prewitt operator is similar to the Sobel operator and is used for detecting vertical and horizontal
edges in images [3]. It is a discrete differentiation operator, computing an approximation of the
gradient of the image intensity function. Mx represents the horizontal 3*3 mask and My represents
the vertical 3*3 mask. The vertical and horizontal masks for prewitt edge detection are given
below.
At each image point, the gradient vector points in the direction of largest possible intensity
increase and the length of the gradient vector corresponds to the rate of change in that direction.
This implies the result of the Prewitt operator at an image point which is in a region of constant
image intensity is a zero vector and at a point on an edge is a vector which points across the edge,
from darker to brighter values.
2.4 Otsu method of Edge detection
There are many threshold selection methods. Depending on the scope of applications, the
threshold methods can be divided into the 1) overall threshold method, 2) local threshold and 3)
dynamic threshold method. In this paper, GA-based edge detection belongs to the overall Otsu
threshold method [1].
Suppose f (x, y) is the objective image that we want to segment, its gray range is {0, 1,…, L-1}.
The image pixels will be divided into two categories by threshold t: C0 = {0, 1, …, t}, C1 = {t +1,
t +2, …., L-1}. C0 and C1 respectively represent the target and background [7]. The Classes
square error between C0 and C1 is given below:
(1)
Here t is threshold, W0 (t) is the number of pixels in which gray value of its image are less than
the threshold t. W1 (t) is the number of pixels in which the image gray value are greater than the
threshold value t. µ0(t) is the average gray value of the pixels in which the image gray value are
less than the threshold t. And µ1 (t) is the average gray value of the pixels in which the image gray
values are greater than the threshold t. The t that makes variance the greatest value is the best
partition threshold.
3. THE TECHNIQUE
The proposed technique comprises of all the basic steps of GA such as Initial population, fitness
function calculation, Selection, crossover and mutation, final selection. The steps are discussed
below.
236 Computer Science & Information Technology (CS & IT)
Initial population: A chromosome is an array of parameter values to be optimized. In our
algorithm we have taken 8 bit chromosome as there are 256 no of gray levels in the input image.
Any chromosome represents the string between 0 (00000000) to code L-1 (11111111) where
there are L gray level values. We have taken all possible 50 randomly generated chromosomes as
the initial population.
Fitness function Calculation: Threshold methods are used for segmentation of image, and these
methods can be divided into the (1) Global threshold method, (2) local threshold and (3) dynamic
threshold method. We have used both local and global threshold method to perform the image
segmentation and this is implemented by Genetic algorithm based approach. We have taken a
gray scale image f (x, y) as input. The gray levels are in between [0 to 255] denoted by [0 to L-1].
The number of pixels at level i is denoted by ni and the total number of pixels by N =n0 + n1
+……+ nL-1.
(2)
As next step image pixels are partitioned into two classes C0 and C1 (background and object, or
vice versa) at gray level t. C0 denotes pixels with gray level [0, 1,….., t] and C1 denotes pixels
with gray level [t+1, t+2,..., L-1].
Let, the probabilities of class occurrence and the class mean level respectively are given by w0
and w1.
(3)
Let, µ0 is the average gray value of the pixels in which the image gray value are less than the
threshold ‘t’ and µ1 is the average gray value of the pixels in which the image gray values are
greater than the threshold ‘t’.
Then,
(5)
If σc
2
and σT
2
are the class variance and total class variance of gray levels respectively, their ratio
is considered as the fitness function for this algorithm.
Here, σc
2
=w0*w1*(µ0 -µ1)2 and
σT
2
=w0 (µ0 –µt)2+ w1(µ1 –µt)2+…+ wm-1(µm-1 –µt)2 (6)
The input image has been divided into m segments and calculated σT
2
for the whole image.
(4)
Computer Science & Information Technology (CS & IT) 237
Calculate the ratio, y= σc
2
/ σT
2
. This ratio is the fitness function of our algorithm. Now it is to find
the threshold t which minimizes this ratio y. GA is used to find out this maximization.
Selection: The selection evaluates each individual and keeps only the fittest ones in the
population. The fitness values are calculated and 20 chromosomes are selected for next step. In
addition to those fittest individuals, 10 less fit ones have also been selected according to a small
probability. The others are removed from the current population.
Crossover and Mutation: The crossover recombines two individuals to have new ones which
might be better. The mutation induces changes in a small number of chromosomes units. Its
purpose is to maintain the population diversified enough during the optimization process. Single
point crossover has been used with crossover probability 0.9. Mutation operation has been
applied on the recently selected chromosome with mutation probability Pm which follows a
decaying exponential function with starting value 0.05.
Algorithm
Input: Gray scale lenna image
Output: Edge detected image
Method: Enhanced Otsu method
Step1. We have taken a gray scale image of 200*200 dimensions with the gray levels between
[0 to 255] denoted by [0 to L-1].We calculate the gradient image f (x, y) by using
advanced Sobel operator.
Step2. Partition the gradient image pixels into two classes C0 and C1 (background and object, or
vice versa) at gray level t. C0 denotes pixels with gray level [0, 1,….., t] and C1 denotes
pixels with gray level [t+1, t+2,..., L-1].
Step3. The fitness function is taken as y= σc
2
/ σT
2
, where σc
2
and σT
2
are the class variance and
total class variance of gray levels respectively.
Here, σc
2
=w0*w1*(µ0 -µ1)2
and
σT
2
=w0 (µ0 –µt)2
+ w1(µ1 –µt)2
+…….+ wm-1(µ m-1 –µt)2
Now the objective is to take that particular threshold value t which gives the maximized
ratio of fitness function y.
Step4. Initialize randomly a population space of size 50 (each chromosome is of 8 bit binary
string and its value is in between gray level value 0 to 255).
Step5. We have taken all the 50 chromosomes and fitness value of each has been calculated and
then20 best fitted chromosomes are selected. Roulette Wheel is used in this selection
operation. We have also arbitrarily selected 5 chromosome of less probability for future
crossovers.
Step6. Single point crossover is applied at 6th
bit on this less probability based chromosome and
again calculated the fitness value and has selected the best one which gives greater fitness
value.
238 Computer Science & Information Technology (CS & IT)
Step7. Mutation operation is applied on the recently selected chromosome with mutation
probability Pm which follows a decaying exponential function with starting value 0.05.
Step8. Threshold value t is obtained which has maximized the fitness function.
Step9. Goto step 4 and check if the new t gives better value then replace the old one by new one
and vice versa. If the iteration is more than 50, goto next step.
Step10.Finally we have got the threshold t. Let, new edge detected image is denoted g(x, y). Put
all g(x, y) = 0 (marked as non-edge or background points) if f(x, y) <t; and put all f(x, y)
= 255 (edge points) if g(x, y) >= t;
Step11.This image is processed through edge thinning and finally we got the edge detected
image g’(x, y)
4. RESULTS
C language has been used to implement this GA based modified algorithm. We have taken Lenna
image as input, the size of image is a 200 * 200 pixel. Here the Figure 1, figure 2 and figure 3 are
original image, edge detected image by Otsu method, edge detected image by proposed method
respectively.
Fig. 1. Original Image Fig. 2. Otsu method Fig. 3. Proposed method
5. PERFORMANCE EVALUATION AND COMPARISON
Comparing the results from fig 2 and fig 3 regarding detected edge of image given in fig 1, it can
be easily seen that the proposed algorithm that used improved detection template and GA got
better result than the Otsu method. The proposed algorithm has stronger edge search capability
and more complete edge. We have done experiment on choosing crossover at points 2nd, 3rd, 4th,
5th, 6th, 7th bit of the selected chromosome, and got better result has been obtained at 6th bit
crossover. So, we have taken this 6th bit crossover point in this algorithm.
We have compared our edge detection technique with Otsu method including the previous edge
detection algorithms [8] by applying a loop over the algorithm and counted the percentage of
correctly detected edges called true positive. The summary of the comparison is shown in
given in Table 1.
Computer Science & Information Technology (CS & IT) 239
Table 1. Comparison of performance of proposed technique
Name of Algorithm Correctly detected pixels of True edge
for 200*200 Lenna Image
Roberts edge detector 19128
Prewitt edge detector 26659
Sobel edge detector 26957
Otsu Method 31456
Modified algorithm 35204
Advantages and disadvantages
The main advantage of the proposed method is that it solves problem with multiple solutions (i.e.
multiple optimal threshold) and it can be easily implemented. No absolute assurance that a
genetic algorithm will find a global optimum and difference between the shortest and the longest
optimization response time is larger
6. CONCLUSIONS
This method used improved Sobel operator and genetic algorithms to optimize segmentation
threshold of gradient image and proposed a new automatic optimal threshold algorithm. It
overcomes classical Sobel operator’s shortcomings such as over segmentation and sensitivity.
Otsu has used only global thresholding method and has taken the variance of total class difference
but in our algorithm we have used local thresholding method and have considered the ratio of the
class variance and total class variance of gray levels. The proposed algorithm gives better
performance compared to Otsu method of edge detection. A better refining operator will be
developed in the future.
ACKNOWLEDGEMENT
The authors expressed deep sense of gratitude to the PURSE scheme of DST, the Govt. of India
under which the research has been carried out.
REFERENCES
[1] Nobuyuki Otsu, “A threshold selection method from gray-level histograms". IEEE Trans. Sys., Man.,
Cyber. 9 (1): 62–66. (1979).
[2] Gonzalez, R., and Woods, R. (2002). Digital image processing (2nd ed). Prentice-Hall Inc, 567-612.
(2002).
[3] R. Rakesh, P. Chaudhuri and C. Murthy, “Thresholding in Edge Detection: A Statistical Approach”,
IEEE Trans. Image Processing, Vol 13, No. 7, pp. 927-936, 2004.
[4] D.Ziou and S. Tabbone "Edge detection techniques: An overview", International Journal of Pattern
Recognition and Image Analysis, 8(4):537–559, 1998 (1998).
[5] Kang C.C. and Wang W.J., “A novel edge detection method based on the maximizing objective
function,” Pattern Recognition, vol. 40, no. 2, pp. 609–618, 2007
[6] Konishi, A.Yuille, J.Coughlan, A statistical approach to multiscale edge detection, Image and Vision
computing, 2003, (21):37-48.( 2003).
240 Computer Science & Information Technology (CS & IT)
[7] Chang Huang, C. (2002). Edge detection based on class ratio. 152, sec.3, Peishen Rd., Shenkeng,
Taipei,22202, Taiwan, R.O.C. (2002).
[8] Sankur B., Sezginb M. Image Thresholding Techniques: a Survey over Categories. Journal of
Electronic Imaging, vol. 13(1), (2004) pp. 146-165.

Más contenido relacionado

La actualidad más candente

A survey on efficient no reference blur estimation methods
A survey on efficient no reference blur estimation methodsA survey on efficient no reference blur estimation methods
A survey on efficient no reference blur estimation methods
eSAT Journals
 
Image segmentation methods for brain mri images
Image segmentation methods for brain mri imagesImage segmentation methods for brain mri images
Image segmentation methods for brain mri images
eSAT Journals
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
Rushin Shah
 

La actualidad más candente (20)

Matching algorithm performance analysis for autocalibration method of stereo ...
Matching algorithm performance analysis for autocalibration method of stereo ...Matching algorithm performance analysis for autocalibration method of stereo ...
Matching algorithm performance analysis for autocalibration method of stereo ...
 
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
Enhanced Optimization of Edge Detection for High Resolution Images Using Veri...
 
Object Capturing In A Cluttered Scene By Using Point Feature Matching
Object Capturing In A Cluttered Scene By Using Point Feature MatchingObject Capturing In A Cluttered Scene By Using Point Feature Matching
Object Capturing In A Cluttered Scene By Using Point Feature Matching
 
Mn3621372142
Mn3621372142Mn3621372142
Mn3621372142
 
A survey on efficient no reference blur estimation methods
A survey on efficient no reference blur estimation methodsA survey on efficient no reference blur estimation methods
A survey on efficient no reference blur estimation methods
 
A survey on efficient no reference blur estimation
A survey on efficient no reference blur estimationA survey on efficient no reference blur estimation
A survey on efficient no reference blur estimation
 
F045033337
F045033337F045033337
F045033337
 
Image segmentation methods for brain mri images
Image segmentation methods for brain mri imagesImage segmentation methods for brain mri images
Image segmentation methods for brain mri images
 
An Assessment of Image Matching Algorithms in Depth Estimation
An Assessment of Image Matching Algorithms in Depth EstimationAn Assessment of Image Matching Algorithms in Depth Estimation
An Assessment of Image Matching Algorithms in Depth Estimation
 
Optimization of Macro Block Size for Adaptive Rood Pattern Search Block Match...
Optimization of Macro Block Size for Adaptive Rood Pattern Search Block Match...Optimization of Macro Block Size for Adaptive Rood Pattern Search Block Match...
Optimization of Macro Block Size for Adaptive Rood Pattern Search Block Match...
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Performance Evaluation of Image Edge Detection Techniques
Performance Evaluation of Image Edge Detection Techniques Performance Evaluation of Image Edge Detection Techniques
Performance Evaluation of Image Edge Detection Techniques
 
Lw3620362041
Lw3620362041Lw3620362041
Lw3620362041
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
 
IRJET- Image Feature Extraction using Hough Transformation Principle
IRJET- Image Feature Extraction using Hough Transformation PrincipleIRJET- Image Feature Extraction using Hough Transformation Principle
IRJET- Image Feature Extraction using Hough Transformation Principle
 
IEEE ICAPR 2009
IEEE ICAPR 2009IEEE ICAPR 2009
IEEE ICAPR 2009
 
Design of Gabor Filter for Noise Reduction in Betel Vine leaves Disease Segme...
Design of Gabor Filter for Noise Reduction in Betel Vine leaves Disease Segme...Design of Gabor Filter for Noise Reduction in Betel Vine leaves Disease Segme...
Design of Gabor Filter for Noise Reduction in Betel Vine leaves Disease Segme...
 
B018110915
B018110915B018110915
B018110915
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
 

Destacado

Список педагогических работников
 Список педагогических работников Список педагогических работников
Список педагогических работников
CrazyDan1981
 
cv4thnovember2015last
cv4thnovember2015lastcv4thnovember2015last
cv4thnovember2015last
Gary Dukelow
 

Destacado (20)

Idea del Dia 07/10/2013
Idea del Dia 07/10/2013Idea del Dia 07/10/2013
Idea del Dia 07/10/2013
 
Obituary
ObituaryObituary
Obituary
 
Dc1
Dc1Dc1
Dc1
 
Actividad no 3
Actividad no 3Actividad no 3
Actividad no 3
 
Презентация Инкотек Карго
Презентация Инкотек КаргоПрезентация Инкотек Карго
Презентация Инкотек Карго
 
Trading Derivados 07/10/2013
Trading Derivados 07/10/2013Trading Derivados 07/10/2013
Trading Derivados 07/10/2013
 
Список педагогических работников
 Список педагогических работников Список педагогических работников
Список педагогических работников
 
Estimating project development effort using clustered regression approach
Estimating project development effort using clustered regression approachEstimating project development effort using clustered regression approach
Estimating project development effort using clustered regression approach
 
Aaron hoyos practica 1
Aaron hoyos  practica 1Aaron hoyos  practica 1
Aaron hoyos practica 1
 
время ожиданий и опасений
время ожиданий и опасенийвремя ожиданий и опасений
время ожиданий и опасений
 
Project in Values IV
Project in Values IVProject in Values IV
Project in Values IV
 
Trading StocksSemanal 11/10/2013
Trading StocksSemanal 11/10/2013Trading StocksSemanal 11/10/2013
Trading StocksSemanal 11/10/2013
 
La parrure
La parrureLa parrure
La parrure
 
Grottaroli Flyer Tecnico
Grottaroli Flyer Tecnico Grottaroli Flyer Tecnico
Grottaroli Flyer Tecnico
 
Informationen für Lehrer - scoyo in der Schule
Informationen für Lehrer - scoyo in der SchuleInformationen für Lehrer - scoyo in der Schule
Informationen für Lehrer - scoyo in der Schule
 
Europa e Europeus - Húngaros
Europa e Europeus - HúngarosEuropa e Europeus - Húngaros
Europa e Europeus - Húngaros
 
Analyze Genomes: A Federated In-Memory Database System For Life Sciences
Analyze Genomes: A Federated In-Memory Database System For Life SciencesAnalyze Genomes: A Federated In-Memory Database System For Life Sciences
Analyze Genomes: A Federated In-Memory Database System For Life Sciences
 
Taahode sazmani(demo)(madsg.com)
Taahode sazmani(demo)(madsg.com)Taahode sazmani(demo)(madsg.com)
Taahode sazmani(demo)(madsg.com)
 
cv4thnovember2015last
cv4thnovember2015lastcv4thnovember2015last
cv4thnovember2015last
 
Hand of Fate No 08
Hand of Fate No 08Hand of Fate No 08
Hand of Fate No 08
 

Similar a Edge detection by modified otsu method

Similar a Edge detection by modified otsu method (20)

Comparative Analysis of Common Edge Detection Algorithms using Pre-processing...
Comparative Analysis of Common Edge Detection Algorithms using Pre-processing...Comparative Analysis of Common Edge Detection Algorithms using Pre-processing...
Comparative Analysis of Common Edge Detection Algorithms using Pre-processing...
 
Iw3515281533
Iw3515281533Iw3515281533
Iw3515281533
 
Study and Comparison of Various Image Edge Detection Techniques
Study and Comparison of Various Image Edge Detection TechniquesStudy and Comparison of Various Image Edge Detection Techniques
Study and Comparison of Various Image Edge Detection Techniques
 
Conceptual and Practical Examination of Several Edge Detection Strategies
Conceptual and Practical Examination of Several Edge Detection StrategiesConceptual and Practical Examination of Several Edge Detection Strategies
Conceptual and Practical Examination of Several Edge Detection Strategies
 
Comparative studies of multiscale edge detection using different edge detecto...
Comparative studies of multiscale edge detection using different edge detecto...Comparative studies of multiscale edge detection using different edge detecto...
Comparative studies of multiscale edge detection using different edge detecto...
 
G010124245
G010124245G010124245
G010124245
 
EDGE Detection Filter for Gray Image and Observing Performances
EDGE Detection Filter for Gray Image and Observing PerformancesEDGE Detection Filter for Gray Image and Observing Performances
EDGE Detection Filter for Gray Image and Observing Performances
 
EDGE Detection Filter for Gray Image and Observing Performances
EDGE Detection Filter for Gray Image and Observing PerformancesEDGE Detection Filter for Gray Image and Observing Performances
EDGE Detection Filter for Gray Image and Observing Performances
 
AN OPTIMAL SOLUTION FOR IMAGE EDGE DETECTION PROBLEM USING SIMPLIFIED GABOR W...
AN OPTIMAL SOLUTION FOR IMAGE EDGE DETECTION PROBLEM USING SIMPLIFIED GABOR W...AN OPTIMAL SOLUTION FOR IMAGE EDGE DETECTION PROBLEM USING SIMPLIFIED GABOR W...
AN OPTIMAL SOLUTION FOR IMAGE EDGE DETECTION PROBLEM USING SIMPLIFIED GABOR W...
 
ALGORITHM AND TECHNIQUE ON VARIOUS EDGE DETECTION: A SURVEY
ALGORITHM AND TECHNIQUE ON VARIOUS EDGE DETECTION: A SURVEYALGORITHM AND TECHNIQUE ON VARIOUS EDGE DETECTION: A SURVEY
ALGORITHM AND TECHNIQUE ON VARIOUS EDGE DETECTION: A SURVEY
 
I010634450
I010634450I010634450
I010634450
 
Performance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
Performance of Efficient Closed-Form Solution to Comprehensive Frontier ExposurePerformance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
Performance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
 
Hardware Unit for Edge Detection with Comparative Analysis of Different Edge ...
Hardware Unit for Edge Detection with Comparative Analysis of Different Edge ...Hardware Unit for Edge Detection with Comparative Analysis of Different Edge ...
Hardware Unit for Edge Detection with Comparative Analysis of Different Edge ...
 
Algorithm for the Comparison of Different Types of First Order Edge Detection...
Algorithm for the Comparison of Different Types of First Order Edge Detection...Algorithm for the Comparison of Different Types of First Order Edge Detection...
Algorithm for the Comparison of Different Types of First Order Edge Detection...
 
A010110104
A010110104A010110104
A010110104
 
Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...
 
Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...
 
EDGE DETECTION OF MICROSCOPIC IMAGE
EDGE DETECTION OF MICROSCOPIC IMAGEEDGE DETECTION OF MICROSCOPIC IMAGE
EDGE DETECTION OF MICROSCOPIC IMAGE
 
YCIS_Forensic_Image Enhancement and Edge detection.pptx
YCIS_Forensic_Image Enhancement and Edge detection.pptxYCIS_Forensic_Image Enhancement and Edge detection.pptx
YCIS_Forensic_Image Enhancement and Edge detection.pptx
 
Object extraction using edge, motion and saliency information from videos
Object extraction using edge, motion and saliency information from videosObject extraction using edge, motion and saliency information from videos
Object extraction using edge, motion and saliency information from videos
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

Edge detection by modified otsu method

  • 1. Jan Zizka (Eds) : CCSIT, SIPP, AISC, PDCTA - 2013 pp. 233–240, 2013. © CS & IT-CSCP 2013 DOI : 10.5121/csit.2013.3626 EDGE DETECTION BY MODIFIED OTSU METHOD J. K. Mandal and Abhinaba Ghosh Department of Computer Science and Engineering, University of Kalyani Kalyani, Nadia-741235, West Bengal, India Email- {jkm.cse@gmail.com, abhinabaghosh4u@gmail.com} ABSTRACT In this paper a novel edge detection method has been proposed which outperform Otsu method [1]. The proposed detection algorithm has been devised using the concept of genetic algorithm in spatial domain. The key of edge detection is the choice of threshold; which determines the results of edge detection. GA has been used to determine an optimal threshold over the image. Results are compared with existing Otsu technique which shows better performances. KEYWORDS Otsu Method, Edge Detection, Advanced Sobel Operator, Genetic algorithm, Crossover, Chromosome. 1. INTRODUCTION In digital image, edge is a collection of the pixels whose gray value has a step or roof change, and it also refers to the part where the brightness local area of the image changes significantly. Edge detection of an image is a very vital area in the field of Computer Vision. Edges are significant local changes of intensity in an image. Edges typically occur on the boundary between two different regions in an image. Edges can be modeled according to their intensity profiles [2]. The quality of edge detection is highly dependent on lighting conditions, density of edges in the scene and noise. While each of these problems can be handled by adjusting certain values in the edge detector and changing the threshold value for what is considered an edge, no good method has been determined for automatically setting these values, so they must be manually changed by an operator each time the detector is run with a different set of data [3]. Since different edge detectors work better under different conditions, it would be ideal to have an algorithm that makes use of appropriate edge detection. In order to create this system, we must first know which edge detectors perform better under which conditions. Section 2 of the paper deals with literature survey, the proposed technique and algorithm is given in section 3; Result is discussed in section 4. Performance and Comparisons with existing techniques with advantage and disadvantages are discussed in section 5, Conclusion is drawn in section 6 and references are given in section 7.
  • 2. 234 Computer Science & Information Technology (CS & IT) 2. LITERATURE SURVEY Edge detection find out outlines of an object and boundaries between objects and the background in the image. An edge-detection filter can also be used to improve the appearance of blurred or anti-aliased video streams. The basic edge that determines the level of variance between different pixels [4]. The edge calculated by forming a matrix centered on a pixel chosen as the center of the matrix area value of this matrix area is above a given threshold, then the middle pixel is classified as an edge [5]. Examples of gradient-based edge detectors are Roberts, Prewitt, and Sobel operators. All the gradient-based algorithms have kernel operators directions which are orthogonal to each other, commonly vertical and horizontal [6]. Many operators have been used for edge detection of digital image in spatial domain; some of them are reviewed briefly. All this edge detection operators’ work for gray scale images in spatial domain. In section 2.1 we have discussed the Roberts edge detection method, Sobel edge detector in section 2.2 and that of Prewitt edge detection scheme in section 2.3 and Otsu method in se 2.4. 2.1 The Roberts edge detector The Roberts Cross operator performs a simple, quick to compute, 2 measurement on an image [3]. It also produces very weak responses to genuine edges unless they are very sharp. Convolution meth My represents the vertical 2*2 mask. The vertical and horizontal masks for Robert edge detection is given below. These masks are convoluted with the original image and the output image is detected image. It highlights regions of high spatial frequency which often correspond to edges. 2.2 The Sobel edge detector The Sobel operator performs a 2 emphasizes regions of high spatial frequency that correspond to edges. Typically it is used to find the approximate absolute gradient magnitude at each point in an input grayscale image. It is a discrete differentiation operator computing an approximation of the gradient of the intensity function. Mx represents the horizontal 3*3 mask and M mask. The vertical and horizontal masks for sobel edge detection are given below. The Sobel operator is slower to compute than the Roberts Cross operator convolution kernel smoothes the input image to a greater extent and so makes the operator less Computer Science & Information Technology (CS & IT) URVEY Edge detection find out outlines of an object and boundaries between objects and the background detection filter can also be used to improve the appearance of blurred or basic edge-detection operator is a matrix area gradient operation that determines the level of variance between different pixels [4]. The edge-detection operator is calculated by forming a matrix centered on a pixel chosen as the center of the matrix area value of this matrix area is above a given threshold, then the middle pixel is classified as an edge based edge detectors are Roberts, Prewitt, and Sobel operators. All the based algorithms have kernel operators that calculate the strength of the slope in directions which are orthogonal to each other, commonly vertical and horizontal [6]. Many operators have been used for edge detection of digital image in spatial domain; some of them are s edge detection operators’ work for gray scale images in spatial domain. In section 2.1 we have discussed the Roberts edge detection method, Sobel edge detector in section 2.2 and that of Prewitt edge detection scheme in section 2.3 and Otsu method in se The Roberts edge detector Roberts Cross operator performs a simple, quick to compute, 2-D spatial gradient measurement on an image [3]. It also produces very weak responses to genuine edges unless they are very sharp. Convolution method is applied here. Mx represents the horizontal 2*2 mask and represents the vertical 2*2 mask. The vertical and horizontal masks for Robert edge detection These masks are convoluted with the original image and the output image is the required edge detected image. It highlights regions of high spatial frequency which often correspond to edges. Sobel operator performs a 2-D spatial gradient measurement on an image [3] and so high spatial frequency that correspond to edges. Typically it is used to find the approximate absolute gradient magnitude at each point in an input grayscale image. It is a discrete differentiation operator computing an approximation of the gradient of the represents the horizontal 3*3 mask and My represents the vertical 3*3 mask. The vertical and horizontal masks for sobel edge detection are given below. The Sobel operator is slower to compute than the Roberts Cross operator, but its larger convolution kernel smoothes the input image to a greater extent and so makes the operator less Edge detection find out outlines of an object and boundaries between objects and the background detection filter can also be used to improve the appearance of blurred or detection operator is a matrix area gradient operation detection operator is calculated by forming a matrix centered on a pixel chosen as the center of the matrix area. If the value of this matrix area is above a given threshold, then the middle pixel is classified as an edge based edge detectors are Roberts, Prewitt, and Sobel operators. All the that calculate the strength of the slope in directions which are orthogonal to each other, commonly vertical and horizontal [6]. Many operators have been used for edge detection of digital image in spatial domain; some of them are s edge detection operators’ work for gray scale images in spatial domain. In section 2.1 we have discussed the Roberts edge detection method, Sobel edge detector in section 2.2 and that of Prewitt edge detection scheme in section 2.3 and Otsu method in section D spatial gradient measurement on an image [3]. It also produces very weak responses to genuine edges unless they represents the horizontal 2*2 mask and represents the vertical 2*2 mask. The vertical and horizontal masks for Robert edge detection the required edge detected image. It highlights regions of high spatial frequency which often correspond to edges. D spatial gradient measurement on an image [3] and so high spatial frequency that correspond to edges. Typically it is used to find the approximate absolute gradient magnitude at each point in an input grayscale image. It is a discrete differentiation operator computing an approximation of the gradient of the image represents the vertical 3*3 , but its larger convolution kernel smoothes the input image to a greater extent and so makes the operator less
  • 3. Computer Science & Information Technology (CS & IT) 235 sensitive to noise. The operator also generally produces considerably higher output values for similar edges, compared with the Roberts Cross. 2.3 Prewitt’s operator: Prewitt operator is similar to the Sobel operator and is used for detecting vertical and horizontal edges in images [3]. It is a discrete differentiation operator, computing an approximation of the gradient of the image intensity function. Mx represents the horizontal 3*3 mask and My represents the vertical 3*3 mask. The vertical and horizontal masks for prewitt edge detection are given below. At each image point, the gradient vector points in the direction of largest possible intensity increase and the length of the gradient vector corresponds to the rate of change in that direction. This implies the result of the Prewitt operator at an image point which is in a region of constant image intensity is a zero vector and at a point on an edge is a vector which points across the edge, from darker to brighter values. 2.4 Otsu method of Edge detection There are many threshold selection methods. Depending on the scope of applications, the threshold methods can be divided into the 1) overall threshold method, 2) local threshold and 3) dynamic threshold method. In this paper, GA-based edge detection belongs to the overall Otsu threshold method [1]. Suppose f (x, y) is the objective image that we want to segment, its gray range is {0, 1,…, L-1}. The image pixels will be divided into two categories by threshold t: C0 = {0, 1, …, t}, C1 = {t +1, t +2, …., L-1}. C0 and C1 respectively represent the target and background [7]. The Classes square error between C0 and C1 is given below: (1) Here t is threshold, W0 (t) is the number of pixels in which gray value of its image are less than the threshold t. W1 (t) is the number of pixels in which the image gray value are greater than the threshold value t. µ0(t) is the average gray value of the pixels in which the image gray value are less than the threshold t. And µ1 (t) is the average gray value of the pixels in which the image gray values are greater than the threshold t. The t that makes variance the greatest value is the best partition threshold. 3. THE TECHNIQUE The proposed technique comprises of all the basic steps of GA such as Initial population, fitness function calculation, Selection, crossover and mutation, final selection. The steps are discussed below.
  • 4. 236 Computer Science & Information Technology (CS & IT) Initial population: A chromosome is an array of parameter values to be optimized. In our algorithm we have taken 8 bit chromosome as there are 256 no of gray levels in the input image. Any chromosome represents the string between 0 (00000000) to code L-1 (11111111) where there are L gray level values. We have taken all possible 50 randomly generated chromosomes as the initial population. Fitness function Calculation: Threshold methods are used for segmentation of image, and these methods can be divided into the (1) Global threshold method, (2) local threshold and (3) dynamic threshold method. We have used both local and global threshold method to perform the image segmentation and this is implemented by Genetic algorithm based approach. We have taken a gray scale image f (x, y) as input. The gray levels are in between [0 to 255] denoted by [0 to L-1]. The number of pixels at level i is denoted by ni and the total number of pixels by N =n0 + n1 +……+ nL-1. (2) As next step image pixels are partitioned into two classes C0 and C1 (background and object, or vice versa) at gray level t. C0 denotes pixels with gray level [0, 1,….., t] and C1 denotes pixels with gray level [t+1, t+2,..., L-1]. Let, the probabilities of class occurrence and the class mean level respectively are given by w0 and w1. (3) Let, µ0 is the average gray value of the pixels in which the image gray value are less than the threshold ‘t’ and µ1 is the average gray value of the pixels in which the image gray values are greater than the threshold ‘t’. Then, (5) If σc 2 and σT 2 are the class variance and total class variance of gray levels respectively, their ratio is considered as the fitness function for this algorithm. Here, σc 2 =w0*w1*(µ0 -µ1)2 and σT 2 =w0 (µ0 –µt)2+ w1(µ1 –µt)2+…+ wm-1(µm-1 –µt)2 (6) The input image has been divided into m segments and calculated σT 2 for the whole image. (4)
  • 5. Computer Science & Information Technology (CS & IT) 237 Calculate the ratio, y= σc 2 / σT 2 . This ratio is the fitness function of our algorithm. Now it is to find the threshold t which minimizes this ratio y. GA is used to find out this maximization. Selection: The selection evaluates each individual and keeps only the fittest ones in the population. The fitness values are calculated and 20 chromosomes are selected for next step. In addition to those fittest individuals, 10 less fit ones have also been selected according to a small probability. The others are removed from the current population. Crossover and Mutation: The crossover recombines two individuals to have new ones which might be better. The mutation induces changes in a small number of chromosomes units. Its purpose is to maintain the population diversified enough during the optimization process. Single point crossover has been used with crossover probability 0.9. Mutation operation has been applied on the recently selected chromosome with mutation probability Pm which follows a decaying exponential function with starting value 0.05. Algorithm Input: Gray scale lenna image Output: Edge detected image Method: Enhanced Otsu method Step1. We have taken a gray scale image of 200*200 dimensions with the gray levels between [0 to 255] denoted by [0 to L-1].We calculate the gradient image f (x, y) by using advanced Sobel operator. Step2. Partition the gradient image pixels into two classes C0 and C1 (background and object, or vice versa) at gray level t. C0 denotes pixels with gray level [0, 1,….., t] and C1 denotes pixels with gray level [t+1, t+2,..., L-1]. Step3. The fitness function is taken as y= σc 2 / σT 2 , where σc 2 and σT 2 are the class variance and total class variance of gray levels respectively. Here, σc 2 =w0*w1*(µ0 -µ1)2 and σT 2 =w0 (µ0 –µt)2 + w1(µ1 –µt)2 +…….+ wm-1(µ m-1 –µt)2 Now the objective is to take that particular threshold value t which gives the maximized ratio of fitness function y. Step4. Initialize randomly a population space of size 50 (each chromosome is of 8 bit binary string and its value is in between gray level value 0 to 255). Step5. We have taken all the 50 chromosomes and fitness value of each has been calculated and then20 best fitted chromosomes are selected. Roulette Wheel is used in this selection operation. We have also arbitrarily selected 5 chromosome of less probability for future crossovers. Step6. Single point crossover is applied at 6th bit on this less probability based chromosome and again calculated the fitness value and has selected the best one which gives greater fitness value.
  • 6. 238 Computer Science & Information Technology (CS & IT) Step7. Mutation operation is applied on the recently selected chromosome with mutation probability Pm which follows a decaying exponential function with starting value 0.05. Step8. Threshold value t is obtained which has maximized the fitness function. Step9. Goto step 4 and check if the new t gives better value then replace the old one by new one and vice versa. If the iteration is more than 50, goto next step. Step10.Finally we have got the threshold t. Let, new edge detected image is denoted g(x, y). Put all g(x, y) = 0 (marked as non-edge or background points) if f(x, y) <t; and put all f(x, y) = 255 (edge points) if g(x, y) >= t; Step11.This image is processed through edge thinning and finally we got the edge detected image g’(x, y) 4. RESULTS C language has been used to implement this GA based modified algorithm. We have taken Lenna image as input, the size of image is a 200 * 200 pixel. Here the Figure 1, figure 2 and figure 3 are original image, edge detected image by Otsu method, edge detected image by proposed method respectively. Fig. 1. Original Image Fig. 2. Otsu method Fig. 3. Proposed method 5. PERFORMANCE EVALUATION AND COMPARISON Comparing the results from fig 2 and fig 3 regarding detected edge of image given in fig 1, it can be easily seen that the proposed algorithm that used improved detection template and GA got better result than the Otsu method. The proposed algorithm has stronger edge search capability and more complete edge. We have done experiment on choosing crossover at points 2nd, 3rd, 4th, 5th, 6th, 7th bit of the selected chromosome, and got better result has been obtained at 6th bit crossover. So, we have taken this 6th bit crossover point in this algorithm. We have compared our edge detection technique with Otsu method including the previous edge detection algorithms [8] by applying a loop over the algorithm and counted the percentage of correctly detected edges called true positive. The summary of the comparison is shown in given in Table 1.
  • 7. Computer Science & Information Technology (CS & IT) 239 Table 1. Comparison of performance of proposed technique Name of Algorithm Correctly detected pixels of True edge for 200*200 Lenna Image Roberts edge detector 19128 Prewitt edge detector 26659 Sobel edge detector 26957 Otsu Method 31456 Modified algorithm 35204 Advantages and disadvantages The main advantage of the proposed method is that it solves problem with multiple solutions (i.e. multiple optimal threshold) and it can be easily implemented. No absolute assurance that a genetic algorithm will find a global optimum and difference between the shortest and the longest optimization response time is larger 6. CONCLUSIONS This method used improved Sobel operator and genetic algorithms to optimize segmentation threshold of gradient image and proposed a new automatic optimal threshold algorithm. It overcomes classical Sobel operator’s shortcomings such as over segmentation and sensitivity. Otsu has used only global thresholding method and has taken the variance of total class difference but in our algorithm we have used local thresholding method and have considered the ratio of the class variance and total class variance of gray levels. The proposed algorithm gives better performance compared to Otsu method of edge detection. A better refining operator will be developed in the future. ACKNOWLEDGEMENT The authors expressed deep sense of gratitude to the PURSE scheme of DST, the Govt. of India under which the research has been carried out. REFERENCES [1] Nobuyuki Otsu, “A threshold selection method from gray-level histograms". IEEE Trans. Sys., Man., Cyber. 9 (1): 62–66. (1979). [2] Gonzalez, R., and Woods, R. (2002). Digital image processing (2nd ed). Prentice-Hall Inc, 567-612. (2002). [3] R. Rakesh, P. Chaudhuri and C. Murthy, “Thresholding in Edge Detection: A Statistical Approach”, IEEE Trans. Image Processing, Vol 13, No. 7, pp. 927-936, 2004. [4] D.Ziou and S. Tabbone "Edge detection techniques: An overview", International Journal of Pattern Recognition and Image Analysis, 8(4):537–559, 1998 (1998). [5] Kang C.C. and Wang W.J., “A novel edge detection method based on the maximizing objective function,” Pattern Recognition, vol. 40, no. 2, pp. 609–618, 2007 [6] Konishi, A.Yuille, J.Coughlan, A statistical approach to multiscale edge detection, Image and Vision computing, 2003, (21):37-48.( 2003).
  • 8. 240 Computer Science & Information Technology (CS & IT) [7] Chang Huang, C. (2002). Edge detection based on class ratio. 152, sec.3, Peishen Rd., Shenkeng, Taipei,22202, Taiwan, R.O.C. (2002). [8] Sankur B., Sezginb M. Image Thresholding Techniques: a Survey over Categories. Journal of Electronic Imaging, vol. 13(1), (2004) pp. 146-165.