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

Home » Public Forums » archive » Re: Correction: 2D FFt
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Correction: 2D FFt [message #7254] Tue, 29 October 1996 00:00 Go to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <326DCEDB.41C6@phys.strath.ac.uk>, Graeme K Harkness <graeme@phys.strath.ac.uk> writes:
|> Walid,
|>
|> I'm pretty sure that this re-arrangement of the frequency space is
|> related
|> to the methods used to do Fast Fourier Transforms in general (but it's
|> been
|> a long time since I studied this stuff :-)
|>

Well, sort of, but it also makes sense to have e.g., the zero frequency
at (0,0) as others have pointed out..

|> I have a couple of routines (FFT1D and FFT2D) which take the Fourier
|> transforms and return you the re-ordered data (with zero frequency at
|> the
|> centre). They do use the standard IDL routines and then re-order
|> afterwards
|> so they aren't the most efficient things ever but they work very well.
|> (I suppose if you wanted very efficient code you wouldn't be using the
|> FFTs
|> in IDL anyway since I'd bet you could call an external function in
|> FORTRAN
|> (or something) to do it much faster!)
|>

I wouldn't recommend spending time on trying to beat IDL's array
operations, especially stuff like the FFT functions! They're quite
well optimized.

Once when I had to compute a lot of auto-correlation functions,
I tried to use Numerical Recipies to beat IDL, taking advantage
of the fact that my data points were real, not complex, etc..,
and I was ending up with real data points as well.

Even using every trick in the book, I ended up not saving more
than about 5% of the execution time. The effort would have been
a waste of time if it hadn't been for the fact that I had to
also apply a filter in frequency space, which could be done
a lot more efficient when they were done in the program
containing the ffts.

Stein Vidar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Finding the index of the median
Next Topic: A Nice (undocumented?) feature for PS plotting

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

Current Time: Wed Oct 08 15:54:16 PDT 2025

Total time taken to generate the page: 0.00410 seconds