What is problem with the following Opencv code?
Hello Every body, i am trying to compile the following code which tries to print a 2 X2 Matrix M but I find error while compiling. Could anyone tell me what include file i am missing. Thanks.
/*********************/
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <math.h>
using namespace cv;
using namespace std;
int main()
{
Mat M(2,2, CV_8UC3, Scalar(0,0,255));
cout << "M = " << endl << " " << M << endl << endl;
return 0;
}
/****************************************************/