original graph-cut in (Felzenszwalb, 2004) (using
σ
= 0.5, min size = 5 in both cases)
and SLIC
(Achanta, 2012), we computed three indexes to
quantify the quality of the segmentation algorithms
on a set of 36 images at 320x240 and 640x480. It is
worthy to notice that the authors of SLIC consider
the graph-cut segmentation algorithm by
Felzenszwalb and Huttenlocher one of the first
superpixel algorithm, thus making this comparison
particularly significant.
Notice that multiple indexes are necessary to
evaluate the quality of segmentation, because of the
different aspects to be considered at the same time
(Chabrier, 2004; Gelasca, 2004; Beghdad, 2007).
The three indexes considered here are the Inter-class
contrast, Intra-class uniformity (Chabrier, 2004), and
their ratio. The first index measures the average
contrast between the different segments, and it is
generally higher for high quality segmentation
(although the contrast between different segments
can be lower if the segmentation contains textures).
The Intra-class uniformity measures the sum of the
normalized standard deviations of the segments and
it should be low for high quality segmentation
(although it also increases when the image contains
a lot of texture and/or noise). We also used the ratio
between these two indexes to obtain a first,
normalized index that depends less on the presence
of texture and noise.
During the testing, we first segmented the images
using the proposed, adaptive graph-cut algorithm,
which does not require any additional input
parameter. For the original graph-cut algorithm, we
set k to obtain the same number of segments
obtained with the proposed adaptive version of the
same algorithm. The number of superpixels in SLIC
was set following the same principle, whereas the
compactness parameter was fixed to 20.
The indexes measured over all the images of our
dataset, together with their average and median
value, are reported in table 1 and 2 for the 320x240
and 640x480 resolutions, respectively. The proposed
method has the higher Inter-class contrast at both
resolutions, thus suggesting that it separates different
object better than the original graph-cut algorithm
and SLIC. When Intra-class uniformity is
considered, SLIC achieves the best result for
320x240 resolution, but at 640x480 resolution the
proposed adaptive graph-cut algorithm has the
lowest Intra-class uniformity. These results are
overall consistent with the recent literature (Achanta,
2012), reporting that SLIC is characterized by lower
boundary recall with respect to the graph-cut
algorithm: it produces a set of regular, uniform
superpixels, but it also possibly includes in the same
segments areas occupied by different objects in the
image. This issue is however less evident at the low
320x240 resolution, where object boundaries are less
to SLIC further confirm that, when these quality
indexes are considered, the segmentation obtained
with the proposed method is qualitatively superior
with respect to that produced by SLIC.
Table 1: Inter-class contrast, Intra-class uniformity and
their ratio for the graph-cut algorithm in (Felzenszwalb,
2004), its adaptive version developed here and SLIC, for
our testing set of images at 320x240 resolution.
# image
Adaptive Graph-Cut
Graph-Cut
SLIC
Adaptive Graph-Cut
Graph-Cut
SLIC
Adaptive Graph-Cut
Graph-Cut
SLIC
10.410.41 0.33 11.58 12.72 7.45 35.80 32.01 44.81
2 0.16 0.16 0.17 7.25 7.47 7.14 21.45 20.95 24.42
3 0.18 0.18 0.18 5.01 5.42 4.02 35.71 32.74 45.99
4 0.23 0.23 0.21 15.49 15.57 18.02 14.64 14.86 11.45
50.270.25 0.20 17.96 19.84 18.16 15.21 12.68 11.21
6 0.15 0.15 0.14 5.07 5.41 5.53 29.11 27.83 25.13
70.320.29 0.22 6.19 5.98 4.02 51.65 48.18 54.63
80.250.23 0.20 13.56 13.35 18.04 18.66 17.34 11.09
90.150.14 0.11 2.10 2.34 2.32 70.78 59.36 46.76
10 0.11 0.11 0.10 6.52 6.92 5.48 16.19 15.21 18.34
11 0.26 0.26 0.18 23.17 22.52 15.22 11.42 11.73 11.89
12 0.37 0.38 0.27 2.55 2.65 1.90 146.25 143.87 143.39
13 0.04 0.04 0.03 0.15 0.14 0.15 244.01 261.14 162.06
14 0.11 0.10 0.08 6.12 5.84 5.69 17.48 16.84 14.82
15 0.06 0.05 0.05 6.44 6.66 6.67 8.68 8.10 6.83
16 0.20 0.19 0.15 17.33 19.48 10.85 11.33 9.76 14.03
17 0.27 0.26 0.22 13.58 13.89 14.17 19.84 18.83 15.43
18 0.16 0.14 0.12 7.23 7.59 5.41 22.22 18.01 21.28
19 0.09 0.09 0.07 3.45 3.72 0.99 24.88 24.64 66.31
20 0.18 0.12 0.10 15.76 16.89 17.97 11.53 7.09 5.79
21 0.14 0.13 0.10 13.19 13.71 11.34 10.87 9.73 9.04
22 0.07 0.06 0.04 6.88 6.91 6.40 10.48 9.23 6.87
23 0.11 0.10 0.07 9.96 9.70 9.45 11.07 10.26 7.55
24 0.21 0.22 0.18 7.44 7.42 8.63 28.72 29.02 20.41
25 0.17 0.17 0.15 25.09 25.81 26.82 6.97 6.56 5.77
26 0.19 0.18 0.15 16.10 16.36 14.44 11.71 11.27 10.27
27 0.15 0.15 0.11 8.78 9.10 8.50 17.13 16.56 13.25
28 0.14 0.14 0.12 20.27 20.64 17.36 6.90 6.95 7.06
29 0.14 0.13 0.12 2.38 2.42 2.17 58.45 55.37 57.26
30 0.26 0.24 0.24 10.95 10.66 7.91 23.45 22.56 30.43
31 0.20 0.20 0.20 9.40 9.81 10.42 21.62 20.59 18.83
32 0.17 0.17 0.16 17.13 18.59 16.83 9.82 9.04 9.40
33 0.28 0.24 0.20 20.09 21.21 19.03 13.81 11.51 10.32
34 0.24 0.24 0.21 38.56 38.62 39.46 6.28 6.23 5.24
35 0.30 0.25 0.16 12.34 13.64 12.89 24.58 18.42 12.12
36 0.20 0.20 0.15 34.96 36.41 40.91 5.77 5.49 3.73
Average 0.19 0.18 0.15 12.22 12.65 11.72 30.40 29.17 27.31
Median 0.18 0.17 0.15 10.45 10.23 9.04 17.30 16.70 13.64
320x240
Inter-class
contrast
Intra-class
uniformity 1000 * Inter /Intra
AdaptiveSegmentationbasedonaLearnedQualityMetric
287