//orb.cpp
#include "stdafx.h"
#include <cv.hpp>
#include <highgui.h>
#include "utils.h"
#include <iostream>
using namespace std;
void orb(char* path1, char* path2, INFO& info, bool show)
{
double t1,t2;
t1=cvGetTickCount();
initModule_nonfree();
Mat img1, img2;
img1=imread(path1,0);
img2=imread(path2,0);
if(img1.data==NULL)
{
cout<<"The image can not been loaded: "<<path1<<endl;
system("pause");
exit(-1);
}
if(img2.data==NULL)
{
cout<<"The image can not been loaded: "<<path2<<endl;
system("pause");
exit(-1);
}
Ptr<OrbFeatureDetector> orb_detector;
Ptr<DescriptorExtractor> orb_descriptor;
vector<KeyPoint> kpts1_orb, kpts2_orb;
Mat
OpenCV图像匹配算法之orb
最新推荐文章于 2024-07-28 08:42:37 发布