rotate(input, angle, axes=(1, 0), reshape=True, output=None, order=None, mode='constant', cval=0.0, prefilter=True)¶
Rotate an array.
The array is rotated in the plane defined by the two axes given by the
axesparameter using spline interpolation of the requested order.
- input (cupy.ndarray) – The input array.
- angle (float) – The rotation angle in degrees.
- axes (tuple of 2 ints) – The two axes that define the plane of rotation. Default is the first two axes.
- reshape (bool) – If
reshapeis True, the output shape is adapted so that the input array is contained completely in the output. Default is True.
- output (cupy.ndarray or dtype) – The array in which to place the output, or the dtype of the returned array.
- order (int) – The order of the spline interpolation. If it is not given,
order 1 is used. It is different from
scipy.ndimageand can change in the future. Currently it supports only order 0 and 1.
- mode (str) – Points outside the boundaries of the input are filled
according to the given mode (
'opencv'). Default is
- cval (scalar) – Value used for points outside the boundaries of
the input if
mode='opencv'. Default is 0.0
- prefilter (bool) – It is not used yet. It just exists for compatibility
The rotated input.