资源简介

行人检测的源程序,基于HOG算法,能实现对行人的检测。

资源截图

代码片段和文件信息

function feats=compute_features(imbordernorisamplingoutfile)
    I=imread(im);
    [NHNWdim]=size(I);
    
    R = compute_gradient(Inori);

    %window parameters
    IW=64;IH=128;
    
    blocks = [64 32 16 6;
              64 32 16 6];
    
    [gwgh] = get_sampling_grid(IWIHblocks);
    
    if(sampling == 1)
      %center clip 
      loch = floor(mod(NHIH)/2)+1;
      locw = floor(mod(NWIW)/2)+1;
    else 
      %ramdomly sample 128x64 images from the image
      locw=floor(rand(sampling1)*(NW-IW - 2*border))+1+border;
      loch=floor(rand(sampling1)*(NH-IH - 2*border))+1+border;
    end
    feats = compute_gradient_features(RIWIHlocwlochgwgh);
    dlmwrite(outfilefeats‘delimiter‘‘ ‘);
end

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

     文件    5156076  2009-06-16 13:18  ped-demo-fast-8x8x1.1\approx_models.mat

     文件        729  2009-03-27 09:05  ped-demo-fast-8x8x1.1\compute_features.m

     文件       4984  2009-10-23 04:39  ped-demo-fast-8x8x1.1\compute_features_fast.m

     文件       4979  2009-03-27 09:34  ped-demo-fast-8x8x1.1\compute_features_fast.m~

     文件       1894  2009-03-27 09:05  ped-demo-fast-8x8x1.1\compute_features_scale_space.m

     文件        165  2009-03-27 09:05  ped-demo-fast-8x8x1.1\compute_feature_dim.m

     文件       1585  2009-03-27 09:05  ped-demo-fast-8x8x1.1\compute_gradient.m

     文件       1168  2009-03-27 09:05  ped-demo-fast-8x8x1.1\compute_gradient_features.m

     文件        453  2009-03-27 09:05  ped-demo-fast-8x8x1.1\concat_features.m

     文件        215  2009-03-27 09:05  ped-demo-fast-8x8x1.1\cumsum2D.m

     文件      15457  2009-03-27 09:05  ped-demo-fast-8x8x1.1\det.png

     文件        579  2009-03-27 09:05  ped-demo-fast-8x8x1.1\draw_det.m

     文件        404  2009-03-27 09:05  ped-demo-fast-8x8x1.1\get_sampling_grid.m

     文件       7126  2009-03-27 09:34  ped-demo-fast-8x8x1.1\mex_feature.cc

     文件      12280  2009-03-27 11:31  ped-demo-fast-8x8x1.1\mex_feature.mexa64

     文件       1986  2009-03-27 12:08  ped-demo-fast-8x8x1.1\non_max_sp.m

     文件        608  2009-03-27 09:05  ped-demo-fast-8x8x1.1\normalize_response.m

     文件        558  2009-06-16 13:19  ped-demo-fast-8x8x1.1\ped_demo.m

     文件     324416  2009-03-27 09:05  ped-demo-fast-8x8x1.1\pos_test.png

     文件       1286  2009-06-16 12:23  ped-demo-fast-8x8x1.1\README

     文件       3758  2009-06-16 12:19  ped-demo-fast-8x8x1.1\run_detector.m

     文件        418  2009-03-27 09:05  ped-demo-fast-8x8x1.1\test_feat.m

     目录          0  2012-04-08 20:59  ped-demo-fast-8x8x1.1

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

              5541124                    23


评论

共有 条评论