Find a round pattern in an image
Show older comments
Hello,
I apologize in advance if a similar question has already been asked and answered.
I am currently processing 2-D images. The images have been converted into matrices. My objective is to identify a round patterns in these images so I can define a "center" or centroid for each of my images. What I consider to be the center is a point of high intensity at the center of a zone of decreasing intensity.
Here are to links to two sample pictures:
As you can see the "center" I am looking for is quite clear in the second image However in the first image the presence of a zone of high intensity on the left makes it difficult to find the point which I consider to be the center of my pattern.
What I have already tried:
Looking for the maximum value of the matrice (works most of the time but not all).
Using "center of mass" algorithms.
Attempting to fit a 2-D gaussian.
Looking at the gradient matrix to find maxima.
Thank you in advance for any answer and please tell me if there is anything I can do to clarify my question.
Accepted Answer
More Answers (1)
Clemens
on 4 Jul 2011
1 vote
Sounds like a textbook example for hough transform.
Look at: http://en.wikipedia.org/wiki/Hough_transform Especially scroll down - there is "Sample MATLAB code for Xie and Ji's ellipse detection method" - maybe you can directly use it.
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!