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

OpenCV图像匹配算法之surf

utils.h与utils.cpp

//surf.cpp
#include "stdafx.h"
#include <cv.hpp>
#include <highgui.h>
#include "utils.h"
#include <iostream>
using namespace std;

void surf(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 surf_info;
surf(path1,path2,surf_info,false);
showInfo(surf_info);





OpenCV图像匹配算法之surf