how to count big cell only?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Dishant Arora
2014년 3월 10일
편집: Dishant Arora
2014년 3월 10일
use bwareaopen to remove objects smaller than certain number of pixels.
BW2 = bwareaopen(BW, thresh);
[~, numObjects] = bwlabel(BW2,4);
댓글 수: 2
추가 답변 (1개)
Image Analyst
2014년 3월 25일
See my code to extract the largest blob, attached below in blue. In there, there is a general purpose function I wrote that can take the N largest or smallest blobs in a binary image.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!