cupyx.scipy.ndimage.zoom(input, zoom, output=None, order=None, mode='constant', cval=0.0, prefilter=True)

Zoom an array.

The array is zoomed using spline interpolation of the requested order.

  • input (cupy.ndarray) – The input array.
  • zoom (float or sequence) – The zoom factor along the axes. If a float, zoom is the same for each axis. If a sequence, zoom should contain one value for each axis.
  • 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.ndimage and 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 ('constant', 'nearest', 'mirror' or 'opencv'). Default is 'constant'.
  • cval (scalar) – Value used for points outside the boundaries of the input if mode='constant' or mode='opencv'. Default is 0.0
  • prefilter (bool) – It is not used yet. It just exists for compatibility with scipy.ndimage.

The zoomed input.

Return type:

cupy.ndarray or None