You are on page 1of 5

Image Segmentation using Active Contour

with Level Set


Mandeep Kaur
Electronics & Electrical Engineering Department
Lovely Professional University, Punjab, India. 144402
kaurmandeep1190@gmail.com

Abstract – In this paper a novel algorithm for image model-based methods, edge-based technique,
segmentation has been proposed based on active region-based methods, watershed technique and
contour model and level set. In this we use the signed active contour methods.
pressure force function using local information of the
image to be segmented. First the level set function is II.ACTIVE CONTOUR MODEL
selectively penalised to be binary n then a Gaussian
kernel is applied for smoothing. Thus, this model can
We have used the active contour model in oyr
work with heterogeneous images. In addition, by paper for the segmentation process. In this
taking the advantages of Geodesic active contour technique the user suggest an initial contour. This
(GAC) and Chan-Vese (C-V) model, the method framework attempts to minimize an energy
could deal with objects even with discrete blur associated to the current contour as a sum of an
boundaries and gives exact results in detecting object internal and external energy:
boundaries. One of its other advantages over C-V
method is that the cost of re initialisation is also
reduced in this method as we do not need re-
initialisation of the level set function. Experimental The external energy is supposed to be minimal
results demonstrate that the proposed model is when the snake is at the object boundary position.
effective in segmenting biomedical images and the
The internal energy is supposed to be minimal
images with blur and weak edges.
when the snake has a shape which is supposed to be
Keywords: Image Segmentation, Active Contours, relevant considering the shape of the sought object
Snakes, Level Sets, GAC, C-V method. [1][2].

I.INTRODUCTION Different ACM approaches


The basic purpose of segmentation is to identify
and isolate the region of interest from the given  Snakes
image. Image segmentation is used to locate  Geometric active contours
boundaries and objects in image [1] [3][13]. In
other words we can say that it is the process of  Geodesic active contours
assigning a label to every pixel in an image such A Snakes
that pixels with the same label share certain visual
characteristics. The problem of image segmentation Snakes model was introduced by Michael Kass,
can be formulated as follows. Andrew Witkin and Demetri Terzopoulos in 1988
Given image I = {pi}, a complete segmentation [1], for interactive interpretation of images, in
problem is to determine connected subset Ri = (Ri which user-imposed constraint forces guide the
I), such that snake near features of the interesting image. They
stated that a snake is an energy-minimizing spline
guided by external constraint forces and influenced
⋃ by image forces that pull it toward features such as
lines and edges. Snakes are greatly used in
applications like object tracking, shape recognition,
Segmentation is based on homogeneity of the
segmentation, edge detection, stereo matching. A
image characteristics such as intensity, colour,
simple elastic snake is thus defined by
texture, or the combination of all these information
[14].
 a set of n points
There are number of different approaches in image  an internal elastic energy term
segmentation such as: histogram-based method,
 an external edge based energy term
The snakes model try to segment the image based each point is g(I ), and we assume the particle's
on the following energy: trajectory should form a closed simple curve. The
potential energy of the particle is given by
(3)

where, ∫ | | | | (4) u (c) = - λ g (l)2 (9)

Snakes are autonomous and self-adapting in their Snakes is the classical model in active contour
search for a minimal energy state. They can be method [1], [3]. It gives an efficient framework for
easily manipulated using external image forces. image segmentation, but it cannot change the
They can be made sensitive to image scale by topology in the process of segmentation process.
incorporating Gaussian smoothing in the image To overcome this drawback, the level set method
energy function. They can be used to track dynamic was proposed in order to isolate shapes from their
objects in temporal as well as the spatial background. Since then, the active contour with
dimensions. But some of the drawbacks are that level set methods has been widely applied to image
they can often get stuck in local minima states; this segmentation in the fields of computer vision and
may be overcome by using simulated annealing image processing. GAC is an edge based active
techniques at the expense of longer computation contour model that works well when the objects
times. They often overlook minute features in the and background in segmented image are
process of minimizing the energy over the entire heterogeneous, but we cannot get satisfied results
path of their contours. when dealing with object with discrete/ blur
boundaries or noise. Whereas Chen-Vese (C-V)
B. Geometric active contours model is a region-based active contour models,
which instead of using the image gradient, use the
Geometric active contours attempt to segment an statistical information inside and outside the initial
object based on its edges, in a level-set framework curve to evolve the contour towards the boundary
[4]. The initial contour is chosen to include the of desired object. It give better performance while
object. The contour evolves according to compared with the edge-based model such as the
ability to work well with the object having
blur/weak boundary, and less sensitive to the initial
position of the contour. In order to get the
Where is a function which should advantages of both GAC and C-V model, some
drop to zero at edges. The contour evolution tends hybrid model are proposed. Recently, Zhang [12]
to smooth the contour, if no other information is proposed the sign pressure force in an active
available. The contour according to this evolution contour model. This model takes the advantages of
will shrink to a point. Hence, a balloon force may GAC and C-V models and could optionally select
be added local or global segmentation.

