Fast Fourier transforms ofter require use of "fftshift" command.
Here are routines for 1d, 2d and 3d centered Fourier and inverse Fourier transforms which do not require "fftshift" command. These Fourier transforms are for signals whose center is at the origin of coordinate system, as for example a wavefront distribution with its center on the optical axis.
The algorithms for these Fourier transforms are described in
Tatiana Latychevskaia and Hans-Werner Fink
"Practical algorithms for simulation and reconstruction of digital in-line holograms",
Appl. Optics 54, 2424 - 2434 (2015)
Tatiana Latychevskaia (2021). centered Fourier transforms (https://www.mathworks.com/matlabcentral/fileexchange/55929-centered-fourier-transforms), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!