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
I don't know why you don't have include problem because normally it .hpp file so you're suppose to do
#include #include
But your code seems good but add a cv::waitKey(0); after your imshow.
cv::waitKey(0);