To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I have image with different cell size but I want Count the number of big cells only!!
I try this code:
A = imread ('cell.png'); level=graythresh(A); I=im2bw(A,level); [labeled,numObjects]=bwlabel(I,4) numObjects = 26
No products are associated with this question.
use bwareaopen to remove objects smaller than certain number of pixels.
BW2 = bwareaopen(BW, thresh); [~, numObjects] = bwlabel(BW2,4);