how to segment a person's iris?

good, I have a concern, what happens is that a job asks me to segment the iris of specific images, the segmentation consists of finding the outer edge of the iris and highlighting it with a green circle and then finding the inner edge of the pupil and highlight it with a red circle.
I attach how the segmentation should be displayed

 Accepted Answer

Image Analyst
Image Analyst on 16 Jun 2020
Is your image a color image, or just that monochrome image? If color, mask away the skin. I'd probably also do a morphological closing to get rid of eyelashes. Then see if you can threshold in HSV colorspace what's left, which should be the iris, assuming the white of the eye is fairly neutral colored. Or you can try imfindcircles().

More Answers (1)

Community Treasure Hunt

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

Start Hunting!