标签:
After OpenCV 3.0, CvMat cannot be directly converted to cv::Mat, we need to use function cvarrToMat() to do it. Please see the code below:
CvMat *cm; cv::Mat m; // Before OpenCV 3.0 m = cm; m = cv::Mat(cm); // After OpenCV 3.0 m = cv::cvarrToMat(cm);
OpenCV 3.0 CvMat and cv::Mat Conversion
标签:
原文地址:http://www.cnblogs.com/grandyang/p/5778504.html