dft DFT_ROWS: half of the result is uninitialized (2.49)

asked 2014-11-25 16:42:17 -0600

meleagrosy gravatar image

Hi,

I am not sure, if I am doing something wrong. I use the following code:

Mat C = (Mat_<float>(1, 16) << 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
Mat Cf;
dft(C, Cf, DFT_ROWS | DFT_COMPLEX_OUTPUT);

But columns 9-15 of Cf after dft are not initialized (still containing the values of the memory before dft).

Is this a bug or did I use dft incorrectly?

edit retag flag offensive close merge delete