Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

i see a problem here: matrix = Mat(numOfRows,numOfCols,CV_64FC1,&theArray);

if it is: double **theArray; and you take the adress of that, that's a triple pointer already .

but why **pointers at all ? the Mat() constructor there expects a uchar* pointing to consecutive memory, what you've got is an array of pointers.

i see a problem here: here:

matrix = Mat(numOfRows,numOfCols,CV_64FC1,&theArray);

if it is: double **theArray; and you take the adress of that, that's a triple pointer already .

but why **pointers at all ? the Mat() constructor there expects a uchar* pointing to consecutive memory, what you've got is an array of pointers.