我使用python3.6和scipy。
是否有scipy.ndimage的替代函数旋转,它们将如何被调用?
我需要一个函数,它比scipy.ndimage.rotate的性能更好,而且他们还使用了插值。
import scipy.ndimage as sn
sn.rotate(array, theta, reshape=False, order=3)这只是一个例子。
提前谢谢你!
发布于 2017-10-01 01:25:17
对于旋转图像,有许多选择。以下是几个例子:
cv2.rotatefrom PIL import Image img = Image.open("image.png") rotated_img2 = img.rotate(10) # angle = 10scipy.ndimage.interpolation.rotate,还有另一个函数。skimage)也有自己的旋转功能:skimage.transform.rotate。https://stackoverflow.com/questions/46490594
复制相似问题