cupyx.scipy.ndimage.spline_filter

cupyx.scipy.ndimage.spline_filter(input, order=3, output=<class 'numpy.float64'>, mode='mirror', *, allow_float32=False)

Multidimensional spline filter.

Parameters
  • input (cupy.ndarray) – The input 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.

  • output (cupy.ndarray or dtype, optional) – The array in which to place the output, or the dtype of the returned array. Default is numpy.float64.

  • mode (str) – Points outside the boundaries of the input are filled according to the given mode ('constant', 'nearest', 'mirror' or 'opencv'). Default is 'constant'.

  • allow_float32 (bool) – If True, single-precision inputs will use single precision computation. If False, double precision is used. This option is not present in SciPy.

Returns

The result of prefiltering the input.

Return type

cupy.ndarray

See also

scipy.spline_filter1d()