moved call to img_as_float to the getCorners function