Professional Documents
Culture Documents
ny, Slovakia
AbstractThis paper deals with experimental comparison by approached to the contour of object in individual
of classical method of Graph cut segmentation with iterations.
segmentation using Active contours. From methods of The details of Graph cut segmentation method are
Active contours are chosen to comparison two methods. shown in Section II A. In Section II B are details about
First method is based on classic Active contour method and basic Active contour segmentation method. Section III we
second method is based on Active contours independent on provided an experimental comparison of these modern
gradient of the edges. Application of Graph cut segmentation methods implemented by Matlab for
segmentation allows finding the optimal global segmentation segmentation of image sets.
with the best balance between regional and boundary
conditions among all possible segmentations at met
II. MODERN METHODS OF SEGMENTATION
condition limitations. Active contour segments the image by
iterative deformation contour till this contour divided the
image on the regions. Active contours are often A. Graph cut segmentation
implemented with level set methods for their universality Segmentation using this method belong between
and performance, but disadvantage is their computational interactive methods which partitioning an image into two
complexity. The second method of the active contour allows segments objects and background. This method is
to detect objects whose boundaries are not necessarily initialized by interactive or automated identification one
defined by gradient. The end rule in this case does not or more points representing the object and one or more
depend on gradient of the image, as in classical model of points representing background. These points are called
active contour, but instead refer to a particular seeds and they are represented hard constraints of
segmentation of the image. segmentation. Other soft constraints are attributable to the
border or regional information.
I. INTRODUCTION This method is one of the graph algorithms, where the
main idea is to create valued, undirected graph
Segmentation is generally defined as the problem of G = (V , E ) from image I . The graph is defined as a set
partitioning an image into two or more segments: objects
and background. of nodes or vertices V , which represents itself pixels in
image, and a set of edges E represents any neighborhood
There are mainly three approaches to segmentation. relationship between the pixels and valued by nonnegative
Manual segmentation is very laborious and extremely time cost we . Then they are two special nodes named terminals
consuming. Purely automatic segmentation is very
challenging, due to ambiguities in the presence of multiple S (source) and T (sink) that represents object and
objects, weak edges, image noise, etc. Interactive background labels.
segmentation is becoming more popular to alleviate the Normally, there are two types of edges in the graph: n-
problems inherent to fully automatic segmentation links and t-links. N-links connect pairs of neighboring
technique that divides the image into two segments: object pixels or voxels. Thus they are represented a
and background. neighborhood system in the image. Cost of n-links
Among modern segmentation techniques belonged corresponds to a penalty for discontinuity between the
method of Graph cut segmentation and Active contour pixels. T-links connect pixels with terminals (labels). The
method. These techniques belong among the most cost of a t-links connecting a pixel and a terminal
developing methods in computer vision. These techniques corresponds to the penalty for assigning the corresponding
are mainly initiated interactively by the user. In Graph cut label to the pixel. This is normally derived from the data
segmentation user interactively determined hard term (6) in energy (5).
constraints in the form of terminals, called S (source) and To determine the maximum flow in this graph are used
T (sink) by specified certain pixels that are called seeds algorithms to determine the maximum flow as Ford-
that absolutely have to be part of the object and certain Fulkerson algorithm, or algorithm described in [1].
pixels that absolutely have to be part of the background. A cut C is a subsets of edges C E which when
These terminals provide information on that user intends removed from G disjoint V into two subsets S and
to segment. The cost function is defined by terms of T = V S such that s S and t T . Than cost of cut is
boundary and region properties of the segments. These defined as the sum of cost of these edges:
properties can be perceived as soft constraints for
segmentation. In the segmentation using active contours
user interactive generally determined initialization
contour. Contour then using internal and external energy
C = w
eC
e (1)
R p ( B) = ln P( I p | B). (7) Eimage = wline Eline + wedge Eedge + wterm Eterm . (12)
The boundary term B(L) comprises boundary properties where line based functional has form intensity of image by
of segmentation and determined smoothness on boundary. this shape
Coefficient B{ p ,q} 0 can be interpreted as penalty for
Eline = I ( x, y ) (13)
discontinuities between p and q. Normally, B{ p ,q} is
small when pixels p and q are very different and B{ p ,q} is and I ( x, y ) represent gray level on position ( x, y ) in
large when they are similar. The cost B{ p ,q} can be image. The value wline determined whether the contour is
determined attracted to dark or light lines. Edge based functional has
form
248
SAMI 2010 8th IEEE International Symposium on Applied Machine Intelligence and Informatics January 28-30, 2010 Herl'any, Slovakia
2
Eedge = I ( x, y ) (14)
Eterm = , (15)
n R
III. EXPERIMENTS
This experimental comparison of modern method of
segmentation used these methods:
Graph cut segmentation used implementation [4].
Active contour segmentation based [8] and [5].
Segmentation was performed on set of three images
[10], [11] and is showed final result of each segmentation.
Graph cut segmentation used algorithm implementation
[1], [2] in [4].
249
P. Karch, I. Zolotov An Experimental Comparison of Modern Methods of Segmentation
250
SAMI 2010 8th IEEE International Symposium on Applied Machine Intelligence and Informatics January 28-30, 2010 Herl'any, Slovakia
251
P. Karch, I. Zolotov An Experimental Comparison of Modern Methods of Segmentation
IV. CONCLUSION
The experimental implementation of algorithms shows
how the various algorithms prove a deal with a given set
of images.
The next step in others experiments will be to create
graphical user interface and implementation Graph cut
segmentation and all Active contours segmentation
algorithms to one application that simultaneously doing all
segmentations with the fact that the user can choose the
best segmentation. The final segmentation depends on
user's choice. The other step in others experiments is
hierarchical implementation of these algorithms.
ACKNOWLEDGMENT
This work is supported by grant APVV-0682-07.
REFERENCES
[1] Y. Boykov, V. Kolmogorov, An Experimental Comparison of
Min-Cut/Max-Flow Algorithms for Energy Minimization In
Vision, IEEE transactions on Pattern Analysis and Machine
Intelligence, vol. 26, no.9, pp 1124-1137, September 2004.
[2] Y. Boykov, O. Veksler, R. Zabith, Efficient Approximate Energy
Minimization via Graph Cuts, IEEE transactions on Pattern
Analysis and Machine Intelligence, vol. 20, no.12, pp 1222-1239,
November 2001.
[3] V. Kolmogorov, R. Zabih, What Energy Functions can by
Minimized via Graph Cuts?, IEEE transactions on Pattern
Analysis and Machine Intelligence, vol. 26, no.2, pp 147-159,
February 2004.
[4] S. Bagon, Matlab Wrapper for Graph Cut, December 2006.
Online: http://www.wisdom.weizmann.ac.il/~bagon/matlab.html
[5] T. F. Chan, L. A. Vese, Active Contours Without Edges, IEEE
Transactions on Image Processing, Vol. 10, No. 2, pp 266-277,
February 2001.
[6] Y. Boykov, G. Funka-Lea, Graph Cut and Efficient N-D Image
segmentation, International Journal of Computer Vision, Vol.
70, No. 2, pp 109-131, 2006.
[7] M. Sonka, V. Hlavac, R. Boyle, Image Processing, Analysis, and
Machine Vision, 2007.
[8] M. Kass, A. Witkin, D.Terzopoulos, Snakes: Active contour
models, International Journal of Computer Vision, Vol.1, No.4,
Figure 6. Result of active contour segmentation based on [5]
pp 321-331, 1988.
[9] [Online]. Available: http://www.eecs.berkeley.edu/Research/
An active contour model in Fig. 5 is implementation of Projects/CS/vision/grouping/segbench/
[5] which is based on Mumford-Shah segmentation [10] [Online]. Available: http://kspace.cdvp.dcu.ie/public/interactive-
techniques and the level set method. This model is not segmentation/ground-truth.html
depended on edge function to stop evolving curve on
desired boundary. It can segment images whose
foreground and background are different and
homogenous. As can be seen on the second picture in
Figure 6 it cannot reached the desired outcome of the
segmentation.
252