Pupil Detection using Hough Transform

3 views (last 30 days)
Hi guys,
I would like to ask is there an accurate Hough transform source code available that can detect pupil/circle and draw a circle around the pupil and return the radius as well?
I have tried several methods but they cannot detect the pupil accurately, which results in more than one circle being drawn.
Looking forward to your experienced help. Thank you!

Accepted Answer

David Young
David Young on 19 Dec 2011
It's hard to help when you don't say what you have tried so far. The HT contributions on the file exchange should work - have you tried, for example this one?

More Answers (1)

Ivan
Ivan on 23 Dec 2011
Hi David, I just saw your code, it was brilliant. The problem with my current code is that it is too lengthy and processing time takes much longer than yours. And it was not as sensitive as yours.
Thank you so much your prompt reply. I have a question which I replied on your page. Maybe i can post it here as well.
Here is a picture for clearer understanding..
If i were to set the Npeaks to 5, it would mean that 5 circles will be detected. However, I would like only one of the circle. Is there a way i can correct your code to eliminate the rest of the circles, or do I have to add on to the code? Thank you once again!
  1 Comment
Abdullah
Abdullah on 4 May 2017
Hello, Why this code can work on some images but cannot work on other images?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!