scipy.misc.imrotate¶
- scipy.misc.imrotate(arr, angle, interp='bilinear')[source]¶
Rotate an image counter-clockwise by angle degrees.
Parameters: arr : ndarray
Input array of image to be rotated.
angle : float
The angle of rotation.
interp : str, optional
Interpolation
- ‘nearest’ : for nearest neighbor
- ‘bilinear’ : for bilinear
- ‘cubic’ : cubic
- ‘bicubic’ : for bicubic
Returns: imrotate : ndarray
The rotated array of image.