Login  Register

Re: Image shift

Posted by Michael Schmid on Jun 22, 2009; 8:17am
URL: http://imagej.273.s1.nabble.com/Image-shift-tp3692046p3692047.html

Hi Christian,

you can use Process>FFT>FD Math Correlate with 'do inverse transform'  
and find the maximum. This needs square images of size 2^n

Alternatively, you could search the web for "optical flow" and  
ImageJ. Well-programmed optical flow algorithms are faster than FFT  
in case of small displacements and have no 2^n restriction of the  
image size.

Michael
________________________________________________________________

On 22 Jun 2009, at 09:02, Christian Breukers wrote:

> Dear ImageJ'ers,
>
>
>
> What would be the quickest (automized) way to determine a XY shift
> between two images, which are displaced with a few pixels with respect
> to eachother?
>
>
>
> I have tried transforming the images to the frequency domain by
> generating their FFT.
>
> Subsequently I mulitplied these two FFT's and took the inverse of the
> result.
>
> Unfortunately I am not sure how to get the XY displacement as a  
> result.
>
>
>
> Kind regards,
>
> Christian
>
> ---------------------------------------------------
> Christian Breukers
> Medical Cell Biophysics Group
> Faculty of Science and Technology
> University of Twente
> The Netherlands
> E.: [hidden email] <mailto:[hidden email]>
> I.: www.tnw.utwente.nl/mcb
>
> ---------------------------------------------------
>
>