Mat转vector
(vector<_Tp>)(mat.reshape(1, 1));
vector转Mat
cv::Mat mat = cv::Mat(vector); cv::Mat dest = mat.reshape(channels, rows).clone();
Mat转vector
(vector<_Tp>)(mat.reshape(1, 1));
vector转Mat
cv::Mat mat = cv::Mat(vector); cv::Mat dest = mat.reshape(channels, rows).clone();