1 | initial version |
One of the Mat constructors takes a pointer as an argument.
cv::Mat charMat(640,512,CV_16UC1,chararr);
Note that it does not copy the data, so you may need to do .clone() if your chararr is not going to be sticking around.