Subpixel Edge Detection Python