• 大小: 6KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-04
  • 语言: Matlab
  • 标签:

资源简介

对指纹图像进行预处理,指纹特征提取,指纹匹配;预处理中,采用图像的归一化,图像的分割,二值化处理,图像增强和细化方法。

资源截图

代码片段和文件信息

close all;
tic
clear;
thin1=yuchuli(‘finger2.jpg‘);
thin2=yuchuli(‘finger1.jpg‘);

txy1=point(thin1);
figure;point(thin1);title(‘端点和交叉点的细化图像‘)
txy2=point(thin2);
w1=guanghua(thin1);
figure;imshow(w1);title(‘光滑后图像‘)

w2=guanghua(thin2);
thin1=w1;
figure;point(thin1);title(‘光滑后端点和交叉点图像‘)
thin2=w2;

figure;point(thin1);title(‘去除图像边缘端点‘)
txy1=cut(thin1txy1);

cut(thin1txy1);
txy2=cut(thin2txy2);

figure;point(thin1);
%title(‘满足条件的特征点‘)
txy1=cut(thin1txy1);
[pxy1error]=single_point(txy120);

figure;point(thin1);title(‘指纹图像显示‘)
cut(thin1txy1);

[pxy31error1]=last1(thin18txy160);
[pxy32error2]=last1(thin28txy260);
error=1;   
num=20;
cxy1=pxy31;
   cxy2=pxy32;
   d1=distance(cxy1(11)cxy1(12)numthin1);
   d2=distance(cxy2(11)cxy2(12)numthin2);
  f=(sum(abs((d1./d2)-1)));
  if f<=0.5
      error=0;
  else
      error=1;
  end
  f
  
   c11=find_point(cxy1(11)cxy1(12)txy11);
    c12=find_point(cxy1(11)cxy1(12)txy12);
    c21=find_point(cxy2(11)cxy2(12)txy21);
    c22=find_point(cxy2(11)cxy2(12)txy22);
    cxy1(2:)=c11;
    cxy1(3:)=c12(2:);
    cxy2(2:)=c21;
    cxy2(3:)=c22(2:);
 
    x11=cxy1(11);  y11=cxy1(12);
    x12=cxy1(21);  y12=cxy1(22);
    x13=cxy1(31);  y13=cxy1(32);
    x21=cxy2(11);  y21=cxy2(12);
    x22=cxy2(21);  y22=cxy2(22);
    x23=cxy2(31);  y23=cxy2(32);
    dd1(1)=juli(x11y11x12y12);
    dd1(2)=juli(x12y12x13y13);
    dd1(3)=juli(x13y13x11y11);
    dd2(1)=juli(x21y21x22y22);
    dd2(2)=juli(x22y22x23y23);
    dd2(3)=juli(x23y23x21y21);
    ff=(sum(abs((dd1./dd2)-1)))
    if ff<=1
        error=0;
    else 
        error=1;
    end
    cxy1(2:41:)=find_point(pxy31(11)pxy31(12)txy140);
    cxy2(2:41:)=find_point(pxy32(11)pxy32(12)txy240);
    f11=length(find(cxy1(:3)==2));
    f12=length(find(cxy1(:3)==6));
    f21=length(find(cxy2(:3)==2));
    f22=length(find(cxy2(:3)==6));
    fff=abs(f11-f21)/(f11+f12)
    if f<0.5&&ff<1.5&&fff<0.2
        disp(‘指纹匹配!‘)
    else
        disp(‘指纹不匹配!‘)
     end   
    toc

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-04-30 09:16  zhiwen\
     文件         488  2014-04-29 09:29  zhiwen\P.m
     文件        2195  2014-04-30 09:02  zhiwen\boss.m
     文件         616  2014-04-29 09:30  zhiwen\cut.m
     文件         203  2014-04-29 09:32  zhiwen\distance.m
     文件         383  2014-04-29 09:32  zhiwen\find_point.m
     文件         328  2014-04-30 08:30  zhiwen\guanghua.m
     文件          68  2014-04-29 21:23  zhiwen\juli.m
     文件         377  2014-04-29 09:31  zhiwen\last1.m
     文件         714  2014-04-29 21:52  zhiwen\point.m
     文件         476  2014-04-30 09:14  zhiwen\single_point.m
     文件         906  2014-04-29 09:31  zhiwen\walk.m
     文件        5567  2014-04-29 21:42  zhiwen\yuchuli.m

评论

共有 条评论

相关资源