[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to perform FFT shift after FFT?
From: |
Bartłomiej Sójka |
Subject: |
How to perform FFT shift after FFT? |
Date: |
Mon, 22 Aug 2022 12:37:58 +0200 (CEST) |
Hi,
I'm trying to write a block that would compute FFT on the received samples, but
I'm having trouble with finding how to perform FFT shift after the computation.
Any help with that?
So far I'm using
d_fft = std::make_unique<fft::fft_complex_fwd>(d_fftsize);
memcpy(d_fft->get_inbuf(), d_fft_processed.data(),
d_fftsize*sizeof(gr_complex)); //get samples from input and store them in input
buffer
d_fft->execute(); // compute the fft
memcpy(d_fft_processed.data(), d_fft->get_outbuf(),
d_fftsize*sizeof(gr_complex)); //get processed samples from output buffer and
storing them in d_fft_processed
I'll appreciate any help
Bartek
- How to perform FFT shift after FFT?,
Bartłomiej Sójka <=