scipy.misc.imrotate¶
-
scipy.misc.
imrotate
(*args, **kwds)¶ imrotate
is deprecated!imrotate
is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Useskimage.transform.rotate
instead.Rotate an image counter-clockwise by angle degrees.
This function is only available if Python Imaging Library (PIL) is installed.
Warning
This function uses
bytescale
under the hood to rescale images to use the full (0, 255) range ifmode
is one ofNone, 'L', 'P', 'l'
. It will also cast data for 2-D images touint32
formode=None
(which is the default).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
- ‘lanczos’ : for lanczos
- ‘cubic’ : for bicubic
- ‘bicubic’ : for bicubic
Returns: imrotate : ndarray
The rotated array of image.