Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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>());