cell counting Matlab code?
이전 댓글 표시
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.
답변 (3개)
Sean de Wolski
2013년 5월 23일
CC = bwconncomp(BWImage)
CC.NumObjects
Where BWImage is the black and white image with each cell white.
Image Analyst
2013년 5월 23일
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
2013년 5월 24일
0 개 추천
댓글 수: 1
Image Analyst
2013년 5월 24일
Well then you didn't do the segmentation step in your process very effectively. What did you do?
카테고리
도움말 센터 및 File Exchange에서 Data Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!