1 | initial version |
found 2 bugs here:
dft_output_vector.at <float>
that should be double
here, right ?Mat dft_input_vector(pdf_vector);
makes a n-row, 1-column matrix, not a 1 row matrix, so your dft output has the same layout. you got rows(n) and cols(1) wrong in your loops2 | No.2 Revision |
found 2 bugs here:
dft_output_vector.at <float>
that should be double
here, right ?Mat dft_input_vector(pdf_vector);
makes a n-row, 1-column matrix, not a 1 row matrix, so your dft output has the same layout. you got rows(n) and cols(1) wrong in your loopsbtw, nothing to do with dct here(that's even misleading), it's a plain how-to-access-a-matrix problem