No BSD License  

Highlights from
ShiftImage

3.5

3.5 | 4 ratings Rate this file 6 Downloads (last 30 days) File Size: 4.35 KB File ID: #2495

ShiftImage

by Edward Brian Welch

 

07 Oct 2002 (Updated 25 Nov 2002)

Shifts an image using the Fourier shift theorem.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 5.2 (R10)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
20 Apr 2004 M C

This is whack

18 Nov 2004 B. epo

very great! working well.
just if the shift is '0', the shift should not be performed (to save computing time)...

05 Feb 2005 Aalok Jariwala

good, as a student i am learning and it is too early for me to comment strongly on it.

07 May 2008 Jonathan Comeau

Works great for my application! However, I think line 61 should be oydim+1 instead of oxdim+1. As it stands now this small mistake leads to a matlab error when the input image x-dimension is even and the y-dimension is odd.

Please login to add a comment or rating.
Updates
25 Nov 2002

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

thank you,
E. Brian Welch

Tag Activity for this File
Tag Applied By Date/Time
approximation Edward Brian Welch 22 Oct 2008 06:52:33
interpolation Edward Brian Welch 22 Oct 2008 06:52:33
image Edward Brian Welch 22 Oct 2008 06:52:33
shift Edward Brian Welch 22 Oct 2008 06:52:33
fourier Edward Brian Welch 22 Oct 2008 06:52:33
translate Edward Brian Welch 22 Oct 2008 06:52:33
sinc interpolation Edward Brian Welch 22 Oct 2008 06:52:34
shift Kobe Avinu 26 Nov 2011 08:45:26

Contact us at files@mathworks.com