下载:
http://www.vlfeat.org/download.html
配置:
(1)MATLAB最低版本要求:2009B
(2)配置方法:
a 临时配置:
下载最新版本的VLFeat binary distribution解压到目录(如(e.g. ~/src/vlfeat))下,用VLFEATROOT带代表此目录。将VLFEATROOT目录的下的VLFEATROOT/toolbox 路径添加到MATLAB的搜索路径:
>> run('VLFEATROOT/toolbox/vl_setup')
VLFeat 0.9.17 ready.
检查VLFeat是否安装完毕,在命令窗口输入
>> vl_version verbose
VLFeat version 0.9.17
Static config: X64, little_endian, GNU C 40201 LP64, POSIX_threads, SSE2, OpenMP
4 CPU(s): GenuineIntel MMX SSE SSE2 SSE3 SSE41 SSE42
OpenMP: max threads: 4 (library: 4)
Debug: yes
SIMD enabled: yes
b 长久的设置
若想要长久地将VLFeat所在路径添加到MATLAB,可将如下命令行添加到MATLAB的startup.m文件中:
run('VLFEATROOT/toolbox/vl_setup')
运行:
VLFeat的所有函数均可以通过help命令查到帮助说明。可以如下运行demo:
>> vl_setup demo
>> vl_demo_sift_basic
如果想要一次性运行所有的demo,在命令窗口输入如下内容:
>> vl_setup demo >> vl_demo
报错:
(1)Attempt to execute SCRIPT vl_kmeans as a function:
原因:Path下路径优先级问题
处理:在MATLAB命令窗口输入pathtool,将mexa64所在路径上移。
参考:
http://www.vlfeat.org/install-matlab.html
http://stackoverflow.com/questions/11685191/vlfeat-matlab-error-attempt-to-execute-script-vl-imsmooth-as-a-function