I want to upload an image using Mat in openCV
My code is:
Mat I = imread("C:/images/apple.jpg", 0); namedWindow( "Display window", CV_WINDOW_AUTOSIZE );// Create a window for display. imshow( "Display window", I );
The following error appears in the message box:
Unhandled exception at 0x70270149 in matching.exe: 0xC0000005: Access violation reading location 0xcccccccc.
Please note that I include:
#include <cv.h> #include <cxcore.h> #include <highgui.h> #include <iostream> #include <math.h>
Please, help. Thanks.
vidzz source share