//brisk.cpp
#include "stdafx.h"
#include <cv.hpp>
#include <highgui.h>
#include "utils.h"
#include <iostream>
using namespace std;
void brisk(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);
}
BRISK dbrisk(BRISK_HTHRES,BRISK_NOCTAVES);
vector<KeyPoint> kpts1_brisk, kpts2_brisk;
Mat desc1_brisk, desc2_brisk;
Ptr<cv::De
OpenCV图像匹配算法之brisk
最新推荐文章于 2025-02-09 07:45:00 发布