I want to load an image using Mat in openCV
My code is:
Mat I = imread(\"C:/images/apple.jpg\", 0); namedWindow( \"Display window\", CV_WINDOW_AUTOSI
Have you checked that I exists after imread? Perhaps the file read failed
After reading a file do if ( I.empty() ) to check if it failed
if ( I.empty() )