Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Fast Fourier Transforms


Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2005, 01:19 PM
lamar_air's Avatar
lamar_air lamar_air is offline
Contributor
 
Join Date: Feb 2002
Location: Silicon Valley North
Posts: 520
Question Fast Fourier Transforms


If you are familiar with FFT's

I have a Fast Fourier Transform component which receives a 1D array of real numbers and a 1D array of imaginary numbers. 2 arrays will be produced (one for the real values and one for the imaginary values) when the imput is converted from the time domain to the frequency domain.

I need some more explanation on how to do this part:
To make a 2D FFT you can use the 1D fft (described above) by performing the 1D FFT on all rows then all columns of the 2D input. This will give a 2D output.

Thanks
__________________
_______________________________________________
Reply With Quote
  #2  
Old 06-16-2005, 01:33 PM
Bolek's Avatar
Bolek Bolek is offline
Contributor
 
Join Date: Feb 2003
Location: Prague, Czech Republic
Posts: 596
Default

Quote:
Originally Posted by lamar_air
I need some more explanation on how to do this part:
To make a 2D FFT you can use the 1D fft (described above) by performing the 1D FFT on all rows then all columns of the 2D input. This will give a 2D output.

Thanks
You cannot do it this way because if you first transform all rows and then transform the columns, the second transform will run over the results of the first transform, not the original signal. 2D Fourier transform operates over the original signal in both dimensions.
__________________
Really good programmers write code this way:
COPY CON PROGRAM.ARJ
Reply With Quote
  #3  
Old 06-16-2005, 01:44 PM
lamar_air's Avatar
lamar_air lamar_air is offline
Contributor
 
Join Date: Feb 2002
Location: Silicon Valley North
Posts: 520
Default

If you do an FFT on each row first then the results of the first will be now in the matrix. Then you could do an FFT on each column which you are right won't use the origional values but you've already used all of the origional values once.
__________________
_______________________________________________
Reply With Quote
  #4  
Old 06-16-2005, 06:10 PM
TeraBlight's Avatar
TeraBlight TeraBlight is offline
Captain Convoluted

* Expert *
 
Join Date: Jun 2005
Posts: 1,918
Default

Quote:
Originally Posted by lamar_air
[...] which receives a 1D array of real numbers and a 1D array of imaginary numbers. 2 arrays will be produced [...]
To me, this sounds like the input and output arrays are separate, which means that what Bolek said wouldn't be an issue either way - the original data will be available throughout, if you want it to.
However, first google hit for "2D FFT" tells us that

"2 dimensional Fourier transforms simply involve a number of 1 dimensional fourier transforms. More precisely, a 2 dimensional transform is achieved by first transforming each row, replacing each row with its transform and then transforming each column, replacing each column with its transform. Thus a 2D transform of a 1K by 1K image requires 2K 1D transforms. This follows directly from the definition of the fourier transform of a continuous variable or the discrete fourier transform of a discrete system."

Sound good?
Reply With Quote
  #5  
Old 06-17-2005, 08:21 AM
lamar_air's Avatar
lamar_air lamar_air is offline
Contributor
 
Join Date: Feb 2002
Location: Silicon Valley North
Posts: 520
Default

Sounds like the confirmation i was looking for. Merci
__________________
_______________________________________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->