Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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;

}

/****************/

click to hide/show revision 2
No.2 Revision

updated 2013-04-23 16:11:48 -0600

berak gravatar image

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>
 

include <cv.h>

include <cxcore.h>

include <highgui.h>

include <math.h>

using namespace cv; using namespace std;

std;

int main() {
Mat M(2,2, CV_8UC3, Scalar(0,0,255)); cout << "M = " << endl << " " << M << endl << endl;

endl;
 return 0;
}

/****************************************************/

}

/****************/