{ } Raw JSON

bundles / scipy latest / scipy / signal / _spline_filters / qspline2d

function

scipy.signal._spline_filters:qspline2d

source: /scipy/signal/_spline_filters.py :437

Signature

def   qspline2d ( signal lamb = 0.0 precision = -1.0 )

Summary

Coefficients for 2-D quadratic (2nd order) B-spline.

Extended Summary

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

Parameters

input : ndarray

The input signal.

lamb : float

Specifies the amount of smoothing in the transfer function.

precision : float

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

Returns

output : ndarray

The filtered signal.

Notes

Array API Standard Support

qspline2d has experimental support for Python Array API Standard compatible backends in addition to NumPy. Please consider testing these features by setting an environment variable SCIPY_ARRAY_API=1 and providing CuPy, PyTorch, JAX, or Dask arrays as array arguments. The following combinations of backend and device (or other capability) are supported.

====================  ====================  ====================
Library               CPU                   GPU
====================  ====================  ====================
NumPy                 ✅                     n/a                 
CuPy                  n/a                   ✅                   
PyTorch               ⛔                     ⛔                   
JAX                   ⛔                     ⛔                   
Dask                  ⛔                     n/a                 
====================  ====================  ====================

See dev-arrayapi for more information.

Aliases

  • scipy.signal.qspline2d