1 Star 1 Fork 0

sean/voc-release4.01

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
visualizeHOG.m 533 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ross Girshick 提交于 2011-12-21 20:01 . initial check in of voc-release4.01
function visualizeHOG(w)
% visualizeHOG(w)
% Visualize HOG features/weights.
% make pictures of positive and negative weights
bs = 20;
w = w(:,:,1:9);
scale = max(max(w(:)),max(-w(:)));
pos = HOGpicture(w, bs) * 255/scale;
neg = HOGpicture(-w, bs) * 255/scale;
% put pictures together and draw
buff = 10;
pos = padarray(pos, [buff buff], 128, 'both');
if min(w(:)) < 0
neg = padarray(neg, [buff buff], 128, 'both');
im = uint8([pos; neg]);
else
im = uint8(pos);
end
clf;
imagesc(im);
colormap gray;
axis equal;
axis off;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/seanx02/voc-release4.01.git
git@gitee.com:seanx02/voc-release4.01.git
seanx02
voc-release4.01
voc-release4.01
master

搜索帮助