III. REFERENCE MODELS


C. Geodesic active contours A.GAC Model
The choice of a balloon force is arbitrary. It is not Geodesic Active Contour model is an enhanced
clear if we actually minimize some functional, and version of the classical snakes in [1]. This model
the global minimizer is not clear either [5]. The depends on the image gradient to stop the evolution
geodesic active contour tries to remedy this by
of the curve. Thus it surpasses the regions
minimizing the following weighted length
functional: having blur or weak boundaries. Let Ω be a
bounded open subset of R2 and I: [0,a] x [0,b] R+
∫ be a given image. Let C(q):[0,1] R2 be a
parameterized planar curve in Ω. The GAC model
g(l) constitutes an (inverse) edge indicator. For is formulated by minimising the energy term given
example, below:

∫ (| ( )|)| | 10)
√| |
where g is the ESF. The corresponding level set
The functional state that curves segmenting the formulation for GAC is given as:
object should try and surround it with a minimal
weighted arc length. This can be given a physical
interpretation: We are looking for the trajectory of | |
a particle on a map, where the potential energy at
where is a real constant called balloon force to is the dirac function. The regularised version is
control the expanding and velocity, к is the selected as follows:
euclidean curvature of curve C, and g is the edge
based function. ( ( ))
{
B. C-V Model
( )
Chan and Vese proposed an active contour without
edges that can be seen as a special case of IV. HYBRID MODEL
Munford-Shah problem. This model utilizes the
homogeneity information of the object as a term in In our hybrid model first of all we calculate the
the energy function unlike the GAC model which SPF (Signed Pressure Force) function. Its value
relies on the image gradient. In this method the always lies in the range [-1,1]. It is used to control
image is considered to be including two regions i.e the motion of the contour by modulating the sign of
c1 and c2 inside and outside the curve C the pressure force, so that the contour shrinks when
respectively. For a given model Ω, the C-V model outside and expands when it is inside the region of
is formulated by minimizing the following energy interest.
functional:

( )
∫ | | | |

∫ | | (17)

where c1 and c2 are defined in Eq.(13) and (14),


(12) respectively.

where c1 and c2 are the average intensities inside The significance of Eq. (17) can be explained as
and outside the contour, respectively. With the follows. Refer to Figure 1, we assume that the
level set method we assume intensities inside and outside the object are
homogeneous. It is intuitive that ( )
{ }
and the equal signs cannot be
obtained simultaneously wherever the contour is.
{ }
Hence, there is
{ }

By minimizing Eq.(6), we get the values for c 1 and ( ) ( )


c2 as:
(18)

∫ ( )
∫ ( )

The corresponding variational level set formulation


for this is:

[ Fig 1
]
Substituting the SPF function in Eq. (17) for the
where are fixed ESF in Eq. (11), the level set formulation of the
parameters, controls the smoothness of zero level proposed model is as follows:
set, increases the propagation velocity and λ1 and
λ2 controls the image data drive force inside and
( )( ( ) )| |
outside the contour respectively. is the gradient | |
operator. H( ) is the heaviside function and
( ) results on natural image with both the reference
model and the hybrid model.
In the traditional level set methods, the level set
function is initialized to be an SDF to its interface
in order to prevent it from being too steep or flat
near its interface, and re-initialization is required in
the evolution. Unfortunately, many existing re-
initialization methods have an undesirable side
effect of moving the zero level set away from its
interface. Furthermore, it is difficult to decide when
and how to apply the re-initialization. In addition,
re-initialization is a very expensive operation. To
solve these problems, we propose a novel level set
method, which utilizes a Gaussian filter to (a)
regularize the selective binary level set function
after each iteration. The procedure of penalizing
level set function to be binary is optional according
to the desired property of evolution. If we want
local segmentation property, the procedure is
necessary; otherwise, it is unnecessary.
Since we utilize a Gaussian filter to smooth the
level set function to keep the interface regular, the
(b) (c)
regular term | | | | is unnecessary. In
addition, the term in Eq. (19) can also be
removed, because our model utilizes the statistical
information of regions, which has a larger capture
range and capacity of anti-edge leakage. Finally,
the level set formulation of the proposed model can
be written as follows:

(d) (e)
( ) | |
Fig 2.Segmentation results on a natural image, (a)
The main procedures of the proposed algorithm are original image (b) & (c) results by the reference
summarized as follows: model after 200 and 500 iterations respectively, (d)
& (e) results from the hybrid model after 100 and
1.Initialize the level set function / as 200 iterations.

where > 0 is a constant, is a subset in the


image domain Ω and is the boundary of .
2. Compute using Eqs. (13) and (a) (b) (c)
(14), respectively.
3. Evolve the level set function according to Eq. Figure 3.(a) original biomedical image (b) &
(20). (c)segmentation results by the reference model and
4. Let = 1 if > 0; otherwise, = -1. the hybrid model after 400 iterations.
This step has the local segmentation property. If we
want to selectively segment the desired objects, this VI. CONCLUSION
step is necessary; otherwise, it is unnecessary. In this paper a hybrid region based model is
5. Regularize the level set function with a Gaussian proposed with selective local and global image
filter, i.e . segmentation. By taking the advantage of the GAC
6. Check whether the evolution of the level set and C-V model, this method can effectively detect
function has converged. If not, return to step 2. and segment the regions with weak or blur edges.
The model is able to change the topology as the
V. EXPERIMENTS AND RESULTS evolution flow of model is derived using level set
We have done experiments with both , the natural method. Experiments are performed on both the
as well as biomedical images. Fig 1 shows the natural as well as biomedical images.
VI. REFERENCES
[1] Michael Kass, Andrew Witkin, and Demetri Terzopoulos
“Snakes: Active contour models”, International journal of
computer vision, 1988.
[2] Chenyang Xu and Jerry L. Prince “Snakes, Shapes, and
Gradient Vector Flow”,IEEE Transaction on Image
Processing,VOL. 7, NO. 3, MARCH 1998
[3] Tony F. Chan and Luminita A. Vese, “Active Contour
Without Edges”, IEEE Transaction on image processing,
VOL.10, NO.2, 2001
[4] Johan Lie, Marius Lysaker and Xue Cheng Tai “ A binary
level set model and some applications to mumford shah
image segmentation”, IEEE Transaction on image
processing, VOL. 15, NO.5, May 2004.
[5] Chunming Li, Chenyang Xu, Changfeng Gui, and Martin
D. Fox “Level Set EvolutionWithout Re-initialization: A
New Variational Formulation”, Computer vision and
pattern recognition, IEEE Computer Society Conference,
2005.
[6] Haiyun Li, Xiang Chen “A algorithm of medical image
segmentation based on active contour model”, 2007
IEEE/ICME International Conference on Complex
Medical Engineering, Capital Medical University School
of Biomedical Engineering, Beijing China.
[7] Chunming Li, Chiu Yen Kao, John C. Gore and Zhaohua
Ding “Minimization of region scalable fitting energy for
image segmentation”, IEEE Transaction on image
processing, VOL.17, NO.10, October 2008.
[8] Thi-Thao Tran, Van-Truong Pham, Yun-Jen Chiu, and
Kuo-Kai Shyu “Active Contour with Selective Local or
Global Segmentation for Intensity Inhomogeneous Image”,
Computer Science and Information Technology (ICCSIT),
2010 3rd IEEE International Conference.
[9] Kaihua Zhang, Lei Zhang, Huihui Song and Wengang
Zhou, “Active contour with selective local or global
segmentation: A new formulation and level set method.”,
Image and vision computing,2010.
[10] Muhammad Hameed Siddiqi, Sungyoung Lee, Young-Koo
Lee “Object Segmentation by Comparison of Active
Contour Snake and Level Set in Biomedical Applications”,
2011 IEEE International Conference on Bioinformatics
and Biomedicine.
[11] Arie Nakhmani and Allen Tannenbaum “Self-Crossing
Detection and Location for Parametric Active Contours”,
IEEE Transactions on Image Processing,VOL. 21, NO. 7,
July 2012.
[12] Satoshi Urata, Hiroshi Yasukawa “Improvement of
contour extraction precision of active contour model with
structuring elements”, Acoustics, Speech and Signal
Processing (ICASSP), 2012 IEEE International
Conference.
[13] F.Samopa, A. Asano.,"Hybrid Image Thresholding Method
using Edge Detection", IJCSNS International Journal of
Computer Science and Network Security, Vol.9 No.4,
PP.292-299, April 2009.
[14] Gonzalez and Woods, "Digital image processing", 2nd
Edition, prentice hall, 2002.
[15] Shuqian He, Jiangqun Ni, Lihua Wu, Hongjian Wei ,
Sixuan Zhao.," Image threshold segmentation method with
2-D histogram based on multi-resolution analysis",
Computer Science & Education, ICCSE, 25-28 July 2009,
PP.753 – 757, Nanning, China
[16] Gang Liu, Robert M. Haralick, "Assignment Problem in
Edge Detection Performance Evaluation," cvpr, vol. 1,
pp.1026, 2000 IEEE Computer Society Conference on
Computer Vision and PatternRecognition(CVPR'00) –
Volume1, 2000.

You might also like