Use float32 images instead of byte to improve the edge detection precision.