scipy.signal.

cspline2d#

scipy.signal.cspline2d(signal, lamb=0.0, precision=-1.0)[source]#

Coefficients for 2-D cubic (3rd order) B-spline.

Return the third-order B-spline coefficients over a regularly spaced input grid for the two-dimensional input image.

Parameters:
signalndarray

The input signal.

lambfloat

Specifies the amount of smoothing in the transfer function.

precisionfloat

Specifies the precision for computing the infinite sum needed to apply mirror-symmetric boundary conditions.

Returns:
outputndarray

The filtered signal.

Notes

Array API Standard Support

cspline2d has support for Python Array API Standard compatible backends in addition to NumPy. The following combinations of backend and device (or other capability) are supported.

Library

CPU

GPU

NumPy

n/a

CuPy

n/a

PyTorch

JAX

⚠️ no JIT

Dask

⚠️ computes graph

n/a

See Support for the array API standard for more information.