VLFeat-使用matlab版本计算HOG

下载 VLFeat 0.9.20    http://www.vlfeat.org

Let VLFEATROOT denote this directory. VLFeat must be added to MATLAB search path by running the vl_setup command found in the VLFEATROOT/toolbox directory. From MATLAB prompt enter:

run('VLFEATROOT/toolbox/vl_setup')

Example computing and visualizing HOG features

img = imread('lena.jpg');
imgs = im2single(rgb2gray(img));
hog = vl_hog(imgs, 8 , 'verbose');
imhog = vl_hog('render', hog, 'verbose');
clf;imagesc(imhog);colormap gray;

你可能感兴趣的:(计算机)