資源簡介
基于matlab的指紋識別技術(shù)研究,生物特征識別技術(shù)克服了許多傳統(tǒng)身份認證方法的缺點,且識別正確率較
高,使用方便。由于人體指紋具有與生俱來、終身不變、唯一性、高防偽性和使
用便利等優(yōu)點使得指紋識別技術(shù)成為應(yīng)用最好的生物特征識別技術(shù),已經(jīng)逐步在
門禁、考勤、金融、公共安全和電子商務(wù)等領(lǐng)域得到應(yīng)用。指紋識別是圖像處理的一個熱點問題

代碼片段和文件信息
function?[OutputprintXofCenterYofCenter]?=?centralizing(fingerprintctrl)
% ?modified?by?PRTsinghua@hotmail.com
imgN=size(fingerprint1);
imgM=size(fingerprint2);
image?=?wiener2(fingerprint[3?3]);
[GxGy]?=?gradient(image);
orientnum?=?wiener2(2.*Gx.*Gy[3?3]);
orientden?=?wiener2((Gx.^2)?-?(Gy.^2)[3?3]);
W?=?8;
ll?=?9;
orient?=?zeros(imgN/WimgM/W);
%-----------------------------------------------
points=(imgN/W)*(imgM/W);
for?i?=?1:1:points
????x?=?floor((i-1)/(imgM/W))*W+1;
????y?=?mod(i-1(imgN/W))*W+1;
????numblock?=?orientnum(y:y+W-1x:x+W-1);
????denblock?=?orientden(y:y+W-1x:x+W-1);
????
????somma_num=sum(sum(numblock));
????somma_denom=sum(sum(denblock));
????
????if?somma_denom?~=?0
????????inside?=?somma_num/somma_denom;
????????angle?=?0.5*atan(inside);
????else
????????angle?=?pi/2;
????end
????%?each?block
????if?angle?0
????????if?somma_num?0
????????????angle?=?angle?+?pi/2;
????????else
????????????angle?=?angle?+?pi;
????????end
????else
????????if?somma_num?>?0
????????????angle?=?angle?+?pi/2;
????????end
????end
????orient(1+(y-1)/W1+(x-1)/W)?=?angle;???
end
binarize?=?(orient?[bibj]?=?find(binarize);
xdir?=?zeros(WW);
ydir?=?zeros(WW);
for?k?=?1:1:size(bj1)
????i?=?bj(k);
????j?=?bi(k);
????if?orient(ji)?????????x?=?fix(ll*cos(orient(ji)-pi/2)/(W/2));
????????y?=?fix(ll*sin(orient(ji)-pi/2)/(W/2));
????????xdir(ji)?=?i-x;
????????ydir(ji)?=?j-y;
????????
????end
end
binarize2?=?zeros(imgN/WimgM/W);
for?i?=?1:1:size(bj1)
????x?=?bj(i);
????y?=?bi(i);
????if?~(xdir(yx)?1?|?ydir(yx)?1?|?xdir(yx)?>?imgM/W?|?ydir(yx)?>?imgN/W)
????????while?binarize(ydir(yx)xdir(yx))?>?0
????????????xtemp?=?xdir(yx);
????????????ytemp?=?ydir(yx);
????????????if?xtemp?1?|?ytemp?1?|?xtemp?>?imgM/W?|?ytemp?>?imgN/W
????????????????break;
????????????end
????????????x?=?xtemp;
????????????y?=?ytemp;
????????????if?xdir(yx)?1?|?ydir(yx)?1?|?xdir(yx)?>?imgM/W?|?ydir(yx)?>?imgN/W
????????????????if?x-1?>?0
????????????????????while?binarize(yx-1)?>?0
????????????????????????x?=?x-1;
????????????????????????if?x-1?1
????????????????????????????break;
????????????????????????end
????????????????????end
????????????????end
????????????????break;
????????????end
????????end
????end
????binarize2(yx)?=?binarize2(yx)+1;
end
[tempy]?=?max(binarize2(1:end-7:));
[temp2x]?=?max(temp);
angle?=?orient(y(x)x)-pi/2;
XofCenter=round(x*W-(W/2)-(ll/2)*cos(angle));
YofCenter=round(y(x)*W-(W/2)-(ll/2)*sin(angle));
Outputprint=binarize2;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????66614??2001-01-11?11:56??matlab?sourcecode?for?指紋\19_7.bmp
?????文件?????132118??2000-08-21?00:28??matlab?sourcecode?for?指紋\22443.bmp
?????文件??????66614??2001-01-11?11:56??matlab?sourcecode?for?指紋\37_3.bmp
?????文件??????66614??2001-01-11?11:56??matlab?sourcecode?for?指紋\37_5_2.bmp
?????文件??????66614??2001-01-11?11:56??matlab?sourcecode?for?指紋\37_7.bmp
?????文件???????2627??2004-03-05?03:41??matlab?sourcecode?for?指紋\centralizing.m
?????文件???????1489??2004-03-05?05:10??matlab?sourcecode?for?指紋\Cropping.m
?????文件??????28834??2004-03-08?02:35??matlab?sourcecode?for?指紋\fpextractdemo.m
?????文件????????578??2004-03-05?05:11??matlab?sourcecode?for?指紋\gabor2d_sub.m
?????文件??????65792??2004-03-08?02:22??matlab?sourcecode?for?指紋\informations.dat
?????文件?????????81??2004-06-30?00:52??matlab?sourcecode?for?指紋\readme.txt
?????文件???????1717??2004-03-05?05:13??matlab?sourcecode?for?指紋\sector_norm.m
?????文件????????572??2004-03-05?05:12??matlab?sourcecode?for?指紋\vedicentro.m
?????文件????????929??2004-03-05?05:14??matlab?sourcecode?for?指紋\whichsector.m
????...D..R?????????0??2005-04-12?14:44??matlab?sourcecode?for?指紋
-----------?---------??----------?-----??----
???????????????501193????????????????????15
- 上一篇:基于MARS的PMSM 無速度傳感器控制
- 下一篇:多目標粒子群算法源代碼
評論
共有 條評論