Issue with reading an image using “cv::imread” function in OpenCv

前端 未结 2 1375
长情又很酷
长情又很酷 2020-12-06 04:54

I have got a problem with some basic OpenCV code. Here is my code:

 cv::Mat src;
 src=imread(\"Calibration.bmp\",0);

 if (src.empty())
  cout << \"Ca         


        
2条回答
  •  感情败类
    2020-12-06 05:36

    I had this behavior when trying to load an ARGB bitmap image (which I tried to load with color). Converting the bitmap to RGB (24bpp) solved the problem.

提交回复
热议问题