I'm using the FFTW3 library in MSVS 2008 to do a r2c DFT (n=128) of some data. I already found out that just the first half of the output of real data DFTs is used... which seems to be correct if I'm looking at my output:
0-64 --> seems to be the real part of the transform of my input.
65-127 --> is always 4.8367e-026 (I don't know why I was expecting it to be zero as it's not used according to the FFTW doc)
So far it seems to work correctly but I want to draw a power density spectrum so I would need the imaginary part too, right? The problem is I wasn't able to find out how to access the imaginary part of the transform I thought it would be possible by just using:
for(int i=0; i < 128; i++)
{
std::cout << "FFT Im-Part: " << *out[i][1] << "\n";
}
How can I do that?
Thanks for your help!