Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a generalised Hough Transform function or a least a function to locate circles (position of center and radius) in a image. There is the standard Hough line search function (ImageLines), which only implements the basic Hough transform to detect lines.

share|improve this question
please take a look at this link… – s.s.o Apr 24 '13 at 8:11
or this? – cormullion Apr 24 '13 at 8:21
@s.s.o: A hough transform can find circles even if they're not connected components (and circles detected e.g. using EdgeDetect are often not connected). But I think MMA has no built in generalized or circle hough transform. It would be relatively straightforward (but slow) to simulate it by convolving the image with circles with different radii. – nikie Apr 24 '13 at 10:15
@nikie yes your are right. I was trying to help the or part of the question asking 'a least a function to locate circles'. An alternative could be using java libraries available on the internet e.g.… – s.s.o Apr 24 '13 at 10:23
Thanks for the hints. The answers point to good solutions for the circle search as long as the circles are more or less complete. My question was also oriented to person who eventually may already have implemented a performant generalised Hough Transform. Any trial that I made was indeed awfully slow. – Lorenz Mueller Apr 26 '13 at 14:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.