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 ofshiftandreal_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 usingscipy.fft.irfft2(). IfFalse(default), it is computed usingscipy.fft.ifft2().- **kwargs
Keyword arguments pass to
scipy.fft.ifft().
- Returns:
patternReal part of the IFFT of the EBSD pattern.