load image with openCV Mat c++

前端 未结 5 798
梦谈多话
梦谈多话 2020-11-30 15:26

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         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 15:35

    Are you using visual studio 2010 to run the OpenCV code? If so, try compiling in Release mode.

提交回复
热议问题