1 | initial version |
I found the answer. I made 3 changes:
cv::Mat{rows, cols, type}
but the instance wasn't initialized as expected. Changing to cv:Mat(rows, cols, type)
fixed that. (Maybe my compiler options are not set correctly)*(cvMat.ptr<uchar>(y, x) + c) = value;
to be safer.