Pupil Detection using Hough Transform

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!

2 Commenti

i want your code
I request you to send me the code

Accedi per commentare.

 Risposta accettata

David Young
David Young il 19 Dic 2011

0 voti

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?

Più risposte (1)

Ivan
Ivan il 23 Dic 2011

0 voti

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 Commento

Hello, Why this code can work on some images but cannot work on other images?

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by