Function fft2d::slice::ifft_2d

source ·
pub fn ifft_2d(width: usize, height: usize, img_buffer: &mut [Complex<f64>])
Expand description

Compute the inverse 2D Fourier transform to get back an image buffer.

After the inverse 2D FFT has been applied, the image buffer contains the transposed of the inverse Fourier transform since one transposition is needed to process the columns of the buffer.

The transformation is not normalized. To normalize the output, you should multiply it by 1 / sqrt( width * height ). If this is used as a pair of FFT followed by inverse FFT, is is more efficient to normalize only once by 1 / (width * height) at the end.

Remark: an allocation the size of the image buffer is performed for the transposition, as well as scratch buffers while performing the rows and columns FFTs.