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

OpenCV图像匹配算法之orb

utils.cpp与utils.h

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

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





OpenCV图像匹配算法之orb