how to segment a person's iris?

20 views (last 30 days)
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().
  2 Comments
Carlos Conrado
Carlos Conrado on 16 Jun 2020
No, only grayscale images

Sign in to comment.

More Answers (1)

Jose Luis Lopez Diaz
Jose Luis Lopez Diaz on 26 Nov 2021
gift your code plis

Community Treasure Hunt

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

Start Hunting!