Ask Your Question

Revision history [back]

Please add the following code

Mat img = imread("/home/courtneym/Pictures/index.jpeg",CV_LOAD_IMAGE_COLOR);
if(img.empty()){
    cout << "Path incorrectly or filename wrong, image not read!" << endl;
    return -1;
}
imshow("opencvtest",img);
waitKey(0);

And see if the error appears or not!

click to hide/show revision 2
No.2 Revision

Please add the following code

Mat img = imread("/home/courtneym/Pictures/index.jpeg",CV_LOAD_IMAGE_COLOR);
if(img.empty()){
    cout std::cout << "Path incorrectly or filename wrong, image not read!" << endl;
std::endl;
    return -1;
}
imshow("opencvtest",img);
waitKey(0);

And see if the error appears or not!