Bounding circle for objects in binary image?
Show older comments
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
Accepted Answer
More Answers (1)
Image Analyst
on 27 Feb 2023
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);
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!