Detecting circle in an image

Hi, I would like to know is it possible to detect the circles in the image below using MATLAB's Image Processing Toolbox. The circles are imperfect and the radius are varied. Anyone can help me with this? Thanks in advance.

댓글 수: 1

Jan
Jan 2012년 3월 8일
I've included the picture directly.

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

 채택된 답변

Image Analyst
Image Analyst 2012년 3월 8일

0 개 추천

I'd probably just sum the image horizontally and vertically to detect the grid locations and then process the inside of each grid location (each "tile") to see if the mean gray level is less than some number. That's what I think would be the simplest approach.

댓글 수: 2

Natsu
Natsu 2012년 3월 8일
Sorry for the trouble, but can you show me how to begin doing this with MATLAB? How can I calculate the pixel value of each tile separately?
Image Analyst
Image Analyst 2012년 3월 8일
meanGrayValue = imageArray(row1:row2, col1:col2);
if meanGrayValue < 150
% It has user-written stuff in it
else
% It's just the number alone.
end

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

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2012년 3월 8일

0 개 추천

One of R2012a's not-so-hidden gems!

댓글 수: 1

Image Analyst
Image Analyst 2012년 3월 11일
Brett uploaded an app based on that: http://www.mathworks.com/matlabcentral/fileexchange/34365-findcirclesgui

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

Community Treasure Hunt

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

Start Hunting!

Translated by