Connected component

Connected component labeling like bwlabel in matlab

The following Matlab project contains the source code and Matlab examples used for connected component labeling like bwlabel. 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 .
Subscribe to RSS - Connected component