• 大小: 14KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-10
  • 语言: Matlab
  • 标签: HOG  LBP  行人检测  

资源简介

基于HOG和LBP特征的行人检测的matlab的程序,效果不错。

资源截图

代码片段和文件信息

% 比较一个矩形框与多个矩形框是否重叠
function y=compareAll(rect1rect2)
iter=size(rect21);
y=zeros(iter1);
if sum(rect12)~=0
    for m=1:iter
        y(m)=compare(rect1rect2(m:));
    end
end
end

function result=compare(rect1rect2)
% rect1=[12938565193];
% rect1=[193449289417];
% rect1=[193449321449];
% rect2=[193449353481];
% 比较两个矩形框是否重叠
% 两个矩形框都可以用一对点的坐标来表示
minx1=rect1(1); maxx1=rect1(2); miny1=rect1(3); maxy1=rect1(4);
minx2=rect2(1); maxx2=rect2(2); miny2=rect2(3); maxy2=rect2(4);

% 求出重叠部分的一对点的坐标
minx = max(minx1minx2);
miny = max(miny1miny2);
maxx = min(maxx1maxx2);
maxy = min(maxy1maxy2);

% 判断两个矩形框是否重叠
if minx>maxx || miny>maxy
    result=0;
else
    result=1;
end
end











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

     文件        524  2011-07-19 09:17  HOG-LBP detection\winslide.m

     文件        815  2011-07-21 09:33  HOG-LBP detection\compareAll.m

     文件        650  2011-07-15 13:30  HOG-LBP detection\Demotest.m

     文件        995  2011-07-15 13:30  HOG-LBP detection\Demotrain.m

     文件        276  2011-07-19 15:59  HOG-LBP detection\HOG_LBP.m

     文件        869  2011-07-15 12:43  HOG-LBP detection\HOG_LBPSVM1.m

     文件       1748  2011-07-12 17:14  HOG-LBP detection\hogcalculator.m

     文件      16121  2011-07-15 13:30  HOG-LBP detection\hogfeat.m

     文件        725  2008-12-19 17:42  HOG-LBP detection\HOGGradient.m

     文件        795  2011-07-15 10:56  HOG-LBP detection\HOGSVM1.m

     文件       1170  2011-07-12 17:00  HOG-LBP detection\LBP.m

     文件        374  2011-07-12 16:01  HOG-LBP detection\lbp_com.m

     文件       1166  2011-07-19 09:06  HOG-LBP detection\location.m

     文件        637  2011-07-21 09:49  HOG-LBP detection\main.m

     文件        279  2011-07-26 08:01  HOG-LBP detection\make.m

     文件        284  2011-07-20 15:55  HOG-LBP detection\max_per5.m

     文件       2546  2011-07-30 19:15  HOG-LBP detection\realdetection.m

     文件       1908  2011-07-26 15:18  HOG-LBP detection\rectangleonimage.m

     文件       2452  2011-07-16 15:12  HOG-LBP detection\SVM2.m

     文件       1060  2011-07-26 10:53  HOG-LBP detection\test.m

     目录          0  2011-09-03 19:20  HOG-LBP detection

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

                35394                    21


评论

共有 条评论