connected component labeling like bwlabel
Version 1.0.0.0 (1.61 KB) by
michael scheinfeild
recursive function of labeling binary image 4 connected
this function start with one pixel and if it is 1 it finds all neighboors in the 4 connected and give them same label then for each call itself
some issue in big images it is limited to recursion of 500 , so i supose for implementing it in c++ may cause for some stack overflow , one solution is just to resize the image to smaller image use imresize , enjoy
Cite As
michael scheinfeild (2026). connected component labeling like bwlabel (https://www.mathworks.com/matlabcentral/fileexchange/38010-connected-component-labeling-like-bwlabel), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
Find more on Region and Image Properties in Help Center and MATLAB Answers
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 |