1.初始化
1) cv::Mat M(3,4,CV_32F,cv::Scalar(0));
2) Mat mat = Mat::zeros(color.rows,color.cols,CV_8UC3); //ones
3) unsigned char* data;
cv::Mat img(height, width, CV_8UC3, (unsigned char*)data);
2.数据访问
http://blog.csdn.net/xiaowei_cqu/article/details/7771760
http://blog.csdn.net/xiaowei_cqu/article/details/19839019
1) 彩色图像(3维的)
unsigned char* data;
Mat mat(