First time here? Check out the FAQ!
answered 2017-01-25 12:35:23 -0600
From a Mat 5x5 i would expect 25 elements. By the way you can pass the pointer to a vector for example:
cv::Mat mat(5, 5, CV_64FC1); std::vector<double> vecMat(mat.begin<double>(), mat.end<double>());