connected component labeling like bwlabel

recursive function of labeling binary image 4 connected
1.5K Downloads
Updated 5 Sep 2012

View License

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 (2024). 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 Linux

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