ShiftImage

Shifts an image using the Fourier shift theorem.
3.2K Downloads
Updated 25 Nov 2002

No License

IMG_SHIFTED = SHIFTIMAGE(IMG, FRAC_DELTAX, FRAC_DELTAY);

Shifts the image IMG using the Fourier shift theorem by the Field-of-view (FOV) fractions FRAC_DELTAX and FRAC_DELTAY.

The fraction is relative to the size of the image such that a value of 1.0 shifts the image back to where it started. Shift fractions outside this range will wrap around to the corresponding shift within the range.

The shift is performed using Fourier sinc interpolation, i.e. the Fourier shift theorem, via simple phase adjustments in the frequency domain. This may lead to Gibbs phenomena.

Cite As

Edward Brian Welch (2024). ShiftImage (https://www.mathworks.com/matlabcentral/fileexchange/2495-shiftimage), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

Please change category to "Image Processing". I think more people will find it there.

thank you,
E. Brian Welch