Get centers and radii of circles in a figure
1 次查看(过去 30 天)
显示 更早的评论
How would I calculate the centers and radii of the circles of a figure in matlab and put them into a table?
0 个评论
回答(1 个)
Image Analyst
2018-10-19
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;
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!