scipy.misc.imrotate

scipy.misc.imrotate(arr, angle, interp='bilinear')

Rotate an image counter-clockwise by angle degrees.

Parameters :

arr : nd_array

Input array of image to be rotated.

angle : float

The angle of rotation.

interp : str, optional

Interpolation

Returns :

imrotate : nd_array

The rotated array of image.

Notes

Interpolation methods can be:
  • ‘nearest’ : for nearest neighbor
  • ‘bilinear’ : for bilinear
  • ‘cubic’ : cubic
  • ‘bicubic’ : for bicubic

Previous topic

scipy.misc.imresize

Next topic

scipy.misc.imsave

This Page