Up/down sample an image/matrix/vector (can be of complex numbers) using the frequency domain.
The matrix/vector should be continuous of a high degree (has continuous derivatives) in order to obtain a reasonable up/down sampling
Speed-up can be achieved if the user up-samples to a near power of 2. no optimization is done inside this code for efficient fft usage.
Documentation is found inside the *.m file.
type "updownsample" for the example
Ohad Gal (2024). updownsample (https://www.mathworks.com/matlabcentral/fileexchange/4658-updownsample), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: fft_upsample
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
I found a linear phase distortion in the output image (only when looking at a complex or real output image), due to spatial misplace of the input image in the fourier domain