資源簡介
指紋識別的matlab代碼

代碼片段和文件信息
function?[OutputprintXofCenterYofCenter]?=?centralizing(fingerprintctrl)
% ?modified?by?Luigi?Rosa
global?immagine?n_bands?h_bands?n_arcs?h_radius?h_lato?n_sectors?matrice
x=[-16:1:16];
y=[-16:1:16];
dimx=size(x2);
dimy=size(y2);
%?varianza?gaussiana?ordine?filtro?complesso
varianza=sqrt(55);
ordine=1;
gamma=2;
filtro_core=zeros(dimxdimy);
filtro_delta=zeros(dimxdimy);
for?ii=1:dimx
????for?jj=1:dimy
????????esponente=exp(-(x(ii)^2+y(jj)^2)/(2*varianza^2));
????????%?filtro?core
????????fattore=x(ii)+i*y(jj);
????????filtro_core(iijj)=esponente*fattore^ordine;
????????%?filtro?delta????????
????????fattore=x(ii)-i*y(jj);
????????filtro_delta(iijj)=esponente*fattore^ordine;
????end
end
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
%------------------------------------
%?The?low-pass?filter?---------------
%------------------------------------
%?Gaussian?Low?Pass?Filter?----------
%------------------------------------
x=[-16:1:16];
y=[-16:1:16];
dimx=size(x2);
dimy=size(y2);
varianza=sqrt(1.2);
filtro=zeros(dimxdimy);
for?ii=1:dimx
????for?jj=1:dimy
????????esponente=exp(-(x(ii)^2+y(jj)^2)/(2*varianza^2));
????????filtro(iijj)=esponente;
????end
end
%?normalization
filtro=filtro/sum(sum(filtro));?
%------------------------------------
%------------------------------------
img=fingerprint;
img=double(img);
%--------------------------------------------------------------------------
%?complex?field?at?0?level
[gxgy]=gradient(img);
num=(gx+i*gy).^2;
den=abs((gx+i*gy).^2);
pos=find(den);
num(pos)=num(pos)./den(pos);
z=zeros(size(img1)size(img2));
z(pos)=num(pos);
pos=find(den==0);
z(pos)=1;
%**********************************
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
%------------------------?NOT?USED?----------------------------------------
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
if?1==0%-------------------------------?---------------------->?vecchio?algoritmo?che?risale?piramide?gaussiana
????%-------------------------------------
????%?complex?field?at??level?1
????z1=conv2fft(zfiltro‘same‘);
????z1=dyaddown(z11‘m‘);
????num=z1;
????den=abs(z1);
????pos=find(den);
????num(pos)=num(pos)./den(pos);
????z1=zeros(size(z11)size(z12));
????z1(pos)=num(pos);
????pos=find(den==0);
????z1(pos)=1;
????%**********************************
????%-------------------------------------
????%?complex?field?at??lev
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-01-09?16:40??指紋識別的matlab源碼\
?????文件???????66614??2001-01-11?11:56??指紋識別的matlab源碼\19_7.bmp
?????文件??????132118??2000-08-21?00:28??指紋識別的matlab源碼\22443.bmp
?????文件???????66614??2001-01-11?11:56??指紋識別的matlab源碼\37_3.bmp
?????文件???????66614??2001-01-11?11:56??指紋識別的matlab源碼\37_5_2.bmp
?????文件???????66614??2001-01-11?11:56??指紋識別的matlab源碼\37_7.bmp
?????文件????????1947??2004-05-22?16:10??指紋識別的matlab源碼\Cropping.m
?????文件???????11549??2004-06-23?01:04??指紋識別的matlab源碼\centralizing.m
?????文件????????6943??2004-06-19?20:10??指紋識別的matlab源碼\conv2fft.m
?????文件???????20312??2004-06-28?01:11??指紋識別的matlab源碼\fprec.m
?????文件?????????642??2004-04-26?18:18??指紋識別的matlab源碼\gabor2d_sub.m
?????文件?????????424??2004-06-19?20:09??指紋識別的matlab源碼\mirror.m
?????文件??????298672??2004-06-29?16:35??指紋識別的matlab源碼\old_version.zip
?????文件????????9849??2004-06-29?16:38??指紋識別的matlab源碼\readme.txt
?????文件?????????122??2004-06-19?20:10??指紋識別的matlab源碼\recrop.m
?????文件????????2773??2004-04-26?18:18??指紋識別的matlab源碼\sector_norm.m
?????文件?????????499??2004-06-19?20:04??指紋識別的matlab源碼\vedicentro.m
?????文件????????1203??2004-04-26?18:18??指紋識別的matlab源碼\whichsector.m
- 上一篇:用matlab實現控制系統的超前校正設計
- 下一篇:Matlab人臉檢測及跟蹤代碼
評論
共有 條評論