VLFeat图像库在VS2012下的配置

来源:互联网 发布:网络出租屋牌照购买 编辑:程序博客网 时间:2024/06/06 11:03

     最近做课题所需,开始使用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 配置完成。。。。

0 0
原创粉丝点击