在Numpy中旋转图像数组

我有一个二维数组,代表可以使用matplotlib中的imshow()命令查看的图像的值。 我想旋转这个数组的值(“旋转图像”),并没有找到一种方法来使用一个典型的NxN数组。 有人知道怎么做吗?

谢谢你的时间


如何scipy.ndimage.interpolation.rotate()


你应该可以在数组上使用rot90来旋转它,然后imshow。

链接地址: http://www.djcxy.com/p/48369.html

上一篇: Rotating an image array in Numpy

下一篇: Numpy Index values for each element in 3D array