Cooley-Tukey FFT: You don't have to zeropad to a power of 2?
이전 댓글 표시
Someone wrote "The algorithm that Cooley and Tukey presented in their classic paper (Math. Comp. 19 (1965), 297-301. http://dx.doi.org/10.1090/S0025-5718-1965-0178586-1) can be applied to any composite length. The performance advantages are greatest for highly composite lengths, of which powers-of-2 are one example, and lengths of powers-of-2 result in other advantages on binary computers, so *it has become a common misconception that the algorithm is only applicable to signals whose length is a power of 2*."
Does that mean that when you *DO use the Cooley-Tukey FFT* You don't have to zeropad to a power of 2? Take for example an image of 1920x1080. So, if you want to use the Cooley-Tukey FFT, you don't need to zeropad the 1920x1080 image to 2048*2048?
답변 (2개)
Walter Roberson
2013년 6월 2일
0 개 추천
Correct. Do not pad to a power of 2 when using that algorithm.
Note: The MATLAB fft() and fft2() calls do not require padding to powers of 2.
댓글 수: 6
Malcolm Lidierth
2013년 6월 2일
And if you work with the same non-power of 2 size data sets often, see doc fftw to speed things up.
Walter Roberson
2013년 6월 2일
jon
2013년 6월 4일
Walter Roberson
2013년 6월 4일
Do not pad to a power of two using either cooley-tukey or fftw .
fftw sets up conditions for optimizing fft and fft2 and ifft and ifft2 calls, but fftw does not perform FFT itself.
jon
2013년 6월 4일
Malcolm Lidierth
2013년 6월 5일
Can you really do 0.4918530963 complex multiplications? Perhaps with Wisdom=Norman!
카테고리
도움말 센터 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!