measure diameter of circle

1 Ansicht (letzte 30 Tage)
fauzi rachman
fauzi rachman am 24 Aug. 2017
Beantwortet: dbmn am 24 Aug. 2017
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
  2 Kommentare
KSSV
KSSV am 24 Aug. 2017
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
Adam am 24 Aug. 2017
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?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

dbmn
dbmn am 24 Aug. 2017
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).
> If you for example use the Matlab-built in imfindcircles it should give you something like
A = imread('coins.png');
imshow(A)
[centers, radii, metric] = imfindcircles(A,[15 30]);
viscircles(centersStrong5, radiiStrong5,'EdgeColor','b');

Community Treasure Hunt

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

Start Hunting!

Translated by