資源簡介
對指紋圖像進行預處理,指紋特征提取,指紋匹配;預處理中,采用圖像的歸一化,圖像的分割,二值化處理,圖像增強和細化方法。

代碼片段和文件信息
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
- 上一篇:mdt文件數據讀取,并繪制波形
- 下一篇:語音端點檢測程序matlab
評論
共有 條評論