资源简介

一个简单的基于HOG的行人检测程序,MATLAB编写,其中read me文档解释的较为详细。

资源截图

代码片段和文件信息

%Matlab版HOG代码
function F = hogcalculator(img cellpw cellph nblockw nblockh...
    nthet overlapissigned normmethod);

% HOG特征由Dalal在2005 cvpr 的一篇论文中提出

% NORMMETHOD:重叠块中的特征标准化函数的方法
%       e为一个设定的很小的数使分母不为0
%       v为标准化前的特征向量
%       ‘none‘ which means non-normalization;
%       ‘l1‘ which means L1-norm normalization; V=V/(V+e)
%       ‘l2‘ which means L2-norm normalization; V=V/根号(V平方+e平方)
%       ‘l1sqrt‘V=根号(V/(V+e))
%       ‘l2hys‘l2的省略形式。将V最大值限制为0.2

if nargin < 2
    % 在DALAL论文中指出的在rows:128*columns:64情况下的最佳值,设定为DEFAULT
    cellpw = 8;
    cellph = 8;
    nblockw = 2;
    nblockh = 2;
    nthet = 9;
    overlap = 0.5;
    issigned = ‘unsigned‘;
    normmethod = ‘l2hys‘;
else
    if nargin < 9
        error(‘输入参数不足.‘);
    end
end

[M N K]

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      42770  2011-10-30 21:59  行人检测\alpha.mat

     文件        173  2011-10-30 21:59  行人检测\bias.mat

     文件       9572  2011-05-11 18:32  行人检测\HOG.m

     文件       3811  2011-10-21 15:40  行人检测\main.m

     文件        290  2011-05-14 15:28  行人检测\myplot.m

     文件        211  2011-11-04 16:42  行人检测\narrowarray.mat

     文件       1072  2011-10-30 22:46  行人检测\newSVM.m

     文件        176  2011-10-30 21:59  行人检测\nsv.mat

     文件     234689  2011-05-12 14:43  行人检测\people1.png

     文件       1556  2011-05-15 15:42  行人检测\readimg2.m

     文件        965  2011-10-28 21:50  行人检测\readneg.m

     文件        984  2011-10-28 20:37  行人检测\readpos.m

     目录          0  2011-11-16 15:23  行人检测

----------- ---------  ---------- -----  ----

               296269                    13


评论

共有 条评论