Topology-based image segmentation using LBP pyramids
Abstract
In this paper, we present a new image segmentation algorithmwhich is based on local binary patterns (LBPs) and the combinatorial pyramid and which preserves structural correctness and image topology. For this purpose, we define a codification of LBPs using graph pyramids. Since the LBP code characterizes the topological category (local max, min, slope, saddle) of the gray level landscape around the center region, we use it to obtain a “minimal” image representation in terms of the topological characterization of a given 2D grayscale image. Based on this idea, we further describe our hierarchical texture aware image segmentation algorithm and compare its segmentation output and the “minimal” image representation.
Full text
Machine Vision and Applications (2016) 27:1161–1174 DOI 10.1007/s00138-016-0795-1 SPECIAL ISSUE PAPER Topology-based image segmentation using LBP pyramids Martin Cerman1·Ines Janusch1·Rocio Gonzalez-Diaz2·Walter G. Kropatsch1 Received: 30 November 2015 / Revised: 12 June 2016 / Accepted: 27 June 2016 / Published online: 28 July 2016 © Springer-Verlag Berlin Heidelberg 2016 Abstract In this paper, we present a new image segmentation algorithm which is based on local binary patterns (LBPs) and the combinatorial pyramid and which preserves structural correctness and image topology. For this purpose, we define a codification of LBPs using graph pyramids. Since the LBP code characterizes the topological category (local max, min, slope, saddle) of the gray level landscape around the center region, we use it to obtain a “minimal” image representation in terms of the topological characterization of a given 2D grayscale image. Based on this idea, we further describe our hierarchical texture aware image segmentation algorithm and compare its segmentation output and the “minimal” image representation. Keywords Local binary patterns ·Irregular graph pyramid · Primal and dual graph ·Topological characterization ·Image segmentation Author was partially supported by IMUS and Spanish Ministry under grant MTM2015-67072-P (MINECO/FEDER, UE). BInes Janusch [email protected] Martin Cerman [email protected] Rocio Gonzalez-Diaz [email protected] Walter G. Kropatsch [email protected] 1PRIP group, TU Wien, Vienna, Austria 2Applied Math Department, School of Computer Engineering, University of Seville, Seville, Spain 1 Introduction Given a grayscale digital image I, the local binary pattern LBP(I)[19,21] is again a grayscale digital image which represents the texture element at each pixel in I. This is currently the most frequently used texture descriptor [15] with outstanding results in applications ranging from object detection [18] to segmentation [4,11] and classification [25,27]. Considering image segmentation, the main idea is that a good segmentation can capture perceptually important regions, which reflect local and/or global properties of the image [24]. These regions can then be used for classification and higher level tasks such as image understanding. Existing segmentation algorithms are based on thresholding, histograms, edge detection, split and merge strategies, watershed transformation or graph partitioning [26]. LBPs have already been used in segmentation approaches in the past: first by Ojala et al. who presented an unsupervised three-phase algorithm in [20]. In this paper, we now present an evaluation of our LBP-based texture aware segmentation [2] using the Berkley segmentation dataset [16]. Contrary to existing LBP-based image segmentation approaches, we do not use histograms of LBPs, but keep the spatial information of the LBPs and consider it in the segmentation process. Typically, the LBP operator is applied to all 3 ×3 image windows of the considered texture (region). Then the histogram provides the characteristic features of the texture. After training the feature space with the textures of interest, new textures can be classified with very good discrimination. Also for segmentation approaches based on LBPs, histograms of the LBPs were used. However, due the histograms, spatial information is lost in these approaches. In [3], we proposed a new equivalent LBP encoding which transfers the code from the pixels to the neighbor rela- 123
1162 M. Cerman et al. tions thus only using one bit per edge of the neighborhood graph. We introduced a way to handle non-well-composed images, as well as a repetitive contraction process leading to a hierarchy of successively smaller graphs—a graph pyramid that preserves the basic topological categories (i.e., extrema, saddle points, plateaus and slopes). This approach on its own already provides a topology-based, hierarchical image segmentation. However, by adapting this approach (i.e., the contraction criteria), we now define a texture aware image segmentation using LBPs in this paper. Moreover, we compare the segmentations obtained by our topologically minimal image representation and by our texture aware image segmentation approach. For other non-LBP-based hierarchical topological segmentation approaches, see, for example, [1,22]. The paper is organized as follows: Section 2recalls the methodological background. In Sect. 2.1, an overview of needed terms and their equivalent meanings as well as a brief introduction to LBPs is given and the topological category of the gray level landscape around a pixel characterized by its LBP code is defined. Section 2.2 recalls irregular graph pyramids. LBP pyramids are introduced in Sect. 3, and an overview of the minimal graph representation approach is given in Sect. 3.4. In Sect. 4, we present our texture aware segmentation approach that is based on LBP pyramids. Section 5is devoted to experiments, and Sect. 6to conclusions and future work. 2 Basic concepts and terminology In this section, we give a definition of terms used within this paper and provide a short recapitulation of the basic concepts of LBPs and graph pyramids, which is needed as a basis for the presented texture aware segmentation approach and the topological minimal representation of the image. Table 1 gives an overview about terms used within this paper and shows equivalences between them. Table 1 Overview of terms in the image space, the primal graph and the dual graph and their equivalences Image Primal graph Dual graph Pixel Vertex – 4-Neighbors Edge – Region Connected set of vertices in thebaselevel – Superpixel Vertex at higher pyramid level – Adjacent regions Edges at higher pyramid level – Region boundary – Dual cycle 2.1 Local binary patterns (LBP) The intensity of a pixel p=(x,y), denoted by g(p),is expressed within a given range between a minimum and a maximum, inclusive. Without loss of generality, we suppose that the range is [0,255]. The standard LBP code [19]is computed for a (center) pixel as in Eq. (1), where Pis the number of neighbors, Ris the distance between the center pixel and the neighbors (we assume 1 here; therefore, the values of Pcould only be 8 or 4), cis the center pixel of the operator, and pis the local neighbor indexed by p.The basic operator uses the sign function s(x)=1ifx≥0 and s(x)=0 otherwise. LBPP,R= P−1 p=0 s(g(p)−g(c))2p.(1) The LBP code characterizes the topological category of the gray level landscape around the center pixel. A pixel is a local maximum if the LBP code is composed just by 0s. A local minimum produces an LBP code only with 1s. Notice, however, that an LBP code consisting of 1 only can also be created by a plateau (a region composed by neighboring pixels sharing the same gray value) due to the asymmetry of the sign function s. The LBP code describes a slope if there are exactly two transitions from 0s to 1s or 1s to 0s in the code, when traversed circularly. More transitions identify a saddle. In this paper, the 4 neighbors (on its top, bottom, right, left) of each pixel are considered for comparison with the center pixel to obtain the LBP code. That is, follow these 4 pixels along a circle (for example, clockwise), whenever the center pixel’s gray value is greater than the neighbor’s gray value, i.e., when g(p)−g(c)<0, write 0. Otherwise (i.e., when g(p)−g(c)≥0), write 1. Example: 113 240 23 20 25 12 15 30 40 ⇒ 1 0250 1 ⇒1010 ⇒1·23+0·22+1·21+0·20⇒10 This 4-neighbor LBP codification has been used for solving problems in image processing and analysis, such as face detection and recognition [9], or iris extraction [8]. 2.2 Irregular graph pyramids Aregion adjacency graph (RAG) G=(V,E)encodes the adjacency of regions in a partition. A vertex v∈Vis associated with each region r. Vertices of neighboring regions are connected by edges e∈E. Classical RAGs do not contain 123
Topology-based image segmentation using LBP pyramids 1163 any self-loops nor parallel edges. An extended region adjacency graph (eRAG) contains self-loops and parallel edges used to encode neighborhood relations to a region completely enclosed by one or more other regions [12]. The dual graph of an eRAG Gis denoted by ¯ G=(V,E)(Gis said to be the primal graph of ¯ G). The edges of Erepresent the boundaries (borders) of the regions encoded by G, and the vertices of ¯ Grepresent points where boundary segments meet. Gand ¯ Gare planar graphs if they represent a 2D decomposition into regions. There is a one-to-one correspondence between the edges of Gand the edges of ¯ G, which induces a one-to- one correspondence between the vertices of Gand the 2D cells (regions) of ¯ G. The dual of ¯ Gis again G. The following operations are equivalent: edge contraction in Gwith edge removal in ¯ G, and edge removal in Gwith edge contraction in ¯ G. Edge contraction preserves the topology (i.e., regions are always homeomorphic to disks) [7]. A (dual) irregular graph pyramid [12,13] is a stack of successively reduced planar graphs P={(G0,¯ G0),..., (Gn,¯ Gn)}. Each level (Gk,¯ Gk), 0<k≤n, is obtained by first contracting edges in selected contraction kernels of Gk−1, if the corresponding regions should be merged, and then removing edges in Gk−1 to simplify the structure. In this paper, pixels are considered unit square regions, 4-neighborhood is used for constructing the RAG, and each vertex vof the RAG associated with each region ris labeled with the gray value of the region, i.e., g(v) := g(r). 3 LBP pyramids In this section, we define a codification of local binary patterns (LBP) based on graph pyramids. The notion of wellcomposed images and a way how to obtain well-composed images by inserting dummy regions is described first, to be able to deduce the topological characterization provided by LBP8,1from the topological characterization of the LBP code of the modified configuration. In order to obtain a minimal graph representation of a given image Iin terms of topological characterization of the LBP code of I,wefirstmerge regions having the same gray value (plateaus) and finally obtain a minimal graph representation by merging singular slopes (a particular topological category that can be merged without changing the topological category of the remaining regions). 3.1 Creating well-composed images A2Dimageiswell-composed [14] if it does not contain the following non-well-composed configuration (modulo reflection and 90◦rotation): a b c d where g(a)<g(b), g(a)<g(c), g(d)<g(b)and g(d)<g(c). (2) Lemma 1 [3]If the image is well composed, the topological category provided by LBP4,1is the same as LBP8,1. a b r c d The main problem in a non-well-composed configuration like Eq. (2) is that the relation between aand d(resp. b and c) cannot be deduced from the relation of 4 adjacent regions. To solve this, we insert a new “dummy” region rin the center of the non-well-composed configuration. The new region rwith new gray value g(r)reflects the relation between a,b,c,din a way that the topological category of the 8-connectivity LBP code can be deduced from the LBP code of the modified configuration (Fig. 1a, b). In general, the new value for ris computed as follows: Fig. 1 An 8-bit grayscale image (highlighted grayscale values)isbmade well-composed, and cplateaus are merged (for color legend see Fig. 3c) 123
1164 M. Cerman et al. Fig. 2 The plateaus of an image with highlighted values are first merged, and then structurally redundant edges are removed, ainput, bmerged plateau, cremoved edges minima maxima doubly-singular slopes singular slopes other slopes saddles (a) (b) (c) Fig. 3 Removing structurally redundant edges from the primal graph, aafter merging plateaus, bafter removing edges, cvertex colors g(r)=(g(a)+g(b)+g(c)+g(d)−max{g(a), g(b), g(c), g(d)}−min{g(a), g(b), g(c), g(d)})/2. For some special cases, see [3]. 3.2 Merging plateaus and removing edges The first step in our process to obtain a “minimal” image representation with the same topological information as the original is to merge plateaus. This way, by contracting adjacent vertices with the same gray value in the primal graph (i.e., merging neighboring regions with same value in the dual), we remove the asymmetry caused by the sign function. See Fig. 2b. After merging all plateaus, a direction can be associated with each edge between different vertices v= uof the primal graph G: (u,v)∈Ehas direction u→viff g(u)>g(v). Proposition 1 [3]After merging plateaus, G\{self-loops}is a directed graph such that: (a) G does not contain directed cycles. (b) Vertices in ¯ G do not increase degrees. An oriented edge (u,v) ∈Eis considered “structurally redundant” if there exists a dual vertex w∈Vbounded by (u,v) and a directed path p(u,v) from uto v. Structurally redundant edges can be removed in G(see Figs. 2c, 3b). Finally, the notion of well-composed configurations can be extended to regions in ¯ Gdue to Prop. 1b. 3.3 Topological category of regions After merging plateaus, in the same way as for pixels, we can define the topological category of a vertex vof Gby considering the edges incident to v. See Figs. 1c and 3a. Following the edges incident to v: •vis a local minimum if it is the head of all the edges incident to it. •vis a local maximum if it is the tail of all the edges incident to it. •vis a doubly singular slope if it has degree two and it is the tail of one of the edges incident to it and the head of the other. •vis a singular slope if it has degree greater than two and it is the tail (resp. head) of exactly one edge incident to it and the head (resp. tail) of the others. •vis a regular slope if vis the tail of the first edges incident to it and the head of the others, clockwise or counterclockwise. •vis a saddle otherwise. Proposition 2 [3]After removing redundant edges, the topological category of the vertices of G may be simplified: Singular slopes may change to doubly singular slopes, and regular slopes to singular slopes (Figs. 2c, 3b and 4b). Local 123
Topology-based image segmentation using LBP pyramids 1165 Fig. 4 The primal graph Gis successively reduced by merging plateaus and (doubly) singular slopes. Merge operations and removal of structurally redundant edges are applied in an alternating fashion. The last image is considered “minimal,” agraph plateaus, bredundant edges, csingular slopes, dminimal graph maxima, minima and saddles are always preserved in the primal graph. After merging plateaus and removing structural redundant edges, the topological category of the vertices is updated. 3.4 Minimal graph representation Further steps in our process to obtain a simplified image with same topological information as the original (minimal representative) should remove topologically redundant information by merging regions in the primal graph. In general, a region obtained after merging slopes around a local maximum (resp. minimum) is not a local maximum (resp. minimum) anymore. Singular slopes make an exception. Merging singular slopes propagates well around local extrema since a local extremum in the surrounding regions often is or becomes a singular slope. However, non-well- composed configurations (corresponding to saddles in the dual graph) can block propagation. This is why we insert dummy regions in non-well-composed configurations. Proposition 3asserts that contracting a singular slope pto avertexqin the primal graph does not change the topological category of q. Proposition 3 [3]Consider a vertex p which is a singular slope in the primal graph. Let E be the set of edges incident to p. Let p be the head (resp. tail) of exactly one edge e ∈E, and it is the tail of the rest. Let q be the tail (resp. head) of e. Then the vertex obtained after contracting p to q (i.e., after merging the two associated regions in the dual graph) inherits the topological category of the region q, i.e., local max, min, saddle or slope. Proposition 4 The result of merging all singular slopes does not depend on the order we merge. Proof Observe that no new singular slope can appear after merging singular slopes, since the topological category of the rest of the vertices remains invariant. But, new structurally redundant edges can appear. Therefore, the removal of structurally redundant edges and merging singular slopes can be repeated until no more reductions are possible. Finally, if regular slopes survive, they may be merged with saddles. On the top of the pyramid local maxima, minima and saddles survive. Regular slopes can remain at the top level of the pyramid. These surviving regular slopes then represent bottlenecks in the image, for example a plateau surrounding several minima and maxima. The number of local maxima, minima and saddles of the original and reduced image coincide (see Fig. 4). Note that after merging a singular slope p, no “corner” adjacent regions with same gray values could become adjacent later since it would mean that pwould have at least two 0s in its LBP code. Besides, as a result after contracting plateaus, the reconstructed LBP code is defined for regions thus having as many bits as adjacent regions. Moreover, after merging all plateaus, the LBP codes are symmetric and the operations “image complement” and “LBP code” for regions are commutative. Finally, observe that after merging all singular slopes, each regular slope has at least two 1s and two 0s in its LBP code. Figure 5shows the minimal graph representation approach for two grayscale images. After merging plateaus and removing redundant edges, (doubly) singular slopes were merged successively in the primal graph. After each merging, redundant edges were removed. Finally, the surviving regular slopes could be merged with saddles. On the tops of these pyramids only local maxima, minima and saddles survive. 4 Segmentation with LBPs LBPs have been used in segmentation approaches, for example by Chen et al. [4] and Heikkilä et al. [11]. However, these approaches use LBP histograms, for which the spatial information of LBPs is lost, thus having the drawback that two, 123
1166 M. Cerman et al. image maxima minima saddles reg. slopes sing. slopes doubly-sing. slopes (b) 109 103 179 625 693 7 (c) 109 103 179 196 971 158 (d) 109 103 179 0 0 0 (f) 134 131 224 359 361 6 (g) 134 131 224 108 404 214 (h) 134 131 224 0 0 0 (a)(b) (c) (d) (e) (f) (g)(h) Fig. 5 Images are reduced by merging plateaus and then removing structurally redundant edges. After removing all (doubly) singular slopes, regular slopes are merged with saddles, aoriginal image1, bplateaus, credundant edges, dminimal graph, eoriginal image2, fplateaus, gredundant edges, hminimal graph visually completely different, images may have the same histogram. Modifications made to the so far proposed approach (Sect. 3.4) in form of attributed vertices and contrastweighted edges allow the definition of texture aware image segmentation algorithms. A first attempt made in this direction was presented in [2]: the “structurally correct image segmentation” (SCIS) algorithm. SCIS is based on LBPs, but does not use histograms. The segmentation builds a combinatorial pyramid (similar as presented in previous sections), while using LBP classes and region contrasts as grouping criteria. This section gives a detailed description of the approach. Note that the topological categories of regions as defined in Sect. 3.3 refer to vertices in the primal graph. Our segmentation algorithm considers topological categories of the dual graph. In the dual graph, vertices correspond to regions in the primal graph, dual edges encode the boundary of the regions and store the LBP information. In any correctly constructed neighborhood graph (of a well-formed image), it is not possible that local extrema occur in the dual graph. The topological categories are therefore limited to plateaus, slopes and saddles in the dual graph. Dual saddles (i.e., saddles in the dual graph) correspond to non-well-composed configurations as defined in Sect. 3.1 and “are moved” to the primal graph by inserting dummy regions. 4.1 Structurally correct image segmentation After removing all dual saddles (equals removal of non-well- composed configurations in the primal graph), merging of the primal plateaus (this equals removing dual edges with contrast 0) and merging all dual doubly singular slopes (equals removal of redundant edges in the primal graph) the dual graph (except for the outer face) only contains regular slopes. SCIS is based on this idea (Algorithm 1). The process of simplifying the structure (line 5–8 in Algorithm 1) works as follows. First, notice that only structurally redundant primal edges are determined and removed in the algorithm (corresponding to a contraction of singular slopes in the dual graph). A property of such redundant edges is that neither of the incident vertices is covered by the other. 123
Topology-based image segmentation using LBP pyramids 1167 Fig. 6 Original image and reduced version with 70 and 97% reduction in number of regions, asegmentation input, b70% reduction, c97 % reduction Therefore, between two vertices uand v, there is always at least one vertex w, such that g(u)<g(w) < g(v) holds. Now, the remaining primal edges are sorted according to their contrast between adjacent regions—note that this contrast is determined in the current SCIS implementation using the CIEDE2000 color distance [28]: In the primal graph, the contrast of an edge (u,v)is given as |g(u)−g(v)|. The primal edge with the lowest contrast is checked first if it can be removed: A representative value for the new vertex obtained after merging the primal vertices is computed as the color mean of all included pixels in the region at base level of the pyramid. Because of this re-calculation of the representative values of newly merged regions, the contrast of incident edges needs to be adapted. If the value for the new vertex satisfies the binary relationships stored at the incident dual edges, then the primal edge is contracted. This process is repeated until a suitable primal edge for merging is found. This way, by merging primal edges with the lowest contrast first, also regions with low dissimilarity are merged first. We denote the graph computed by the SCIS algorithm through removal of redundant edges Gred. The SCIS algorithm preserves the structural correctness of the image, since it skips during contraction all edges included in Gred\G∗ (where G∗is the minimum equivalent graph [17], which does not contain any redundant edge). Therefore, only edges of G∗ are contracted and no cycle is created. Because of the preservation of structural correctness during the segmentation process, lowly textured regions are merged early in the segmentation hierarchy and highly textured regions are merged late. Figure 6shows one input image and two reduced images.1Note that, even with 97% reduction in the number of regions, the fine details in the feathers of the bird are still well visible. Therefore, visual information that is important for humans is preserved even at high levels of reduction. This is also well visible in Fig. 7where the merging history is shown for one image—highly textured regions correspond to bright regions in the merge history as they are merged late in the hierarchy. 1More images and segmentation results can be found at: http://prip. tuwien.ac.at/research/scis_results.zip. Algorithm 1 structurally correct image segmentation (SCIS) input: 2D image output: combinatorial pyramid 1: k:= 0 2: initialize base level Cof combinatorial pyramid 3: C:= remove dual saddles in C 4: C0:= merge plateaus in C 5: repeat 6: k:= k+1 7: simplify structure in current level Ck 8: until Ck=Ck−1 4.2 Internal and external contrast A segmentation of a digital image is a partition of the pixels into homogeneous regions such that adjacent regions are sufficiently distinct. Observe that a pixel is the smallest region and any connected set of pixels is a region. Criteria for homogeneity can be low contrast and variance, similarity in color or texture. Felzenszwalb [6] uses an “internal contrast” as the largest dissimilarity measurement of such a region, while distinctness is measured by the “external contrast” which is the smallest dissimilarity between adjacent regions. They require that the internal contrast is smaller than the external contrast for the segmentation. In the case of our LBP pyramid, we slightly modify the internal contrast similar to the definition in [10]. We first define low-contrast paths through the neighborhood graph of the image. The contrast of an edge is simply the absolute difference between the values of its two end points. The contrast of a path is the contrast between its endpoints divided by its length. In this way, contrasts of paths of different lengths can be compared. The contrast of a dual edge is the same as the corresponding edge in the primal graph. The boundary of a simple region (i.e., a region that does not contain any hole) separates the region from its surrounding. It is a path in the dual graph, and its contrast is the smallest contrast of its edges. We further extend the definition of a low-contrast path to a hierarchical version. In SCIS, a representative value is computed for each region as the color mean of all included 123
1168 M. Cerman et al. Fig. 7 In the merging history, dark regions were merged early and bright regions were merged late, asegmentation input, bmerge history pixels at base level of the pyramid. This re-calculation of the representative values of newly merged regions causes that the contrast of incident edges needs to be adapted. This contrast may increase, stay the same, or decrease. A contraction of an edge at a certain level in the pyramid means that this contraction did not create any cycles and that its contrast was the lowest. For this reason, we will consider the hierarchical contrast of a path to consist of edges at base level with the contrast with which they were later merged at higher levels of the pyramid. With these ingredients, we define the internal and external contrasts for our segmentation. Definition 1 (Internal contrast) The internal contrast of a region is the lowest hierarchical contrast of all paths inside the region connecting any pair of its vertices. Observe that since a region is connected, there is a sequence of neighboring pixels betweenany pair of pixels of the region. Notice that this definition allows edges with higher contrasts inside the region, they can form branches connected to the boundary, but they cannot form cycles disconnecting the inside of the cycle from the outside. Such a cycle would increase the internal contrast of the region. This definition differs from most other criteria of homogeneity by the fact that it is based on (1D) paths and not on properties of regions. Definition 2 (External contrast) The external contrast of a region is the contrast of the boundary of the region at the current level of the pyramid. Theorem 1 All the receptive fields of the SCIS pyramid above plateaus satisfy the condition that the internal contrast of the corresponding region is less than its external contrast. Hence, every level of the pyramid above plateaus forms a segmentation. Proof The equivalent contraction kernel of any receptive field (RF) is a tree spanning the receptive field. Any vertex of the receptive field is connected to any other vertex of the RF by edges of the equivalent contraction kernel (ECK). All edges of the ECK have been contracted before reaching the top of the RF. In SCIS, primal edges are contracted by increasing contrast except in the case when its contraction would reverse the orientation of any adjacent edges. But in this case, the edge is not contracted and cannot be part of the contraction kernel. Edges of a plateau have all zero contrast; hence, they are contracted before any other edges. After all plateaus are reduced to a single vertex, all surviving edges have a higher contrast than the contracted edges. No edge of the boundary has been contracted. They might have been removed by simplification, but this does not disconnect the boundary nor does it decrease the contrast of the boundary. Consequently, the contrast of the boundary of the RF is larger than the internal contrast. Since the above reasoning applies to all levels of the pyramid, any selection of higher level vertices of the RF which partitions the base level forms a segmentation of the underlying image. 5 Experiments For our image segmentation approach (SCIS) presented in Sect. 4, a quantitative evaluation was done on the 100 test images (in grayscale and color) of the Berkley segmentation database [16] and the segmentation results were compared with the results of five other segmentation algorithms [2]: Greedy, IntExtMST, Eff-Graph, Mean-Shift and Turbopixels. Upon comparison with the ground truth segmentations of the Berkley database, the following observations were made: Around 70% of the regions in a medium textured image may be contracted, while perceptually observing only a minimal change in the image. A test image from the Berkeley database of size 481 ×321 =154,401 pixels may be reduced to around 45,000 regions while keeping the most important information (see also Fig. 6). Because of the texture preserving property of our segmentation approach, weakly textured regions are undersegmented in favor of preserving highly textured regions. The highly textured regions consist of a high number of very small con- 123
Topology-based image segmentation using LBP pyramids 1169 Fig. 8 Comparative plot of all algorithms for the GCE and the PRI metric for color images for regions in the interval [0, 1000] nected components, whereas the weakly textured regions are merged very early and generally consist of a few large connected components. For the comparison with the other segmentation approaches, the global consistency error (GCE) and the probabilistic rank index (PRI) were used as metrics. When comparing the maximum GCE error for color images, the SCIS algorithm provides better results than the Greedy and the Eff-Graph algorithms and is on the same level as the Turbopixels algorithm. However, in the case of the PRI error metric, the SCIS excels above all algorithm in terms of a steady high PRI score. The PRI curve for the SCIS algorithm drops faster than for the other algorithms, because of the fact that most regions in SCIS are only a couple of pixels large. Consequently, there are a few very large regions that contribute to the bad evaluation. This way the whole curve is shifted a little bit to the right (also for the GCE curve). Com- 123