Multi-dimensional image processing

CuPy provides multi-dimensional image processing functions. It supports a subset of scipy.ndimage interface.


cupyx.scipy.ndimage.affine_transform Apply an affine transformation.
cupyx.scipy.ndimage.map_coordinates Map the input array to new coordinates by interpolation.
cupyx.scipy.ndimage.rotate Rotate an array.
cupyx.scipy.ndimage.shift Shift an array.
cupyx.scipy.ndimage.zoom Zoom an array.

OpenCV mode

cupyx.scipy.ndimage supports additional mode, opencv. If it is given, the function performs like cv2.warpAffine or cv2.resize.