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

OpenCV图像匹配算法之brisk

utils.cpp与utils.h

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

INFO brisk_info;
brisk(path1,path2,brisk_info,false);
showInfo(brisk_info);


OpenCV图像匹配算法之brisk