how to count big cell only?
4 ビュー (過去 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!