//freak.cpp
#include "stdafx.h"
#include <cv.hpp>
#include <highgui.h>
#include "utils.h"
#include <iostream>
using namespace std;
void freak(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);
}
vector<KeyPoint> kpts1_freak, kpts2_freak;
Mat desc1_freak, desc2_freak;
Ptr<cv::DescriptorMatcher> matcher_l1 = Descrip
OpenCV图像匹配算法之freak
最新推荐文章于 2025-03-14 11:39:24 发布