错误信息
OpenCV Error: Assertion failed (!outImage.empty()) in drawKeypoints, file /home/ssf/Downloads/opencv-3.1.0/modules/features2d/src/draw.cpp, line 113 terminate called after throwing an instance of 'cv::Exception' what(): /home/Downloads/opencv-3.1.0/modules/features2d/src/draw.cpp:113: error: (-215) !outImage.empty() in function drawKeypoints
源代码描述:c++, ORB/SIFT特征点提取与匹配,绘制匹配结果。
目测原因和解决方法:运行程序需要输入图片作为参数,将图片放到程序运行根目录下并再运行时输入参数 如:
./your_exe 1.png 2.png
ps:深层次报错原因我也没有清楚,总之这种错误有点小蠢,opencv本身是不太可能出问题的。
|