ifft#

kikuchipy.pattern.ifft(fft_pattern: ndarray, shift: bool = False, real_fft_only: bool = False, **kwargs) ndarray[source]#

Compute the inverse Fast Fourier Transform (IFFT) of an FFT of an EBSD pattern.

Very light wrapper around routines in scipy.fft. The routines are wrapped instead of used directly to accommodate easy setting of shift and real_fft_only.

Parameters:
fft_pattern

FFT of EBSD pattern.

shift

Whether to shift the zero-frequency component back to the corners of the spectrum (default is False).

real_fft_only

If True, the discrete IFFT is computed for real input using scipy.fft.irfft2(). If False (default), it is computed using scipy.fft.ifft2().

**kwargs

Keyword arguments pass to scipy.fft.ifft().

Returns:
pattern

Real part of the IFFT of the EBSD pattern.