Rotating an image array in Numpy
I have a 2D array that represents the values of an image that can be viewed with the imshow() command in matplotlib. I would like to rotate the values of this array ("Rotate the image") and have not found a way to do so with a typical NxN array. Anyone know how to do this?
Thanks for your time
如何scipy.ndimage.interpolation.rotate()
?
你应该可以在数组上使用rot90来旋转它,然后imshow。
链接地址: http://www.djcxy.com/p/48370.html上一篇: Matplotlib保存imshow数组
下一篇: 在Numpy中旋转图像数组