I am converting an old piece of code written in c/cpp into python. It uses cvCreateMat function. From this link I believe that cvCreateMat function is not supported in OpenCV2. I dont know how to do it using OpenCV2/numpy. OR all I need is the equivalent of the following line in python.
cv::Mat a = cvCreateMat(3*numberOfMatrices, 6,CV_64FC1);
numberOfMatricesis 6 then I guess thecvCreateMatwill create a matrix of 18 rows 6 columns, initialized with 0. I am also not sure do I neednp.arrayornp.matrix.