I am trying to read video frames with openCV, save data in cv::Mat form. then I want to use my another code which accepts "int type matrix" to this video frame. I know the "cvMat" and "int type matrix" are not compatible. Maybe I am not familiar with opencv, but can I do any kind of conversion between "cvMat" and "int mat", so that I can use my code for the captured video frames? I say "int mat", maybe it is not correct, but what I mean is this:
cv::Mat videoFrame;
int inputData[600][400];
I want to do something like:
inputData = videoFrame;
Thank you.