I am using OpenCV 2.1 in Visual Studio 2008. I've been trying to create a matrix and I've tried the commands cvCreateMat()
, Mat.M
, and M.create
etc... But none of these commands got compiled. There is always some error, e.g when I use this command:
M(2,2,CV_8UC3,Scalar(0,0,255));
I get the following error:
'Mat' : undeclared identifier
the other time I used this command:
CvMat* mat = cvCreateMat( 5, 5,8UC1);
And the error was:
syntax error : 'bad suffix on number'
Could anyone let me know what's the issue...