Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 702
Sebastian De Pascuale Avatar asked Jul 05 '11 21:07

Sebastian De Pascuale


1 Answers

How about scipy.ndimage.interpolation.rotate()?

like image 99
Luke Avatar answered Oct 04 '22 04:10

Luke