1 | initial version |
Please do not use the C-API.
The first tutorial explains how to do this. I suggest you take a look at it, and the other tutorials to find out how to do things the proper way. It's much easier when you don't manage your own memory.
cv::Mat cvmat(nxi, nyi, CV_8UC4, c_mrcI->getImageData());
cv::imwrite("some.jpg", cvmat);
cv::imshow("some", cvmat);
cv::waitKey();