Ask Your Question

UltraBird's profile - activity

2013-01-05 17:58:51 -0500 commented answer What data types can I use for a complex OutputArray?

Thanks for the link! Although I don't really think that answers my question (I may have missed it). I know I can use a Mat object as an OutputArray—I'm wondering if I can use a std::vector<std::complex<double>>. Also, I'm using this to analyze simulated neutrino detector data.

2013-01-05 14:33:08 -0500 asked a question What data types can I use for a complex OutputArray?

I am using cv::dft(InputArray src, OutputArray dst, cv::DFT_COMPLEX_OUTPUT). What data types are supported for a complex OutputArray? I was hoping to use std::vector<std::complex<double>>.

2013-01-05 14:20:59 -0500 received badge  Supporter (source)
2013-01-05 14:20:05 -0500 received badge  Scholar (source)
2013-01-04 07:55:44 -0500 received badge  Editor (source)
2013-01-04 07:52:23 -0500 asked a question Basic matrix operations producing null pointer members

Please bear with me, I'm totally new to OpenCV. array1 and array2 primitive arrays of doubles, of the same length.

cv::Mat_<double> A (lengthOfArray1, 1, array1);
cv::Mat_<double> B (lengthOfArray1, 1, array2);
cv::Mat_<double> C = A - B;

The problem is that what I get for C is an array with the right dimensions but a null pointer data, refcount, datastart, dataend, datalimit, and allocator. I must be doing something silly.