资源简介
基于模板匹配的人脸检测-教程-matlab代码,包括m文件,图片

代码片段和文件信息
%**************************************************************************
%Following function determines whether the region aspect ratio is within
%range of being a face region
function [aspectBW]=aspect_test(eulerBW)
[mn]=size(eulerBW);
%fill holes in image
filledBW = imfill(eulerBW‘holes‘);
%Apply Dilation
se1 = strel(‘disk‘3);
growBW=zeros(mn);
growBW=imdilate(filledBWse1);
%label as binary
[labelsnum] = bwlabel(growBW8);
[aspect_ratio]=get_aspect(labels);
% %take regions which has aspect ratio within range
region_index = find(aspect_ratio<=3.5 & aspect_ratio>=1);
aspectBW=zeros(mn);
%make new binary image only with regions which pass euler test
for i=1:length(region_index)
% Compute the coordinates for this region.
[xy] = find(bwlabel(filledBW) == region_index(i));
% Get an image that only has this region the rest is black
bwsegment = bwselect(filledBWyx8);
aspectBW=aspectBW+bwsegment;
end
subplot(4310);
imshow(aspectBW)
title({‘After Aspect Ratio Test‘;[‘(‘num2str(length(region_index))‘ regions)‘]})
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 26994 2013-04-15 23:36 matlab tutorial detectface [AIT Computer Vision Wiki].htm
文件 58 2013-04-16 19:30 url.txt
文件 1091 2013-04-15 23:52 detection\aspect_test.m
文件 289 2013-04-15 23:53 detection\checklimit.m
文件 918 2013-04-15 23:52 detection\euler_test.m
文件 1090 2013-04-15 23:54 detection\face_detection.m
文件 556 2013-04-15 23:53 detection\get_aspect.m
文件 625 2013-04-15 23:48 detection\get_crcb.m
文件 1139 2013-04-15 23:51 detection\get_likelyhood.m
文件 1281 2013-04-15 23:51 detection\label_regions.m
文件 1703 2013-04-15 23:49 detection\make_model.m
文件 463 2013-04-15 23:48 detection\plot_hist2d.m
文件 679 2007-07-16 13:16 detection\sampleset\1.JPG
文件 686 2007-07-16 14:57 detection\sampleset\10.JPG
文件 657 2007-07-16 15:23 detection\sampleset\11.JPG
文件 701 2007-07-16 15:27 detection\sampleset\12.JPG
文件 673 2007-07-30 13:29 detection\sampleset\13.jpg
文件 672 2007-07-16 13:17 detection\sampleset\2.JPG
文件 672 2007-07-16 13:17 detection\sampleset\3.JPG
文件 656 2007-07-16 13:30 detection\sampleset\4.JPG
文件 646 2007-07-16 13:35 detection\sampleset\5.JPG
文件 676 2007-07-16 13:46 detection\sampleset\6.JPG
文件 669 2007-07-16 14:07 detection\sampleset\7.JPG
文件 691 2007-08-02 09:36 detection\sampleset\8.JPG
文件 668 2007-07-16 14:53 detection\sampleset\9.JPG
文件 12900 2007-08-02 09:54 detection\sampleset\sampleset.rar
..A.SH. 27136 2007-08-02 09:38 detection\sampleset\Thumbs.db
文件 1103 2013-04-15 23:51 detection\segment_adaptive.m
文件 2982 2013-04-16 19:15 detection\template.jpg
文件 4226 2013-04-15 23:53 detection\template_test.m
............此处省略41个文件信息
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论