scipy.misc.imrotate¶
-
scipy.misc.imrotate(*args, **kwds)¶ imrotateis deprecated!imrotateis deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Useskimage.transform.rotateinstead.Rotate an image counter-clockwise by angle degrees.
This function is only available if Python Imaging Library (PIL) is installed.
Warning
This function uses
bytescaleunder the hood to rescale images to use the full (0, 255) range ifmodeis one ofNone, 'L', 'P', 'l'. It will also cast data for 2-D images touint32formode=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.
