Re: Sub-pixel shifting using FFT property
- From: Tristan Imp <xin.zhang03@xxxxxxxxx>
- Date: Thu, 28 Feb 2008 22:35:35 -0800 (PST)
On Feb 29, 5:44 am, wtt <wtripl...@xxxxxxxxx> wrote:
Dear all,
I am new to image processing. I am trying to work out an algorithm to
shift a grayscale image using the shifting property of the FFT. The
code so far works really well if I shift my image by some full-pixel
amount.
However, if I attempt to shift the image by fractional pixel amounts,
the following things happen:
1) I end up with intensity values outside of the 0-255 range. Usually
I just force anything larger than 255 down to 255. I'm not sure what
is causing that, but I suspect the contribution of some imaginary
parts when the magnitude is taken.
2) Also there is "ringing" around some hard edge transitions. My
understanding is that these artifacts are due to Gibbs phenomenon. I
am able to mitigate some of the artifacts by applying a certain
Butterworth low-pass filter before I take the inverse transform.
Here is an example of the artifacts:
http://img341.imageshack.us/my.php?image=exwu6.png
I was wondering if anyone had some ideas about what is happening.
Thank you
1) You'd better not just try to cut off the part over 255. Find out
the reason and then take more appropriate method to handle it.
2) As you said, it is a Gibbs phenomenon. The reason lies in the
fractional pixel shifting, which in some sense involves sampling. The
sampling involved causes it happen. Filtering it is a good method to
diminish it.
.
- References:
- Sub-pixel shifting using FFT property
- From: wtt
- Sub-pixel shifting using FFT property
- Prev by Date: Sub-pixel shifting using FFT property
- Next by Date: Re: New technology makes 3-D imaging quicker, easier
- Previous by thread: Sub-pixel shifting using FFT property
- Index(es):