您的位置:首页 > 编程语言 > MATLAB

VLFeat-使用matlab版本计算HOG

2016-12-18 10:51 323 查看
下载 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;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: