OpenCV Error: Assertion failed (!outImage.empty()) in drawKeypoints, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/features2d/src/draw.cpp, line 115
terminate called after throwing an instance of ‘cv::Exception’
what(): /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/features2d/src/draw.cpp:115: error: (-215) !outImage.empty() in function drawKeypoints
解决办法:我们一般是在build目录下运行程序,所以你的图片路径得写正确,我的是
xia@xia-virtual-machine:~/myc/ch7/build$ ./orb_cv …/1.png …/2.png
完美解决,哈哈哈