LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D Hanning Window

Is it possible to do a 2D Hanning window in LabVIEW? We are ending up with a 512 row by 32 column matrix and need to do a 2D FFT of it. We are currently feeding it into a loop where a Hanning window is applied and 1D FFT's are being done. The matrix is then transposed, but LabVIEW forces it to do a conjugate transpose since the data is in x+iy form and we do not want this to happen. The data is then fed into another loop where a Hanning window is applied and FFT's are thus performed in the other direction. We would like to cut out the steps involving the loops so then we can avoid the conjugate transpose altogether. I've attached an image of the two loops. 

 

Our end goal is to do apply a 2D Hanning window on our 512x32 array and then do an FFT. 

0 Kudos
Message 1 of 3
(1,288 Views)

If the problem is only with the transpose being the complex conjugate, you could use Transpose 2D Array rather than Transpose Matrix.

Transpose 2D Array simply switches rows and columns, it doesn't care about the contents (real, complex, references to PNG files, etc).


GCentral
0 Kudos
Message 2 of 3
(1,238 Views)

As you might imagine, doing a 2D Windowing for a 2D FFT is a little more complicated than doing (and understanding) a 1D Window on your data before doing the FFT.  A search in Google can yield some interesting reading, including a 1979 Master's Thesis called "Two Dimensional Window Functions" (as well as a number of Wikipedia entries).

 

Bob Schor

0 Kudos
Message 3 of 3
(1,208 Views)