in that paper, a trimap, where each element is labeled
as either fibre, background or unknown, is created.
We will, however, use minimal graph cuts to create
a binary image from the trimap. Segmentation with
graph cuts will be explained in detail in the next sec-
tion. Using graph cuts has the advantage that image
information can be taken into account even in areas
where the interface bands are too weak to be detected
by thresholding.
2 GRAPH CUT SEGMENTATION
Graph cut segmentation is an image segmentation
method based on combinatorial optimization tech-
niques. The method is applicable to images of any
dimension and gives a binary partitioning of the im-
age into background and object.
In graph cut segmentation the image is interpreted
as a graph, where image elements correspond to nodes
and paths between adjacent elements correspond to
graph edges. Each graph edge is assigned a non-
negative cost. Two special nodes are added to the
graph, the source node and the sink node. Image el-
ements that are a priori known to belong to the ob-
ject are connected to the source node with zero cost
edges. Similarly, elements that are known to belong
to the background are connected to the sink node. A
cut on the a graph is a set of edges that, if removed
from the graph, separate the source from the sink. A
cut thus associates each node with either the source
or the sink. The cost of a cut is the sum of the cost
of all edges in the cut, and a minimal cut is a cut such
that no other cut has a lower cost. A computationally
efficient algorithm for computing minimal graph cuts
was described in (Boykov and Kolmogorov, 2004).
The fundamental idea of graph cut segmentation
is that a minimal cut on the graph of an image corre-
sponds to an optimal partitioning of the image into
background and object, subject to the constraints
given by the edge weights and the geometry of the
graph. An illustration of this concept is shown in Fig-
ure 2.
From a user perspective, this means that we must
supply a trimap image, where each element is labeled
as either background, object or unknown. Further-
more we must supply a costmap image, where the
value of each element is inversely proportional to the
“likelihood” that the element belongs to the bound-
ary of the object of interest. This is typically based
on image features that describe strong edges in the
image, such as the gradient magnitude of the image.
The graph cut method then produces a binary segmen-
tation, where the boundary between the object and the
Figure 2: Principle of graph cut segmentation. Left: Initial
state of the graph. Right: A cut on the graph.
background is located at strong edges in the image.
3 METHOD
In order to apply graph cut segmentation to phase
contrast images, we need to create a trimap and a
costmap. The trimap is created using essentially the
same approach as that in (Vignoles, 2001). The vol-
ume is thresholded at two values, one low value and
one high value. This produces two binary images that
represent the dark and bright interface bands, respec-
tively.
For images with strong noise, good threshold val-
ues may not exist. In such cases we have used hystere-
sis thresholding (Canny, 1986) to identify the inter-
face bands. The user must thus specify two threshold
values, t
1,1
and t
1,2
, for segmenting the bright inter-
face bands, and two threshold values, t
2,1
and t
2,2
, for
segmenting the dark interface bands.
The two binary images containing the interface
bands are then merged into a single trimap. The
trimap does not have to be complete, i.e., leaks in
the interface bands are allowed. However, elements
wrongly labeled as fibre or background should be
avoided, since any such errors will remain in the fi-
nal binarization.
Since the graph cut algorithm is computationally
expensive, it is desirable to keep the number of nodes
in the graph as small as possible. In practice, only
the unknown elements are included in the graph. Re-
ducing the number of unknown elements in the trimap
thus reduces the computation time.
In order to exclude uninteresting elements (i.e. el-
ements that are highly unlikely to belong to a fibre)
from the computations we have used the following
heuristic: A 3D distance transform (Borgefors, 1996)
is computed from the bright image elements, i.e. ele-
ments known to be inside the fibres. The distance map
is truncated at some distance value, and elements with
larger distance values are labeled as background. The
threshold value should be as small as possible in or-
VISAPP 2009 - International Conference on Computer Vision Theory and Applications
150