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

来源:互联网 发布:微软雅黑light mac 编辑:程序博客网 时间:2024/05/21 11:04

     在学习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
0 0
原创粉丝点击