Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.96 KB File ID: #7059

FFT2 optimization

by Luigi Rosa

 

04 Mar 2005 (Updated 07 Mar 2005)

Speed up FFT2.

| Watch this File

File Information
Description

FFT2 optimization.

Many image processing applications require an extensive usage of FFT2 routine (or, in the most general case, a N-dimensional FFT) of matrices having the same dimensions. In these cases MATLAB FFT2 can result extremely inefficient. In general the execution time can be significantly reduced by splitting the N-dimensional FFT into several unidimensional FFT. A good trick is to apply the fft operator varying the minimum number of times the length of the unidimensional vectors which have to be FFT-transformed. You might be able to increase the speed of fft using the utility function fftw, which controls how MATLAB optimizes the algorithm used to compute an FFT of a particular size and dimension. In the following examples the planner is always 'hybrid'. The best vectorization strongly depends on the dimensions of input matrices. Chose the optimal solution comparing the execution times of the methods proposed.
 
Luigi ROSA
Via Centrale 35
67042 Civita Di Bagno
L'Aquila --- ITALY
mobile +39 3207214179
email luigi.rosa@tiscali.it
website http://utenti.lycos.it/matlab

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
04 Jan 2006 Donato Pace

this problem is still present in MATLAB 7.1???

18 Jun 2006 Benjamin Auffarth

It slows down. Speed improvement is negative.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
filtering Luigi Rosa 22 Oct 2008 07:42:44
fft2 Luigi Rosa 22 Oct 2008 07:42:44
fft Luigi Rosa 22 Oct 2008 07:42:44
discrete fourier transform Luigi Rosa 22 Oct 2008 07:42:44
speed optimization Luigi Rosa 22 Oct 2008 07:42:44

Contact us at files@mathworks.com