Thanks to visit codestin.com
Credit goes to docs.rs

fft_convolve2

Function fft_convolve2 

Source
pub fn fft_convolve2<T, F>(
    signal: &Array<T>,
    filter: &Array<F>,
    mode: ConvMode,
) -> Array<T>
where T: HasAfEnum, F: HasAfEnum,
Expand description

2d convolution using fast-fourier transform

§Parameters

  • signal is the input signal
  • filter is the signal that shall be used for convolution operation
  • mode indicates if the convolution should be expanded or not(where output size equals input). It takes values of type ConvMode

§Return Values

Convolved Array