First time here? Check out the FAQ!
answered 2012-12-05 07:11:04 -0600
I use
Mat src; src.create(cv::Size(cols,rows),CV_8UC1); for (int i=0;i<rows;i++) {="" memcpy(src.ptr(i),srcdata+i*cols,cols);="" }<="" p="">
Althougth,it's not very smart.But it can work