I am trying to find the size of the biggest cluster and the dimension of it. Is the code that I am using gives the size of the biggest cluster. On the other words, is the size of the biggest cluster,the number of pixels in the cluster? Then how to find the dimension of the biggest cluster?
A=rand(100);A=A<.5connected_comp=bwconncomp(A,4);cluster_size=cellfun(@numel,connected_comp.PixelIdxList)[biggest,idx] = max(numPixels)
Best Answer