利用opencv2.3来获取图片的sift特征,并输出到标准输出,可用重定向到文件. #include<cstdio> #include"opencv2/opencv.hpp" #include"opencv2/nonfree/nonfree.hpp" using namespace cv ; int main(){ Mat m = imread("test.jpg"); SIFT sift; vector<KeyPoint&g
could not loag image... terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(-pre) /home/w1/work/depends/opencv/modules/highgui/src/window.cpp:: error: (-:Assertion failed) size.width> && size.height> in function 'im