VLFeat 中SIFT算法的重新单独编译

     在学习SIFT特征时找到了一个名为VLFeat[1]的开源库,里面提供了一个C实现的SIFT特征提取算法。在尝试将SIFT算法重新编译时遇到了一些问题,不过最终还是编译成功了,总结如下:

   1.在VS中建立新的工程,将SIFT相关的.c和.h文件加入到工程,将C文件中的VL_EXPORT宏全部去掉;

   2.在host.h中加入#define VL_DISABLE_SSE2和#define VL_DISABLE_AVX;

   3.注释掉#include"imopv_sse2.h"

   4.在main函数中make filter之前加入vl_constructor()函数;在main函数结尾前加入vl_destructor()函数,这两个函数定义在generic.c中。

 

[1]The VLFeat open source library implements popular computer vision algorithms specializing in image understanding and local features extraction and matching. Algorithms include Fisher Vector, VLAD, SIFT, MSER, k-means, hierarchical k-means, agglomerative information bottleneck, SLIC superpixels, quick shift superpixels, large scale SVM training, and many others. It is written in C for efficiency and compatibility, with interfaces in MATLAB for ease of use, and detailed documentation throughout. It supports Windows, Mac OS X, and Linux.

http://www.vlfeat.org/index.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值