scieee AI-readable full text Open interactive document viewer

Unsupervised colour image segmentation by low-level perceptual grouping

Martínez Usó, Adolfo; Pla, Filiberto; García-Sevilla, Pedro

Abstract

This paper proposes a new unsupervised approach for colour image segmentation. A hierarchy of image partitions is created on the basis of a function that merges spatially connected regions according to primary perceptual criteria. Likewise, a global function that measures the goodness of each defined partition is used to choose the best low-level perceptual grouping in the hierarchy. Contributions also include a comparative study with five unsupervised colour image segmentation techniques. These techniques have been frequently used as a reference in other comparisons. The results obtained by each method have been systematically evaluated using four well-known unsupervised measures for judging the segmentation quality. Our methodology has globally shown the best performance, obtaining better results in three out of four of these segmentation quality measures. Experiments will also show that our proposal finds low-level perceptual solutions that are highly correlated with the ones provided by humans

Full text

Título artículo / Títol article: Unsupervised colour image segmentation by lowlevel perceptual grouping Autores / Autors Adolfo Martínez-Usó Filiberto Pla Pedro García-Sevilla Revista: Pattern Analysis and Applications. Versión / Versió: Post-print Cita bibliográfica / Cita bibliogràfica (ISO 690): MARTÍNEZ-USÓ, Adolfo, PLA, Filiberto, GARCÍA-SEVILLA, Pedro. Unsupervised colour image segmentation by low-level perceptual grouping. Pattern Analysis and Applications.2011 url Repositori UJI: http://hdl.handle.net/10234/67660 Unsupervised Colour Image Segmentation by Low-Level Perceptual Grouping Abstract This paper proposes a new unsupervised approach for colour image segmentation. A hierarchy of image partitions is created on the basis of a function that merges spatially connected regions according to primary perceptual criteria. Likewise, a global function that measures the goodness of each defined partition is used to choose the best low-level perceptual grouping in the hierarchy. Contributions also include a comparative study with five unsupervised colour image segmentation techniques. These techniques have been frequently used as a reference in other comparisons. The results obtained by each method have been systematically evaluated using four well-known unsupervised measures for judging the segmentation quality. Our methodology has globally shown the best performance, obtaining better results in three out of four of these segmentation quality measures. Experiments will also show that our proposal finds low-level perceptual solutions that are highly correlated with the ones provided by humans. 1 Introduction Image segmentation refers to the process of partitioning an image into several non-intersecting regions that hopefully correspond to structural units in the scene or any object of interest. Each region will be made of connected pixels and will be homogeneous according to certain criteria (intensity, texture, motion, etc.) and the union of all the regions forms the whole image [1]. In the last few decades, many researchers have focused their work on algorithms and techniques that look for the main regions that compose an image [2–4]. This means that the state-of-the-art on image segmentation involves large amounts of methodologies and also many taxonomies on this topic [5– 7]. From these taxonomies, one of the early and extensively used methodologies in the literature is the hierarchical one since identifying structures on an image is inherently a multiscale problem. Thus, multiscale approaches from more than a decade ago [8] are still present in nowadays works [9], contributing to make these approaches more effective. A hierarchical methodology is mostly designed as an optimisation problem to reach general sub-optimal values for an objective function that measures the “quality” of an image partition. Moreover, hierarchical approaches are commonly combined with a similarity criterion between regions that uses all the information extracted from the regions in order to decide if they should be merged or not in a region growing scheme [10,11]. Two main reasons lead us to choose a hierarchical strategy in our approach: –General-purpose image segmentation techniques deal with different sources and/or scenes. This variety of tasks can be faced up in a very intuitive way by means of hierarchical methods. Likewise, these data-adaptive structures provide a description of a scene in terms of regions at several resolution levels [12]. –Hierarchical structures produce a multiscale representation which allows to design efficient and easy implementations that result in robust algorithms. –Region grouping processes are more appropriate than clustering or thresholding approaches since they simultaneously take into account both colour information and its distribution in the spatial domain [13]. There have also been many attempts to achieve the optimal image segmentation result according to certain perceptual premises [14,15]. Many discussions on what is or how to get natural segmentation results have been published [16] and a significant effort has been devoted to developing complex scene image segmentation [17,18], perceptual grouping of image contents [19,20] or perceptually based colour texture analysis [21]. A lot of work in this direction has also been based on perceptual colour spaces [22]. In our case, being aware that both approaches are not mutually exclusive, we have rather focused on the idea that perceptual organisation of regions in an image is the key point in order to mimic object recognition process of humans [23,24]. Therefore, it is important to measure how the pixels are distributed within each region and to take into account the relationship among 2 the regions in the whole image. This is a very challenging problem that has motivated our work on extracting low-level image features that can be correlated with high-level semantics. Another important issue in this approach comes from the difficulty of making any a priori assumption in the frame of a general approach for image segmentation. Unsupervised methods, unlike the supervised ones, avoid any kind of prior knowledge. This characteristic is indispensable to perform general-purpose applications, such as graphics editing programs, off-line image analysis or simply as a pre-processing step for further high-level tasks. The ability to work without making a priori assumptions allows unsupervised methods to operate over a wide range of conditions and with many different types of images. Evaluating the quality or the impact of the results is a critical point in any scientific work, being even more important in image segmentation due to the subjective evaluations that this task often involves. Thus, the approach on this point should be carefully designed. In the often-cited work of Zhang [25], the different methodologies to evaluate segmentation algorithms are broadly divided into two categories: analytical methods and empirical methods. Due to the difficulty to compare algorithms solely by means of analytical studies, analytical methods have not received much attention in the literature [26]. There also exists a considerable amount of empirical methods which are, in turn, classified into two types: discrepancy methods and goodness methods. An evaluation criterion belongs to the empirical discrepancy methods or to the empirical goodness methods depending on whether the gold-standard or ground-truth reference is available or not respectively. In the framework of our current projects, expecting to have a ground-truth reference of the ideal segmentation result is not always possible and, therefore, we discard the empirical discrepancy as the evaluation criterion. Consequently, we will focus on the empirical goodness measures, that are often called unsupervised evaluation methods, for estimating the quality of the results. Recent reviews on unsupervised evaluation methods [27, 28] compare the performance of these measures by means of different experiments and suggest which ones work better on each scenario. Moreover, authors in [29] support the idea of taking a collection of evaluation criteria in order to avoid the bias of the individual measures. Thus, we have taken advantage of the conclusions of these works in order to select and apply those criteria that perform the best to measure the performance of the algorithms. The goal in this work is to develop a general-purpose colour image segmentation algorithm. In order to obtain this objective, a hierarchical structure of partitions in the image domain is proposed [30,13]. This hierarchy is developed in a fully unsupervised way based on two novel criteria for grouping regions and choosing the most suitable image partition in the hierarchy. These criteria use primary perceptual principles as achieving maximum contrast among regions while preserving intra-region colour homogeneity and edge information. The segmentation process starts from an over-segmented representation of the image, which constitutes the first level of the hierarchy. From this partition, adjacent regions are progressively merged according to a grouping criterion that selects the two most similar regions. The merging procedure is repeated to produce successively more levels until only one region covers the whole image. Finally, another criterion is used to select the best level from the hierarchy. The selected partition is understood as a preliminary step towards the semantic grouping that a human would made starting from our resulting low-level perceptual grouping. Another main contribution of this work is a systematic comparison of the most successful colour image segmentation algorithms. These algorithms have been widely used in the literature due to their reasonable performance. Besides this, their source code is freely available. A systematic comparison among this wide range of algorithms expands the state-of-the-art on this field providing objective information about their performance. The remainder of this paper is organised as follows: In Section 2, the proposed image segmentation algorithm based on the optimisation of a criterion function is described. Experimental results, comparisons and analysis of the results are presented in Section 3. Section 4 concludes the paper and discusses future work. 2 The proposed algorithm Psychological approaches based on Gestalt laws agree on the importance of the region homogeneity measurement and the edge extraction procedures in the human visual system [24]. The effectiveness of combining these two aspects has been already demonstrated in other algorithms for perceptual image segmentation [15]. The proposed grouping criterion is focused on the spatial features of the perception of the different regions that form the image rather than on the representation spaces. Therefore, it can be applied in any representation space, from grey to colour images or even to multi/hyperspectral images, which is an important quality in the framework of our current research projects. Thus, we will concentrate our effort on those measures related to grouping and on choosing a partition with a suitable spatial distribution. The image segmentation method that we propose here employs a hierarchical methodology in an agglomerative way. Thus, starting from a highly over-segmented representation of the image, the proposed algorithm will group together those spatially connected regions that are similar enough according to the criterion function exposed in Section 2.1. This iterative process based on primary perceptual criteria will create a hierarchy of partitions. Another function will measure the goodness for each partition in the hierarchy. This second function will be explained in Section 2.2. At first sight, the algorithm could only be based on the optimisation of the functional that performs the clustering assessment. However, each functional measures distinct features and, although the second functional selects the best par- Unsupervised Colour Image Segmentation by Low-Level Perceptual Grouping 3 tition, the first one decides how the hierarchical structure is scanned through [10]. Gaussian models have been successfully used in many works on segmentation using natural images [31–34]. In our approach we also assume a Gaussian distribution of the region pixel values. 2.1 Defining a dissimilarity measure between regions Let us suppose an initial coarse representation of the image where each homogeneous group of connected pixels is treated as a single region. From this initial partition, pairs of regions are successively merged until all the regions have been merged into just one, creating a hierarchical process that follows a single-link strategy. This means that each iteration takes into account the dissimilarity (D) between every pair of spatially connected regions, being the two most similar regions according with this criterion forced to merge. Therefore, our strategy implements a deterministic sequence of merging operations, where these merging operations are irreversible. Let us assume a set of Bbands that form a multiband input image f, being f(x)aB-dimensional vector associated with each B-dimensional pixel x. In our proposal, measure D is defined as follows: DRR0=dRR0(1 + δRR0)(1) where dRR0= (µR−µR0)TCov−1 R+Cov−1 R0(µR−µR0)(2) and δRR0=Px∈BRR0maxi=1...B|∇fi(x)|2 card (BRR0)(3) Mean values of the pixels of regions Rand R0are represented by vectors µR,µR0whereas the covariance matrices are represented by CovR,CovR0, The dimensionality of the mean vectors and covariance matrices depends on B. In the δRR0term, BRR0is the set of pixels that belong to the boundary between regions Rand R0. Function card(·)returns the cardinality of a set. Rather than using a more sophisticated method, a maximum value of the gradient magnitude found in each band is used. Thus, |∇fi(x)|is the magnitude of the gradient at point xfor the band iand function max(·)returns the maximum of the values in brackets. Under the assumption of considering normally distributed pixels in each region, the value of dRR0is a Mahalanobis distance between two distributions, defined in the pixel domain. This term accounts for the similarity in the distribution of pixel values in the two regions that are considered to be merged. The term δRR0averages the square of the gradient magnitude values along the boundary between these two connected regions. Thus, this term accounts for the strength of the discontinuity between the distributions of pixel values across the regions under consideration, including a spatial measure of discontinuity in the dissimilarity function. Dissimilarities in Eq. (2) and Eq. (3) are not complementary but parallel events. If both events happen, dissimilarity DRR0in Eq. (1) is reinforced. DRR0takes into account dRR0, the dissimilarity between region distributions itself, and dRR0·δRR0, the product of the dissimilarities between region distributions and the edge strength at the border of both regions. Thus, if the difference between the pixel distributions in Rand R0is high, DRR0value still gives more importance to the edge between them. If this difference is low, the edge could be due to the presence of texture and its importance is reduced. 2.2 Deciding the number of regions A criterion for selecting the most suitable partition in the hierarchy is described in this section. It is completely independent of the measure defined in Equation (1) for grouping regions and regardless of the way in which the hierarchical tree structure is constructed. Thus, while the algorithm progressively merges pairs of neighbouring regions, a nonparametric estimation of the goodness of the data partition is performed. The resulting partition is selected without any a priori information about the final number of regions or the shape of the resulting ones. The algorithm has been formulated as the maximisation of a criterion function F. This function attempts to quantify the basic perceptual principle of maximising the contrast in the image domain while preserving intra-region colour homogeneity. That is, given an image partition, we measure how well the pixels fit their corresponding regions and not the neighbouring ones. Therefore, the algorithm will select the partition where the value of the Ffunction would be maximum: F=Si·Se(4) Si=1 NX RX x∈R S(x, R) = 1 NX RX x∈R e −|f(x)−µR|2 2σ2(5) Se=1 NX RX x∈R ¯ S(x, N(R)) = =1 NX RX x∈R N(R) Y R0 ¯ S(x, R0) = =1 NX RX x∈R N(R) Y R0 (1 −S(x, R0)) = =1 NX RX x∈R N(R) Y R01−e −|f(x)−µR0|2 2σ2(6) For each partition in the hierarchy, Siis an inner measure and Sean external measure. In these equations, Nrepresents the total number of pixels in the image. R,R0are regions and N(R)is the set of neighbouring regions of region R. The 4 value of the pixel xis represented by f(x)whereas µRis a vector containing the average value of the pixels in the region R.S(x, R)is a measure of similarity between pixel xand region R. Both Equation (5) and Equation (6) assume a Gaussian distribution characterised by a mean and an expected variance. ¯ S(x, N(R)) = QN(R) R0(1 −S(x, R0)) is the complement of the measure that a pixel belongs to the neighbouring regions ¯ S(x, N(R)), which is defined as the measure that a pixel does not belong to any of the neighbouring regions. Equations (5) and (6) are inspired by probability calculus, although we are aware that we are not strictly dealing with probabilities but non-normalised probabilities. Sican be considered as the average measure of the non-normalised probability that a pixel in the image belongs to the region that it has been assigned to. On the contrary, Seis the average measure of the non-normalised probability that a pixel does not belong to its neighbouring regions. The criterion function F therefore takes into account the fact that the pixels belong to the assigned regions in the partition and, simultaneously, that the pixels do not belong to neighbouring regions in the image domain. Hence, this estimates how “well” the pixels are grouped and whether these groups are internally consistent and, at the same time, different enough from spatially nearby regions. It is worth saying that not only the optimal partition could be selected by means of function Fbut other suboptimal partitions could be taken into account by means of selecting other local maxima of the functional or selecting the partition with less regions after a period of merging operations where the functional Fhas remained stable. This could also end up in satisfactory partitions depending on the application and, in fact, according to our experience, this usually happens. Parameter σis a constant that acts as a bound on the variability of the regions and represents a smoothing constraint of the expected segmentation. The lower σis, the larger amount of regions will have the chosen partition using Equation (4). It is important to note that this threshold is related to the variance allowed in the density estimation of the regions and it is not used as a grouping criterion. In (1), the variability of the regions is taken into account, however, in (5) and (6), σis a constant that imposes an equal limit spread in the colour space of the regions. Otherwise, if σis not constant and adapts to each region variability during the evaluation process, the function Fwill always grow and no clear maximum will be reached, becoming a degenerated problem. The proposed approach is not significantly dependent on the choice of this σvalue since the criterion function Fhas demonstrated a quite robust behaviour if σis slightly changed. This is due to the fact that the sequence of merging operations does not change because it is based on the function (1) and the process described in Section 2.1. Therefore, merging two regions in a correct way still increases the function Fwhereas wrongly merging operations are still penalised, that is, local maxima are preserved in any case independently of the variations of σ. A fact that supports this behaviour is that it was not difficult to select a common σvalue for all the images of the Berkeley segmentation database. In the experimental part of this work, σhas been fixed to the same value for all the experiments in order to not take advantage of tuning up this parameter in each experiment. Algorithm 1 shows the pseudo-algorithm that summarises the proposed methodology. Algorithm 1 Pseudo-Algorithm of the segmentation process. Input: partition P Output: partition maxP 1 : maxP=∅ 2 : maxF= 0 3 : Compute NRegs =card(P) 4 : while NRegs > 1: 5 : Compute Ffor partition P(Eq. (4)) 6 : if F > maxF: 7 : maxP=P 8 : maxF=F 9 : for any pair of neighbouring regions R, R0: 10 : Compute DRR0(Eq. (1)) 11 : Merge R, R0whose DRR0is minimum to obtain new P0 12 : P=P0 13 : NRegs =NRegs −1 14 : Return partition maxP 3 Experiments and results A varied number of experiments to assess the performance of the algorithm have been carried out. Image segmentation results will be evaluated i) using real images from a wellknown database, ii) comparing the performance against other renowned image segmentation algorithms [35–39] and iii) by means of different unsupervised evaluation criteria. These criteria were recently employed in several comparisons, obtaining an excellent performance in almost all the tests [27, 28]. The value of parameter σin Equations (5) and (6) was fixed to 1.65 for all the experiments. 3.1 Preliminary notes and some examples The method here presented works with RGB images. It develops a coarse-to-fine segmentation strategy based on a process that progressively agglomerates the initial regions. As starting point, an over-segmented representation of the input image is somehow needed. This representation must be oversegmented enough to ensure that all the details have been captured. Note that any wrong merging operation in the initialisation stage cannot be recovered later. In our case, this initial segmentation is performed by using a previous work [40]. However, any initial partition containing all the important details of the image would be valid as well. Figure 1 shows a segmentation result for the woman image with its initial over-segmented representation. Although Unsupervised Colour Image Segmentation by Low-Level Perceptual Grouping 5 this initialisation is quite poor, the final result has not been affected in a significant way. In addition, Figure 2 shows the graphical representation of the Ffunction and its Si,Secomponents for the same image. It is worth noticing that, from our experience, any result for the Fcriterion where Si·Se≤0.2 should be generally discarded. Low values for the function F are very uncommon, although they could happen on textured images where the colour palette among regions is very similar. These very low values would actually indicate a weak homogeneity relationship among the pixels of each region which, at the same time, would not be too different from the ones of the neighbouring regions. Functional Freaches its maximum value when the number of regions is equal to 9, fourth resulting image in Fig. 1. The segmentation result for 23 regions is also offered in Fig. 1 (third image) as a matter of comparing two segmentation results that obtain very similar values for functional F. Fig. 1 Segmentation result for the woman image. From left to right, original woman image, initialisation and segmentation results at 23 regions and 9 regions (where function Freaches its maximum value). 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 5 10 15 20 25 30 35 40 F Si Se Maximum F value Fig. 2 Goodness estimation for the colour image of woman. y-axis represents the numerical result of applying the criterion function F to each partition whereas x-axis shows the number of regions of the partition. Function Freaches the maximum value at 9 regions. Figure 3 shows the segmentation results of four classical colour images, namely, toys,peppers and tree. As we can see, the results in all the images are consistent with a perceptual interpretation: contours are well defined and all important regions have been detected. Fig. 3 Examples of results on classical images: from top to bottom, toys, peppers and tree. It is important to notice that hereafter we will refer to our proposal as PSEG algorithm, as the acronym of Partitionbased SEGmentation. 3.2 Overview of other segmentation algorithms and evaluation measures In addition to the proposed algorithm, five unsupervised colour segmentation algorithms are used for comparison. All of them have no particular application field, being their results often used as a reference to beat in other comparatives. 1. Firstly, MS is an effective algorithm that can be used to obtain the dominant colours of an image using the CIE L∗u∗v∗colour space. It was proposed by Comaniciu and Meer in [35] and it is based on the mean shift algorithm applied in the spatial domain. 2. In [36] Felzenszwalb and Huttenlocher presented an algorithm (FH) that adaptively adjusts the segmentation criterion based on the degree of variability in neighbouring regions of the image. Simultaneously, a graph-based approach guides the segmentation process. The algorithm starts a coarse-to-fine iterative process until the stage where the resulting partition is neither too coarse nor too fine. 3. Statistical Region Merging (SRM) algorithm was proposed by Nock and Nielsen in [37] based on the idea of using perceptual grouping and region merging for image segmentation. Our proposal is based on a similar approach although using totally different merging and stopping criteria. 4. JSEG algorithm proposed by Deng and Manjunath in [38] provides colour-texture homogeneous regions which 6 are useful for salient region detection. The algorithm calculates distances between regions on the CIE L∗u∗v∗ colour space. It has been widely used in natural image segmentation so far. 5. Authors in [39] have recently proposed an unsupervised colour image segmentation algorithm (GSEG) that is primarily based on colour-edge detection, dynamic region growth and in a multi-resolution region merging procedure, exploiting the information obtained from the CIE L∗a∗b∗colour space. This algorithm was tested on the same database of images used in this work. It is important to point out that the parameters of the algorithms have been set to the default values as authors provide and/or suggest, therefore, no parameters have been tuned up. Many proposals have been published about measuring the quality of segmentation results [26,27,41]. This is not an easy task since evaluating image segmentation results must be considered as a top-down problem that very often introduces an important element of subjectivity in the evaluation process. In our case, we have reduced the influence of this inconvenience by means of using a varied range of unsupervised methods for evaluating the segmentation quality of the results. Although, there exists a general agreement in the literature about the need of these quantitative measures, there is currently no consensus on which one should be used. Therefore, many alternatives for the estimation of segmentation quality could be taken but, at the same time, there is no perfect way to perform this evaluation due to the subjectivity inherent in image segmentation. The quality measures used in this work have been used in several reviews [27,28]. In [28], authors carried out several experiments comparing 8 evaluation measures. These measures implement different criteria in order to quantify the goodness of the partitions obtained by the segmentation algorithms. On the basis of this work, we will use 4 of these measures. With the same nomenclature as in [28], these measures are E,ECW ,Zeb and FRC , which can be described as follows1: E[42] : This evaluation function is based on information theory and the minimum description length principle. It uses region entropy as its measure of intra-region uniformity. It also uses layout entropy to penalize over-segmentation when the region entropy becomes small. CRITERION: the lower the value, the better the result. ECW [43] : This measure is a composite evaluation method for colour images (sum of two measures) that is based on the use of visible colour difference. It uses an intra-region error to evaluate the degree of under-segmentation, and uses an inter-region region error to evaluate the degree of over-segmentation. This measure is defined over the CIE L∗a∗b∗colour space. CRITERION: the lower the value, the better the result. 1Note that each measure has different criteria and these criteria are particularly important for understanding the graphical results offered in Section 3.3. Zeb [44] : This measure takes into account the internal and external contrast of the regions measured in the neighbourhood of each pixel. The internal contrast is normalised by the number of pixels of each region whereas the external contrast is normalised by the number of pixels in the region perimeter. CRITERION: the higher the value, the better the result. FRC [45] : This evaluation criterion takes into account the global intra-region homogeneity and the global inter-region disparity. The intra-region disparity is the standard deviation of the pixel values of each region. The inter-region disparity is the average of a distance between the current region and all its neighbouring regions. This distance is related to the average of the grey-level of each region. CRITERION: the higher the value, the better the result. There are other measures in [28] that have not been used in our experiments because they focus on video sequences, are based on shape regularity, or provided poor performance in other studies [27,42]. In their review, Zhang et al. [28] also compared the measures on different environments, confirming that each measure generally works better in a different context. FRC and Zeb demonstrated to be the best ones in most of the cases. Nevertheless in our case, it is especially interesting that the E and FRC measures were proved as the best ones by far when the machine segmentations were compared against the segmentation results specified by humans. This could be taken as the closest example to the perceptual case. 3.3 Comparing the image segmentation algorithms Authors in [23] define perceptual information and use this concept to conclude that using just low-level image features is not possible to achieve segmentation performance comparable to human segmentation. However, there is not doubt about the suitability of human segmentations as a reference result for the image segmentation algorithms. Human-based segmentations results will surely have a more meaningful contents at least semantically. In this section the colour images of natural scenes from the Berkeley segmentation database (BSD) will be used [46]. This database offers a set of test images and, for each image, several segmentation results labelled by humans are also provided. Manually segmented images have been often used as a perceptual reference for comparison purposes [15,23], considering the more similar to this reference, the better the segmentation result. Although BSD provides a set of 300 images, we have used their list of a hundred images ranked according to the relative complexity of each image (validation set). This work used the BSD images as they are, without any preprocessing stage. The segmentation algorithm here presented is compared with the well-known techniques introduced in Section 3.2. Figure 4 offers some examples of the segmentation results obtained with all the algorithms. As it can be seen, there are some “easy” images like the first one and more complicated Unsupervised Colour Image Segmentation by Low-Level Perceptual Grouping 7 ones like the others. In fact, in this database there are many images that have a rich presence of textures and colours, being these images quite difficult to segment for general-purpose algorithms. Moreover, the second row of the figure also shows four randomly selected examples of the segmentation results produced by humans. By means of this figure, the reader will be able to have a first and coarse idea of the performance of each algorithm. Table 1 presents the scheme for the experimental part of this work and a brief explanation about the different stages into which the experiments have been divided. Summarising, from each image of the BSD and for each segmentation algorithm, an image segmentation result is produced. On these results, the measures for the segmentation quality are applied, obtaining an explicit value that represents their segmentation goodness in a summary file. This summary file is used to obtain the graphical results and the rankings for the segmentation methods. Each ranking is produced for each quality measure and shows how many times a method was the first, the second and so on. At the end of the process, in order to analyse the statistical significance of these rankings for all the methods used in the comparison, a Friedman test has been performed. Friedman test [47] is a non-parametric technique to measure the significance of the statistical difference of several methods. These methods provide results on the same problem, using rankings of results obtained by the algorithms to be compared. The Friedman estimator FFfollows a Fisher distribution that allows to analyse the statistical significance of the results. This estimator is expressed as χ2 F=12NB NM(NM+ 1)   NM X j=1 R2 j−NM(NM+ 1)2 4  FF=(NB−1)χ2 F NB(NM−1) −χ2 F where NMis the number of segmentation methods, NBis the number of databases (images) compared and Rjis the average of the ranks for the method j.FFfollows a Fisher distribution with NM−1and (NM−1) ∗(NB−1) degrees of freedom. The human segmentation results provided by the BSD will be used as perceptual reference about the goodness of the rest of segmentation results. For each image of the database, hsegmentation results made by humans are available, being 5≤h≤9(i.e. at least 5 segmentation results per image). These segmentation results are separately evaluated, obtaining a summary file that will have hcolumns and one hundred rows. The average value for each row is calculated obtaining a 100-row column that represents the average of the segmentation quality values obtained from the results made by humans. The variance of these segmentation quality values has been also worked out and it was always lower than 0.01, which makes sense to consider only the average value of the human segmentation results. These human average values are treated as another method in the comparative which will be called H-avg. As it can be found in [46], the BSD subset of one hundred images ranks the images according to some boundary detection benchmarks. In our graphs, images have been re-ordered in a different way depending on the quantitative evaluation obtained by each measure using the H-avg values. Thus, a monotonic reference of how the images increase their complexity with regard to the results specified by humans was expected. Once the human reference has been specified and introduced as another segmentation method in our summary file, Table 2 shows the ranking of methods for the evaluation measures E,ECW ,Zeb and FRC . These values represent how many times each method ranks in each position, i.e., first (P1), second (P2),. . ., seventh (P7). Although some conclusions could be obtained about which are the best results, it is difficult to have a global view of them and, in any case, it would be desirable an analytical measurement of the results. As the scheme of the Table 1 describes, we have selected the Friedman test to this end. This test has been eventually applied to the ranking tables, resulting in a positive evaluation for all of them. For each measure E,ECW ,Zeb and FRC , a critical value of the Fisher distribution with a significance level α= 0.05,95% has been set up for the six segmentation algorithms plus the human reference (NM= 7) in the comparative of a hundred images (NB= 100). As it can be seen, PSEG method is 82 times the best according to the Emeasure, 70 times according to the Zeb measure and 56 times if we use the FRC measure. However, our proposal obtains almost the worst result according to the ECW measure. Regarding to Eand FRC measures, PSEG and H-avg share the two first positions. Results on these measures have especial meaning since, as it has been said, these measures obtained the best accuracies when machine segmentations were contrasted against the human segmentations in [28]. According to ECW , we obtain very weak results, however, humans also have poor results with this measure. Finally, we obtain the best results with the Zeb measure, nevertheless, human results do not follow this tendency. The three highest values for each method have been written in bold letters in Table 2 in order to show better which is the tendency of each method. Moreover, to support these conclusions, a linear correlation coefficient between each method and H-avg has been also worked out for all the quality measures. Thus, GSEG,PSEG and JSEG (in this order) presented the most correlated results with humans in a global sense. With regard to the global performance demonstrated by each image segmentation algorithm, the method here presented obtains the best results in three out of four quantitative measures for the segmentation goodness. About the perceptual representation obtained by each image segmentation algorithm, our proposal follows the same tendency as humans in three out of four rankings exposed, being its results very correlated with H-avg. 8 Fig. 4 Segmentation results for test images from the BSD. First row shows the source images and second row shows segmentation results made by humans (randomly chosen). The rest of the rows show the segmentation results for the algorithms MS,FH,JSEG,SRM,GSEG and PSEG (our proposal) respectively. It is also interesting to notice how some of the segmentation algorithms studied outperform the manually segmented results. This result makes sense because segmentations made by humans are mostly influenced by their prior knowledge about the contents of the image instead of merging those regions that have similar low-level features like texture, colour, etc. Moreover, in our particular case, the proposed algorithm maximises a measure (Eq. (4)) which pursues similar goals than the evaluation measures, that is, to maximize the intraregion homogeneity/uniformity while maximizing the interregion disparity/contrast as well. Figure 5 supports this last point showing four different human segmentation images provided by the BSD (second to fifth images). Human segmentation images from BSD have been sorted from left to right by the number of regions in the segmentation result. As it can be seen, these human segmentations are certainly influenced by the semantic contents of the image. The three results on the left (especially the first two) divide the image into amphora and background. These three results will be very penalised by the measures for evaluating the segmentation since humans have not taken into account different tonalities, textures and multiple edges