Well, I'm trying to apply canny edge to the image because the brightness that is contained in the pupil impairs the result obtained because to have an edge with cv2.Canny()
or feature.canny()
needs that there is a continuity of it. As I have to apply media filter it gets even worse because that region of brightness increases!
- How to remove pupil brightness?
Code to extract border:
from skimage import feature
from skimage.io import imread
import cv2
img = imread("../olho.jpg",as_gray=True)
img = cv2.blur(img,(5,5))
borda = feature.canny(img)
Original picture with noise:
Imagewanted(madeinpaint!!):
Obtainededges(withaholeinthelocationoftheglowandtheedgesoftheglow):
I need these right edges because after the extraction I will apply Hough transform to find the circles