Skip to main content

Module fft_convolution

Module fft_convolution 

Source
Expand description

FFT-based convolution, similar to scipy.signal.fftconvolve.

Convolution in the time domain is multiplication in the frequency domain, so a length-N signal convolved with a length-M kernel costs O((N + M) log(N + M)) instead of O(N M). The 1D routine works for any IsAnalytic sample type (real or complex); the 2D routine works on real images and is the basis for frequency-domain image filtering.

See the book entry Convolution and correlation.

Functionsยง

fft_convolve
1D convolution of in1 and in2 computed with FFTs.
fft_convolve_2d
2D convolution of real images computed with FFTs.