Lably
Skip to content

Connected-component labeling

Algorithmic application of graph theory

  • 12 min read
  • 7 chapters

Related on Lably

Through Heuristic, Computer vision and Region

Connected-component labeling is used in computer vision to detect connected regions in binary digital images, although color images and data with higher dimensionality can also be processed. When integrated into an image recognition system or human-computer interaction interface, connected component labeling can operate on a variety of information. Blob extraction is generally performed on the resulting binary image from a thresholding step, but it can be applicable to gray-scale and color images as well. Blobs may be counted, filtered, and tracked.

Blob extraction is related to but distinct from blob detection.

Overview

A graph, containing vertices and connecting edges, is constructed from relevant input data. The vertices contain information required by the comparison heuristic, while the edges indicate connected 'neighbors'. An algorithm traverses the graph, labeling the vertices based on the connectivity and relative values of their neighbors. Connectivity is determined by the medium; image graphs, for example, can be 4-connected neighborhood or 8-connected neighborhood.

Following the labeling stage, the graph may be partitioned into subsets, after which the original information can be recovered and processed .

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Computing and communication