#include <stdio.h>
#include <iostream>
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <vector>
#include <QtDebug>
using namespace cv;
using namespace std;
char* image_filename2 = "F:/opencv-3.1.0/pictures/test2.bmp";
char* image_filename1 = "F:/opencv-3.1.0/pictures/test1.bmp";
int main( int argc, char** argv )
{
Mat img_1 = imread(image_filename2);
Mat img_2 = imread(image_filename1);
if (!img_1.data || !img_2.data)
{
cout << "error reading images " << endl;
return -1;
}
//ORB orb;
Ptr<ORB> orb = ORB::create(500,1.2f,8,31,0,2,ORB::HARRIS_SCORE,31,20);
vector<KeyPoint> keyPoints_1, keyPoints_2;
Mat descriptors_1, descriptors_2;
#if 0
orb->detect(img_1,keyPoints_1, Mat());
ORB特征点检测和匹配
最新推荐文章于 2025-02-23 21:14:55 发布