开始积累问题于网络...
1、在qt上使用opencv编译出错:OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /home/fighting324/app/opencv/modules/highgui/src/window.cpp, line 261 terminate called after throwing an instance of ‘cv::Exception‘ what(): /home/fighting324/app/opencv/modules/highgui/src/window.cpp:261: error: (-215) size.width>0 && size.height>0 in function imshow
解决方案:把这一句,Mat src1 = imread( "Chry.jpg" )->添加绝对路径 Mat src1 = imread( "/home/Chry.jpg" );路径为加载图片的位置