OpenCV Error: Unknown error code -10 (Raw image encoder error: Empty JPEG image (DNL not supported)) in throwOnEror, file /home/program/opencv-3.2.0/modules/imgcodecs/src/grfmt_base.cpp, line 139
terminate called after throwing an instance of 'cv::Exception'
what(): /home/program/opencv-3.2.0/modules/imgcodecs/src/grfmt_base.cpp:139: error: (-10) Raw image encoder error: Empty JPEG image (DNL not supported) in function throwOnEror
cv::Mat img = cv::imread("background0.jpg");
獲取圖像后未能判斷是Mat否為空,導致傳遞給后面處理的數據為null導致、。