フィルターのクリア

how to find center point coordinates of circles in an image file

10 ビュー (過去 30 日間)
Suleyman Deveci
Suleyman Deveci 2013 年 3 月 26 日
Dear friends
I need to find out the center point coordinates of circles in an image file. I read that hough transformation method can find the circles but my attempts to use this function was unsuccessful.
Here is a sample image file which has four white circular shape on it.
I appreciate very much for your help.
Regards
Suleyman

採用された回答

Anand
Anand 2013 年 3 月 26 日
You can use imfindcircles to find the circles. The function returns circle centers and radii. If the circles can't be found using default parameters, look at this post by Steve Eddins and Spandan Tiwari for some insight into adjusting parameters:
A first pass:
%read image
im = imread('http://kimyamuhendisi.com/images/pipe.jpg');
%call imfindcircles
[c,r] = imfindcircles(im,[10,20]);
%display detected circles
imshow(im);viscircles(c,r);
  4 件のコメント
Suleyman Deveci
Suleyman Deveci 2013 年 3 月 28 日
Thanks again.

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2013 年 3 月 26 日
Alternatively you could threshold, and call regionprops() asking for the EquivDiameter and Centroid, as shown in my Image Segmentation Tutorial.

Community Treasure Hunt

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

Start Hunting!

Translated by