How can I identify number of cells in this image?

조회 수: 74(최근 30일)
AAS
AAS 2021년 3월 11일
댓글: AAS 2021년 3월 16일
I would like to count the number of cells in this image.

채택된 답변

Star Strider
Star Strider 2021년 3월 11일
Maybe I’m missing something in your objection to using those example, however this actually appears to work, even with the clusters. It’s not perfect (I douibt if it ever could be), however it appears to me to be acceptably close:
I = imread('AAS image.png');
[T,EM] = graythresh(I);
BW = imbinarize(I,0.4);
[Ctrs,Radi] = imfindcircles(BW(:,:,1), [9 20],'ObjectPolarity','dark', 'Sensitivity',0.925);
figure
imshow(I)
hold on
h = viscircles(Ctrs,Radi);
hold off
title(sprintf('Showing %d Detected Cells',numel(Radi)))
producing:
.
  댓글 수: 3
Mohammad Sami
Mohammad Sami 2021년 3월 11일
One way can be to use the built in matlab apps like color thresholder to figure out the thresholds you need.

댓글을 달려면 로그인하십시오.

추가 답변(1개)

Image Analyst
Image Analyst 2021년 3월 11일
I would first just threshold to exclude the background produce a binary image, and then label the blobs. Then identify blobs which are just single blobs - not touching others. Then get the average area of those. Then sum the binary image and divide by the average area. It should be reasonably accurate, expecially considering the count will vary a lot as the field of view moved or cells enter and leave the field of view. See my Image Segmentation Tutorial in my File Exchange for a demo.
  댓글 수: 1
AAS
AAS 2021년 3월 16일
This is a great idea. Thank you!!

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by