The moose likes Java in General and the fly likes Circle Hough Transform Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Circle Hough Transform" Watch "Circle Hough Transform" New topic

Circle Hough Transform

Rich Midwinter

Joined: Jan 06, 2004
Posts: 4
Can anyone show me how to take a BufferedImage in Java (something I've already done previous image processing on, blurring, edge detect, etc) and use a circle Hough Transform to locate the center points of a given number of circles at a set radius?

Once that's done, could anyone explain how to apply it at different given radii and then work out which circles are the 'clearest' from the 'accumulator'(?) table?

Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Rich UK,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

Is "UK" really your last name? If not, please use something else.

Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Rich Midwinter

Joined: Jan 06, 2004
Posts: 4
That help?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Maybe this would help.

[Jess in Action][AskingGoodQuestions]
Rich Midwinter

Joined: Jan 06, 2004
Posts: 4
Thanks for the reply...

I've had trouble slimming it down to the core parts - things like it uses a MediaTracker which requires a 'component' which seems to mean I need a GUI of some variety to start with.

I'd like to gut the MediaTracker code out anyway because I have a BufferedImage I want to start with, but I can't seem to do that without breaking the code.

It's all designed to be an applet, painting results to the screen, etc... and I just haven't been able to adapt it without breaking it every time!

I have used it to test on my prepared images by first saving them to disk and then using it though - and the results are superb which is really frustrating!
I agree. Here's the link:
subject: Circle Hough Transform
It's not a secret anymore!