Bounding circle for objects in binary image?
古いコメントを表示
Can anyone suggest a way to draw bounding circles around labeled objects in a binary image?
I have some irregularly shaped objects. Rather than finding the centroids of the objects themselves, I would like to find the centroids of the smallest circle that will enclose the objects. Contact between the bounding circle and the object should be maximized.
Thanks, Heidi
採用された回答
その他の回答 (1 件)
Image Analyst
2023 年 2 月 27 日
See the min bounding circle here:
Just pass the coordinates of your blob mask into it. You can get the x,y of the binary image like this, assuming you have just one blob in the mask
[y, x] = find(mask);
カテゴリ
ヘルプ センター および File Exchange で Region and Image Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
