In Image Processing, we will using FFT operation many times. Unfortunately, OpenCV only came with DFT function. So we need to use a third party FFT library in order to perform FFT operation. FFTW is a good choice. It's very fast and freely available at http://www.fftw.org.
I've made an example on how to perform FFT operation using FFTW in OpenCV. It simply loads an image, compute FFT & IFFT, then display the final result. The resulted image has no difference with the original, as it should.
I've tested it using MinGW compiler on Windows platform but it should compiled in other platforms with slight modification. If you encounter any problem, let me know it.
cassel on Oct 31, 2008:
Nash on Nov 3, 2008:
blindspot on Nov 6, 2008:
Nash on Nov 8, 2008:
Amir Shaker on Dec 14, 2008:
Nash on Dec 14, 2008:
aparna on Jan 20, 2009:
rizn on Sep 13, 2009:
Ary on Mar 13, 2010:
| Tel. | +62 31 8662872 +62 856 338 6017 |
| ICQ | 489571630 |
| Skype | dede_bl4ckheart |
| Yahoo | dede_bl4ckheart |
| nashruddin.amin |
Benoit on Oct 14, 2008:
(works fine under linux,too)