最近做课题所需,开始使用VLFeat图像库。
库下载链接:
http://download.youkuaiyun.com/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 配置完成。。。。
本文详细介绍了如何使用VLFeat图像库进行配置,并通过编写测试代码验证了库的正常运行。
2804

被折叠的 条评论
为什么被折叠?



