Detecting circle in an image
1 view (last 30 days)
Show older comments
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.
Accepted Answer
Image Analyst
on 8 Mar 2012
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 Comments
Image Analyst
on 8 Mar 2012
meanGrayValue = imageArray(row1:row2, col1:col2);
if meanGrayValue < 150
% It has user-written stuff in it
else
% It's just the number alone.
end
More Answers (1)
Sean de Wolski
on 8 Mar 2012
One of R2012a's not-so-hidden gems!
1 Comment
Image Analyst
on 11 Mar 2012
Brett uploaded an app based on that: http://www.mathworks.com/matlabcentral/fileexchange/34365-findcirclesgui
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!