1 Star 2 Fork 0

itwuhai / 基于MATLAB指纹识别系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Val_ri_Fre.m 797 Bytes
一键复制 编辑 原始数据 按行查看 历史
itwuhai 提交于 2022-09-26 19:08 . 程序终稿
function [fre]=Val_ri_Fre(image)
% level=graythresh(image);
% tem_bw=(im2bw(image,level));
tem_bw=derection_bw(image);
tem_bw=bwmorph(tem_bw,'thin',inf);
n=0;
x=size(tem_bw,1);
y=size(tem_bw,2);
for i=1:x
for j=1:y
if tem_bw(i,j)==0
n=n+1;I=1;
while ((j+I)<=256)&&(tem_bw(i,(j+I))==1)
I=I+1;
end
N(n)=I;
end
end
end
locate=N<=4;
N(locate)=[];
locate=N>=30;
N(locate)=[];
fre1=mode(N);
locate=(N==fre1);
N(locate)=[];
fre2=mode(N);
locate=(N==fre2);
N(locate)=[];
fre3=mode(N);
% locate=(N==fre3);
% N(locate)=[];
% fre4=mode(N);
% locate=(N==fre4);
% N(locate)=[];
% fre5=mode(N);
% fre=ceil((fre1+fre2+fre3+fre4+fre5)/5);
fre=ceil(fre1+fre2+fre3)/3;
end
1
https://gitee.com/itwuhai/fingerprint-identification.git
git@gitee.com:itwuhai/fingerprint-identification.git
itwuhai
fingerprint-identification
基于MATLAB指纹识别系统
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891