1 | initial version |
Quote your code here, it should be something like this:
Mat& mBgr = *((Mat*)addrBgr);
Mat& mGray = *((Mat*)addrGray);
cvtColor(mBgr, mGray, CV_BGR2GRAY);
And also don't forget to check that the original
Mat isn't empty before the call to cvtColor()
.