Skip to main content
AKhot.1
Associate III
Sep 4, 2023 1:28 PM UTC
Solved

2D-FFT rfft and cfft functions

I have a 2D array input buffer. so, what is the correct way to implement the rfft and cfft functions?

float fftIn[16][512] is my input. So, I applied for a loop like below:

arm_rfft_fast_init_f32(&fftHandler, 512);

 

for(int d =0; d<16; d++){
arm_rfft_fast_f32(&fftHandler, &fftIn[d], &fftOut[d], 0);
}
Is this the correct way?
Since the fftout will be complex no. I have taken cfft along the column(by rearranging the 2d array in certain way) like below:
Here input is like fft2In[256][32]
for(int e = 0; e<256; e++){
arm_cfft_f32(&arm_cfft_sR_f32_len16, &fft2In[e], 0, 0);
}
Again is the correct way to implement? I am getting some output but I don't have a way to verify the result as of now.
Please help me with this?
 

 

This topic has been closed for replies.
AKhot.1
AKhot.1Best answer
Associate III
Sep 6, 2023 9:50 AM UTC

For those of you who might need help with 2D FFT, this is the correct approach.

3 replies

AKhot.1
AKhot.1Author
Associate III
Sep 5, 2023 5:00 AM UTC

Can anyone explain this?

Bob S
Super User
Sep 5, 2023 9:18 PM UTC

No help directly, but the first (or second) rule of algorithm development and testing is to have a known input data and the expected output, preferably multiple sets of inputs and outputs.  Without that you are just wasting your time.

AKhot.1
AKhot.1AuthorBest answer
Associate III
Sep 6, 2023 9:50 AM UTC

For those of you who might need help with 2D FFT, this is the correct approach.