Ask Your Question

goeki's profile - activity

2014-12-26 08:44:37 -0600 asked a question Unhandled execption Problem with Mat img

I'm really frustrated. Everytime when I use the command Mat img =imread (); I get the Unhandeled execption Error. What can I do to solve this Problem?

I'm using MS Visual Studio 2013 and OpenCV 2.4.10. OS: Windows7 64Bit

#include "opencv2/highgui/highgui.hpp"
#include <iostream>

using namespace cv;
using namespace std;

int main(int argc, char *argv[])
{
    Mat img = imread("c:\\car1080.jpg", 1);

    namedWindow("MyWindow", CV_WINDOW_AUTOSIZE);
    imshow("MyWindow", img);
    waitKey();
    return 0;
}