首页 > 代码库 > OpenCV图像匹配算法之freak

OpenCV图像匹配算法之freak

utils.cpp与utils.h

//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=http://www.mamicode.com/=NULL)>使用

INFO freak_info;
freak(path1,path2,freak_info,true);
showInfo(freak_info);





OpenCV图像匹配算法之freak