Ask Your Question

Revision history [back]

problem of using class cv :: Mat in the environment C + + CLR

Hi!

cv::Mat img = imread("test.jpg");
if (img.empty())
// Print ERROR_1 ...

Fails to initialize the object Mat. Method emty () always returns true. Initialize the structure IplImage same file - "test.jpg" not shed any causes. In console applications, class cv :: Mat works fine. IDE: Visual Studio 2010 Professional, NET Framework 4.5 Prompt in what could be the reason?