I need to find the edges of the iris, the input images that I use are not a fully rounded iris, sometimes it can be covered with an eyelid. I found a summary of the magazine article to find the iris, even covered with an eyelid. However, I was stuck on one of the steps. Again, this is because only a summary, and I can not find the full text of this article.
Here, where I am stuck, I have an image, and this is already implied by detecting vertical snapping. I have an image, here is the image:

And this image after applying vertical edge detection:

I need to remove all edges except the edge of the iris (red edge).

My expected result should look like this:

Note. Some images may have only the left or right edges of the pupil, as shown above, but some images may have left and right edges for the pupil.
In my opinion, there are two ways to get ribs.
Remove the horizontal edges, since the edges of the pupil are vertical. But I do not know how to remove horizontal edges, and its not very horizontal lines, its meandering horizontal lines.
Find the longest edges in the image (I also donβt know which algorithm will find the longest edges).
Which one is the right way to solve my problem? or not both options above?
If you know the search method for incompletely rounded objects, especially for the iris, please tell me, this makes my project easier.
source share