scipy.signal.

sepfir2d#

scipy.signal.sepfir2d(input, hrow, hcol)#

Convolve with a 2-D separable FIR filter.

Convolve the rank-2 input array with the separable filter defined by the rank-1 arrays hrow, and hcol. Mirror symmetric boundary conditions are assumed. This function can be used to find an image given its B-spline representation.

Parameters:
inputndarray

The input signal. Must be a rank-2 array.

hrowndarray

A rank-1 array defining the row direction of the filter. Must be odd-length

hcolndarray

A rank-1 array defining the column direction of the filter. Must be odd-length

Returns:
outputndarray

The filtered signal.

Notes

Array API Standard Support

sepfir2d 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 Support for the array API standard for more information.

Examples

Examples are given in the tutorial.