Multi-dimensional image processing

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

Interpolation

cupyx.scipy.ndimage.affine_transform

Apply an affine transformation.

cupyx.scipy.ndimage.convolve

Multi-dimensional convolution.

cupyx.scipy.ndimage.correlate

Multi-dimensional correlate.

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.

Measurements

cupyx.scipy.ndimage.label

Labels features in an array.

cupyx.scipy.ndimage.mean

Calculates the mean of the values of an n-D image array, optionally

cupyx.scipy.ndimage.standard_deviation

Calculates the standard deviation of the values of an n-D image array, optionally at specified sub-regions.

cupyx.scipy.ndimage.sum

Calculates the sum of the values of an n-D image array, optionally

cupyx.scipy.ndimage.variance

Calculates the variance of the values of an n-D image array, optionally at specified sub-regions.

OpenCV mode

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