• 大小: 586KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-13
  • 语言: Matlab
  • 标签: 指纹识别  

资源简介

指纹识别的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

评论

共有 条评论