Detecting and measuring circles

I want to find circles and measure diameter of them. I have a image where the circles have a value of 1 and the background has a value of 0. I would like to do this without any built in functions.

댓글 수: 1

John BG
John BG 2016년 4월 26일
show the image, or part of it, so we can write an answer according to the kind of circles you mention in your question.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2016년 4월 25일

0 개 추천

Well you'll have to write your own version of either imfindcircles() or bwlabel(), and regionprops(). You might need to threshold your image to binarize it. Then, you can find connected components algorithms on the web to do the labeling of your binary image. To get the diameter, sum of the number of pixels in each blob and use the formula for area. Diameter = sqrt(area*4/pi).

댓글 수: 2

P
P 2016년 4월 25일
How would I go about sectioning off each blob from each other?
Image Analyst
Image Analyst 2016년 4월 25일
I don't even know what that means. Do you mean split apart, like a watershed transform? Or do you mean connected components labeling? (Google those terms.)

댓글을 달려면 로그인하십시오.

질문:

P
P
2016년 4월 25일

댓글:

2016년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by