how to Counting circular objects ?

3 ビュー (過去 30 日間)
menna gamal
menna gamal 2015 年 3 月 28 日
コメント済み: Image Analyst 2015 年 3 月 28 日
i work on Blood cell image to detect and count Red Blood Cell i use CircularHough_Grd Function to detecting circles i want to count circles which detected from CircularHough_Grd
i think to make for loop and save the detected elements in it and count but i can't do this. my image after detection : http://detectionrbc.blogspot.com/
this code which draw circles on detected objects in image : i want to count this circles which draw????
hold on;
plot(circen(:,1), circen(:,2), 'r+');
for ii = 1 : size(circen, 1)
rectangle('Position',[circen(ii,1) - cirrad(ii), circen(ii,2) - cirrad(ii),
2*cirrad(ii), 2*cirrad(ii)],'Curvature', [1,1], 'edgecolor', 'b', 'linewidth', 1.5);
end
hold off;

採用された回答

Image Analyst
Image Analyst 2015 年 3 月 28 日
Exactly what does "save the detected elements in it" mean? Do you want to save the image with the overlays, like you can with export_fig()? Or do you want to save the variables to a text file with fprintf() or a mat file with save()? Please clarify.
I edited your post to include your image. Next time, you can do it yourself with the green and brown frame icon when you're making your question up.
  2 件のコメント
menna gamal
menna gamal 2015 年 3 月 28 日
i want to counting this circles and print the number of the circles
Image Analyst
Image Analyst 2015 年 3 月 28 日
fprintf('The number of circles is %d.\n', size(circen, 1));

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBiomedical Imaging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by