Connected-component labeling
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 (2026). Connected-component labeling (https://www.mathworks.com/matlabcentral/fileexchange/45480-connected-component-labeling), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
