Connected-component labeling

Connected-component labeling with 8-connectivity.
1.1K Downloads
Updated 10 Feb 2014

View License

This function is partly based on the two-pass algorithm, described here:

http://en.wikipedia.org/wiki/Connected-component_labeling

I did not make use of the disjoint data set structure (at least that I am aware of) to connect the linked labels.

The same functionality is available in the image processing toolbox as the function bwlabel, but this function can be useful for those who want to study the implementation of the algorithm, or those who do not have access to the toolbox.

Cite As

André Ødegårdstuen (2024). Connected-component labeling (https://www.mathworks.com/matlabcentral/fileexchange/45480-connected-component-labeling), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Recognition, Object Detection, and Semantic Segmentation in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0