Beruflich Dokumente
Kultur Dokumente
CHAPTER 4
4.1 INTRODUCTION
In 2D, a snake is a curve C(s) = (X(s), Y(s)) where S ε [0, 1]. The
curve moves through the image domain to minimize a specified energy
function. In traditional snakes, the energy is usually formed by internal forces
and external forces is described as
t = v(x, t) | ▼ | (4.6)
Image Pre-processing
Snake Formation
1. Energy calculation
2. Edge stopping function
Q = ∫∫ µ▼ V + │▼f│2│V − ▼f │2 dx (4.8)
where f is the edge map which is derived by using an edge detector on the
original image convoluted with a Gaussian kernel, and µ is a regularization
parameter. Using variational calculus, the GVF field can be obtained by
solving the corresponding Euler-Lagrange equations.
Image pre-processing
There are certain drawbacks in this method also. The capture range
of the active contour did not seem as large as expected. Active contour does
not converge to the ideal solution. GVF snake was sensitive to the shape
irregularities.
62
The new dynamic gradient vector flow force will be the same as
conventional GVF if the snake point moves towards the contour. But when
the snake point tries to cross over an edge, the dynamic gradient vector flow
force will stop the point from moving. The threshold Tθ will decide when this
evolution-stop mechanism is triggered. Figure 4.3 shows the flow chart for
the improved GVF method.
Energy calculation
cases, joining the user-clicked points forms a rigid contour with sharp corners.
Essentially a smooth contour is preferred because having a smoother contour
ensures the forces acting on each individual point being evenly distributed.
This will prevent large movements of the contour which produces a higher
risk of the contour moving inside the boundary of the target object.
1. Point Stuffing
2. Spline function
The Internal energy of the active contour controls the shaping of the
curve that eventually models the area of interest on a given image.
69
It also controls the spacing between the control points that form the curve.
The properties of the Internal energy can be further subdivided into two parts
with individual weightings to influence the motion of the contour:
N
E(elastic ) K1 ( xi xi 1 ) 2 ( yi yi1 ) 2 (4.16)
i 1
where N is the number of points used to form the contour and i is the index of
the current point the calculation is focused on. K1 is a constant defined by the
user, which has the effect similar to the constant corresponding to the strength
of the spring. The shrinking effect of the curve is modeled by simulating
forces acting on the contour points as pulling them together until all points on
70
Fe xi (x i 1 x i ) (x i 1 x i )
Fe yi (y i 1 y i ) (y i 1 yi ) (4.17)
(4.18)
where K2 is the user defined constant and i is the entry to the index of current
point on the curve. This time the energy function on a particular point is
dependent on its 4 nearest neighbors. Therefore, the force derived on a
particular point is calculated as follows,
(4.19)
The reason for involving more than one point in the calculation of
one contour point’s motion is to smooth out the forces on that contour point
producing a bending characteristic rather than contraction. Having just the
bending force acting on the contour will produce a final approximation of a
curve resembling the shape of the initial approximation yet with smoother
corners.
(4.20)
(4.21)
(4.22)
and the forces will be adjusted accordingly with γ set as a negative value.
the object outline properly. To prevent such a situation from happening, the
balloon force is introduced to the active contour algorithm. It allows the
contour to adapt to the expanding and shrinking properties of a balloon. The
direction (i.e. expanding or contracting) of the balloon force is dependent on
two aspects:
(4.23)
where ti is the tangent vector at contour point entry i. The unit normal (ni) for
each individual contour point can be easily calculated by rotating the tangent
vector at that contour point by 90°. This results in an expression for the
balloon force as follows which is described
Fballon = λn i (4.24)
where λ represents the weighting of the balloon force similar to the , , and
arbitrary constants for the elastic, bending and image gradient force, respectively.
The effect of having the balloon force integrated into the existing active contour
algorithm is shown in Figure 4.11 final approximation of object.
76
Figure 4.11 The performance of the active contour under the influence
of the balloon force
Notice that the location of the final contour is now within the
boundary of the targeted object and not surrounding the outline of the object.
The final contour also shows the inadequacy of the curve in tracking corner
areas. This leads to the need for further investigation into the balloon force
before fully integrating it into the current active contour algorithm.
It can be easily observed that the field vector changes direction at the
ellipse boundary. Therefore, a consistency degree is incorporated into the new
dynamic GVF force. The force varies according to the consistency. If the evolution
77
of the snake causes the change of GVF force direction, it is said that inconsistency
has occurred and the snake is not allowed to evolve to the new position.
(a) (b)
(c) (d)
(e) (f)
(a) (b)
(c) (d)
(e) (f)
(a) (b)
(c) (d)
(e) (f)
(a) (b)
(c) (d)
(e) (f)
(a) (b)
Figure 4.16 Iteration Vs energy for (a) Improved GVF method and
(b) Comparison of all energies for normal coronary angiogram
- Image 1
(a) (b)
Figure 4.17 Iteration Vs energy for (a) Improved GVF method and
(b) Comparison of all energies for normal coronary angiogram
– Image 2
84
(a) (b)
Figure 4.18 Iteration Vs energy for (a) Improved GVF method and
(b) Comparison of all energies for abnormal coronary
angiogram – Image 1
(a) (b)
Figure 4.19 Iteration Vs energy for (a) Improved GVF method and
(b) Comparison of all energies for abnormal coronary
angiogram – Image 2
85
Area of Perimeter of
Cross Mean Square
Methods segmentation segmentation Time
Correlation Error
in mm in mm
Level set 0.64 ± 0.14 3.62 ± 0.83 0.0432 151.38 ± 13.82 2hrs
GVF 3.60 ± 1.51 13.86 ± 3.54 0.0538 137.69 ± 74.01 68sec
Dynamic
4.60 ± 1.26 33.59 ± 11.58 0.0571 139.05 ± 47.33 85 sec
GVF
Balloon
5.34 ± 1.03 49.40 ± 12.45 0.0672 39.42 ± 33.40 102 sec
force
Improved
6.60 ± 1.06 56.59 ± 11.58 0.0732 29.80 ± 58.35 102 sec
GVF
continuation of the graph from the point of minimum energy is for justifying
the contour energy at minimum, i.e., stabilizing the contour. Based on
experiments on segmenting the blood vessels in real X- ray coronary
angiogram images, it has shown that the proposed method is robust to the
variation in initial position and efficient in preventing the snake from
breaking through correct contour and locking to other feature points. Area,
perimeter, cross correlation and mean square error are tabulated with respect
to manual segmentation. Based on the tables, segmented images and graphs it
is proved that improved GVF method gives better results compared to all
remaining active contour models.