Get centers and radii of circles in a figure

1 view (last 30 days)
Emily Boylan
Emily Boylan on 19 Oct 2018
Edited: Emily Boylan on 19 Oct 2018
How would I calculate the centers and radii of the circles of a figure in matlab and put them into a table?

Answers (1)

Image Analyst
Image Analyst on 19 Oct 2018
This sounds very very much like your assignment. Is it? If so, read this: http://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-help-on-homework-questions-on-matlab-answers and tag this post as homework.
In the meantime, here is a hint:
props = regionprops(binaryImage, 'Centroid', 'EquivDiameter');
allRadii = [props.EquivDiameter]/2;

Categories

Find more on Data Exploration in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!