Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv:: is just specifying the namespace. So you can either use cv::Mat or declare a using namespace cv; in your file and use Mat. CvMat is a C structure and cvMat(...) is just a function returning a CvMat structure, like a constructor.

cv:: is just specifying the namespace. So you can either use cv::Mat or declare a using namespace cv; in your file and use Mat. CvMat is a C structure and cvMat(...) is just a function returning a CvMat structure, like a constructor.

In the above code, the 'cv::Mat' is not really necessary, as the namespace cv was included in PAW.h. And 'CvMat' is just a struct, which is basically a class without methods. 'cvMat(...)' is a function initializing the struct with data.