Minimum spanning tree-based segmentation

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Image segmentation strives to partition a digital image into regions of pixels with similar properties, e.g. homogeneity.[1] The higher-level region representation simplifies image analysis tasks such as counting objects or detecting changes, because region attributes (e.g. average intensity or shape[2]) can be compared more readily than raw pixels.

Motivation for graph-based methods[edit]

To speed up segmentation of large images, the work could be divided among several CPUs. One means of accomplishing this involves splitting images into tiles that are processed independently. However, regions that straddle a tile border might be split up or lost if the fragments do not meet the segmentation algorithm's minimum size requirements. A trivial workaround involves overlapping tiles, i.e. allowing each processor to consider additional pixels around its tile's border. Unfortunately this increases the computational load, since the processors on both sides of a tile boundary are performing redundant work. Also, only objects smaller than the tile overlap are guaranteed to be preserved, which means that long objects such as rivers in aerial imagery are still likely to be split. In some cases, the independent tiles' results can be fused to approximate the true results.[3] An alternative exists in the form of graph-based segmentation methods. The connectivity information inherent to graphs allows performing independent work on parts of the original image, and reconnecting them to yield an exact result as if processing had occurred globally.

From images to graphs[edit]

The possibility of stitching together independent sub-images motivates adding connectivity information to the pixels. This can be viewed as a graph, the nodes of which are pixels, and edges represent connections between pixels. A simple and comparatively space-efficient variant of this is a grid graph, whereby each pixel is connected to its neighbors in the four cardinal directions. Since the pixel neighborship relation is symmetric, the resulting graph is undirected and only half its edges (e.g. each pixel's eastern and southern neighbor) need be stored. The final step calls for encoding pixel similarity information in edge weights, so that the original image is no longer needed. In the simplest case, edge weights are computed as the difference of pixel intensities.

Minimum spanning tree segmentation algorithms[edit]

A minimum spanning tree (MST) is a minimum-weight, cycle-free subset of a graph's edges such that all nodes are connected. In 2004, Felzenszwalb introduced a segmentation method[4] based on Kruskal's MST algorithm. Edges are considered in increasing order of weight; their endpoint pixels are merged into a region if this doesn't cause a cycle in the graph, and if the pixels are 'similar' to the existing regions' pixels. Detecting cycles is possible in near-constant time with the aid of a disjoint-set data structure.[5] Pixel similarity is judged by a heuristic, which compares the weight to a per-segment threshold. The algorithm outputs multiple disjunct MSTs, i.e. a forest; each tree corresponds to a segment. The complexity of the algorithm is quasi-linear because sorting edges is possible in linear time via counting sort.

In 2009, Wassenberg et al. developed an algorithm[6] that computes multiple independent Minimum Spanning Forests and then stitches them together. This enables parallel processing without splitting objects on tile borders. Instead of a fixed weight threshold, an initial connected-component labeling is used to estimate a lower bound on the threshold, which can reduce both over- and undersegmentation. Measurements show that the implementation outperforms Felzenszwalb's sequential algorithm by an order of magnitude.

In 2017, Saglam and Baykan used Prim's sequential representation of minimum spanning tree and proposed a new cutting criterion for image segmentation.[7] They construct the MST with Prim's MST algorithm using the Fibonacci Heap data structure. The method achieves an important success on the test images in fast execution time.


  1. ^ Haralick, Robert M.; Shapiro, Linda G. (January 1985), "Image segmentation techniques", Computer Vision, Graphics, and Image Processing, 29 (1): 100–132, doi:10.1016/s0734-189x(85)90153-7
  2. ^ Iivarinen, Jukka; Peura, Markus; Särelä, Jaakko; Visa, Ari (1997), "Comparison of combined shape descriptors for irregular objects", in Clark, Adrian F. (ed.), Proceedings of the British Machine Vision Conference 1997, BMVC 1997, University of Essex, UK, 1997, British Machine Vision Association
  3. ^ Chen, Minghua; Pavlidis, Theodosios (1990), "Image seaming for segmentation on parallel architecture", IEEE Transactions on Pattern Analysis and Machine Intelligence, 12 (6): 588–594, doi:10.1109/34.56195
  4. ^ Felzenszwalb, Pedro F.; Huttenlocher, Daniel P. (2004), "Efficient graph-based image segmentation", International Journal of Computer Vision, 59 (2): 167–181, doi:10.1023/B:VISI.0000022288.19776.77
  5. ^ Harfst, Gregory C.; Reingold, Edward M. (2000), "A potential-based amortized analysis of the union-find data structure", SIGACT News, 31 (3): 86–95, doi:10.1145/356458.356463
  6. ^ Wassenberg, Jan; Middelmann, Wolfgang; Sanders, Peter (2009), "An efficient parallel algorithm for graph-based image segmentation", in Jiang, Xiaoyi; Petkov, Nicolai (eds.), Computer Analysis of Images and Patterns, 13th International Conference, CAIP 2009, Münster, Germany, September 2-4, 2009, Proceedings, Lecture Notes in Computer Science, vol. 5702, Springer, pp. 1003–1010, doi:10.1007/978-3-642-03767-2_122
  7. ^ Sağlam, Ali; Baykan, Nurdan Akhan (2017), "Sequential image segmentation based on minimum spanning tree representation", Pattern Recognition Letters, 87: 155–162, doi:10.1016/j.patrec.2016.06.001

External links[edit]