I have a problem with understanding DFT.
I'm trying to create simple program to test this function.
vector <complex<double> > singlePointAsComplex;
std::complex<double> c(1,2);
singlePointAsComplex.push_back (c);
Mat resMat;
dft(singlePointAsComplex, resMat, DFT_SCALE);
std::cout << "resMat = " << std::endl << resMat << std::endl;
As the output i receive:
resMat = [1, 2]
What i'm doing wrong?