cell counting Matlab code?
Ältere Kommentare anzeigen
hi
Could someone help with counting the number of cells that have been segmented in an image. i have segemented the cells and marked the outline of each cell. Now i need to count the number of cells present automatically.
Antworten (3)
Sean de Wolski
am 23 Mai 2013
CC = bwconncomp(BWImage)
CC.NumObjects
Where BWImage is the black and white image with each cell white.
Image Analyst
am 23 Mai 2013
Simply call bwlabel on your segmented image, and it will count them for you. You don't need the outlines that you got from bwboundaries() or bwperim() to do counting.
[labeledImage, numberOfBlobs] = bwlabel(binaryImage);
If you want other measurements (beyond the count), call regionprops():
measurements = regionprops(labeledImage);
chama
am 24 Mai 2013
0 Stimmen
1 Kommentar
Image Analyst
am 24 Mai 2013
Well then you didn't do the segmentation step in your process very effectively. What did you do?
Kategorien
Mehr zu Data Analysis finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!