下载 vlfeat-0.9.18 http://www.vlfeat.org
cd D:\program\vlfeat-0.9.18\toolbox
编译 :
运行 vl_compile.m
编译后在
中可以找到编译后的
-
未编译前按照官网是运行不了的。
misc/vl_hog.m里的都是注释。是从c文件用vs2008编译器编译成mexw32文件的!
Example
computing and visualizing HOG features
-
hog = vl_hog(im2single(im)) ; % compute HOG features
img = imread('cameraman.tif');
imgs = im2single(rgb2gray(img));
hog = vl_hog(imgs, 8 , 'verbose');
imhog = vl_hog('render', hog, 'verbose');
clf;imagesc(imhog);colormap gray;
在此之前先安装winsdk7.0(包含vc2008编译器)
mex -setup