comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: fft application?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: fft application? [message #31571] Fri, 02 August 2002 10:18
Don J Lindler is currently offline  Don J Lindler
Messages: 19
Registered: April 2001
Junior Member
"helen" <bin_zheng_99@yahoo.com> wrote in message
news:958f2cda.0208020646.3112c408@posting.google.com...
> Hi, All,
>
> I try to do template matching using IDL and I run the IDL code:
> ...
> img4 = rotate (img3, 2)
> Result = float (fft(fft(img) * fft(img4),/inverse))
> ...
>
> based on the code used in Matlab image processing toolbox:
> C = real(ifft2(fft2(bw) .* fft2(rot90(a,2),256,256))); (bw, a are
> two images)
> the max(C) is 51.
>
> But on IDL55 the Max value is 0.00013. I use the same images as in
> the Mablab.
>
> So, I wonder are there some serious differences between the fft in
> IDL and in Matlab? How can I improve my program to get good result?
>
> Thanks very much for any suggestions, ideas, or help,
>
> Helen


Try

Result = float (fft(fft(img) * fft(img4),/inverse))*n_elements(img)

Don
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: fft application?
Next Topic: Re: IDL and ActiveX CCD camera

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 22:32:36 PDT 2025

Total time taken to generate the page: 1.04031 seconds