VLFeat图像库在VS2012下的配置

     近期做课题所需,開始使用VLFeat图像库。

     库下载链接:

     http://download.csdn.net/detail/sunboyiris/7500097

    下载解压后改名为 vlfeat,放在D盘根目录以下。即为D:\vlfeat

    

在系统属性里面。PATH路径加入   D:\vlfeat 如图所看到的:

   接下来新建一个项目:

   


加入库目录。可运行目录。包括目录。


接下来開始写个測试代码了:

新建一个头文件:

vlfeature.h

#pragma once
#include "stdafx.h"
#include <iostream>
using namespace std;
extern "C"{
#include <generic.h>
#include <stringop.h>
#include <pgm.h>
#include <sift.h>
#include <getopt_long.h>
};

class vlfeature
{
public:
	vlfeature();
	~vlfeature();
	void vlfeaturetest();
private:

};

vlfeature.cpp

#include "stdafx.h"
#include "vlfeature.h"



vlfeature::vlfeature()
{
}

vlfeature::~vlfeature()
{
}
void vlfeature::vlfeaturetest()
{
	VL_PRINTF("hello,world.");
	getchar();
	//return 0;
}
主函数调用例如以下:

vlfeature vl1;
	vl1.vlfeaturetest();
測试结果为:


VLFeat 配置完毕。。。



猜你喜欢

转载自www.cnblogs.com/ldxsuanfa/p/10821787.html