measure diameter of circle
2 次查看(过去 30 天)
显示 更早的评论
Hi, I have project to measure diameter of microbubble. I succeed to detect circle but have no idea to measure diameter. the example is like below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166854/image.jpeg)
2 个评论
KSSV
2017-8-24
In the above bar plot..xaxis is diameter....already you have the diameters in hand....and when you get circles..it comes with radius or diameter information...
Adam
2017-8-24
Surely if you have already detected the circles it isn't hard to get their diameters? What format do you have the detected circles in?
回答(1 个)
dbmn
2017-8-24
As KSSV and Adam suggested, you should already have most Information readily available when you were able to detect the circles (circles are usually characterized by a parameter for center and radius).
A = imread('coins.png');
imshow(A)
[centers, radii, metric] = imfindcircles(A,[15 30]);
viscircles(centersStrong5, radiiStrong5,'EdgeColor','b');
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!