Jump to content
  • Advertisement
Sign in to follow this  
all_names_taken

FFT in two dimensions?

This topic is 3711 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I do FFT in two dimensions (for an image)? I already found free public domain (I think/hope) code for running 1-dimensional FFT. I do seem to recall someone some time long ago mentioning that you could use 1d FFT code for 2d FFT if you were clever, but I don't remember how it was done, or if it was at all correct. Or do I need special code for 2d FFT? If so, where could I find it? Btw, the existing code represents the input and output as an array of complex numbers, and a template argument specifies which complex number class is used. Only requirement is that it must provide the methods real() and imag().

Share this post


Link to post
Share on other sites
Advertisement
The most trivial approach is to use it twice, once row-wise, and second time column-wise.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!