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

     库下载链接:

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

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

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

    VLFeat图像库在VS2012下的配置 随笔 第1张

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

VLFeat图像库在VS2012下的配置 随笔 第2张

   接下来新建一个项目:

   VLFeat图像库在VS2012下的配置 随笔 第3张


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


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

新建一个头文件:

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图像库在VS2012下的配置 随笔 第4张


VLFeat 配置完毕。。。



扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