資源簡介
基于MATLAB(2016)的指紋識別系統(tǒng),包括Gabor濾波等圖像增強過程,附有詳細(xì)注釋,可供程序運行圖片,便于初學(xué)者學(xué)習(xí)。

代碼片段和文件信息
%function?[opts]?=?Create_GaborF?(ipts?par)
%
%
%?This?function?aims?to?create?the?argumented?Gabor?feature.
%?
%???input
%?????????ipts.??????????????input?data?structure
%??????????????dat???????????3d?image?data?matrix?each?dat(::i)?is?an?(downsampled)?
%????????????????????????????image?matrix.
%?????????par.???????????????input?parameter?structure
%??????????????ds_w??????????the?downsample?image‘s?width?in?Gabor
%??????????????ds_h??????????the?downsample?image‘s?heigth?in?Gabor
%??????????????ke_w??????????Gabor?kernel‘s?width
%??????????????ke_h??????????Gabor?kernel‘s?heigth
%??????????????Kmax??????????Gabor?kernel‘s?para?default(pi/2)
%??????????????f?????????????Gabor?kernel‘s?para?default(sqrt(2))
%??????????????sigma?????????Gabor?kernel‘s?para?default(pi?or?1.5pi)
%??????????????Gabornum??????Gabor?kernel‘s?number
%
%??output
%????????opts.??????????????output?data?structure
%????????????gdat???????????Gabor?feature?of?training?data?each?column?is
%???????????????????????????the?argumented?gabor?feature?vector?of?a?sample
%--------------------------------------------------------------------------
%???????????????????????????Note(Zhen?Cui):?every?Gabor?kernel?spans?a
%???????????????????????????vector?of?ds_w*ds_h?and?then?concatenated?the
%???????????????????????????Gabornum?thus?vector.
%--------------------------------------------------------------------------
%
%??Copyright??Mike?YANG?PolyU?Hong?Kong
%??reference:?LiuC.WechslerH.:Gabor?Feature?based?Classification?Using?the?Enhanced?Fisher
%??Linear?Discriminant?Model?for?Face?Recognition?IEEE?IP?11?(2002)467–476.
%
function?[opts]????=????Create_GaborF?(ipts?par)
if?mod(par.ke_w2)~=1?|?mod(par.ke_h2)~=1
????error(‘The?width?and?height?of?Gabor?kernel?should?be?odd?number‘);
end
[?GaborReal?GaborImg?]??=???MakeAllGaborKernal(?par.ke_h?par.ke_w?par.Gabor_numpar.Kmax?par.f?par.sigma);
radius_w???????=????floor(par.ke_w/2);
radius_h???????=????floor(par.ke_h/2);
center_w???????=????radius_w+1;
center_h???????=????radius_h+1;
ker_ener???????=????[];
%?according?the?par.raT?to?select?a?suitable?and?accurate?size?of?kernel?window
for?step??=??1:?(radius_w+radius_h)/2
????ratio??????????=????0;
for?i??=??1?:40
????temp_r1?=?sum(sum(abs(GaborReal(center_h-radius_h+step:center_h+radius_h-stepcenter_w-radius_w+step:center_w+radius_w-stepi))));
????temp_r2?=?sum(sum(abs(GaborReal(::i))));
????temp_i1?=?sum(sum(abs(GaborImg(center_h-radius_h+step:center_h+radius_h-stepcenter_w-radius_w+step:center_w+radius_w-stepi))));
????temp_i2?=?sum(sum(abs(GaborImg(::i))));
????ratio???=?ratio?+?temp_r1/temp_r2/80?+?temp_i1/temp_i2/80;
end
???ker_ener?=?[ker_ener?ratio];
???if?ratio???????step?=?step?-?1;
??????break;
???end
end
num?????=?????size(ipts.dat3);
for?i??=??1:?num
????tic
????kel_GR??=??GaborReal(center_h-radius_h+step:center_h+radius_h-stepcenter_w-radius_w+step:center_w+rad
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3255??2011-08-20?10:55??Gabor-Matlab\Gabor?Matlab\Create_GaborF.m
?????文件????????738??2011-03-03?17:23??Gabor-Matlab\Gabor?Matlab\Gaborforfolder.m
?????文件????????989??2011-03-03?17:14??Gabor-Matlab\Gabor?Matlab\Gaborsetting.m
?????文件????????985??2011-08-20?19:19??Gabor-Matlab\Gabor?Matlab\Gabor_T_Fast1.m
?????文件??????13078??2011-08-19?19:41??Gabor-Matlab\Gabor?Matlab\images\Crop1.bmp
?????文件?????120054??2007-07-24?09:47??Gabor-Matlab\Gabor?Matlab\images\test0.bmp
?????文件??????66614??2001-01-11?11:56??Gabor-Matlab\Gabor?Matlab\images\test1.bmp
?????文件?????132118??2000-08-21?00:28??Gabor-Matlab\Gabor?Matlab\images\test2.bmp
?????文件????????782??2010-07-09?10:09??Gabor-Matlab\Gabor?Matlab\MakeAllGaborKernal.m
?????文件???????1037??2010-07-08?22:16??Gabor-Matlab\Gabor?Matlab\MakeGaborKernal.m
?????文件????????174??2011-08-20?20:01??Gabor-Matlab\Gabor?Matlab\Readme.txt
?????目錄??????????0??2018-06-28?15:42??Gabor-Matlab\Gabor?Matlab\images
?????目錄??????????0??2013-06-26?12:08??Gabor-Matlab\Gabor?Matlab
?????目錄??????????0??2018-06-27?22:45??Gabor-Matlab
-----------?---------??----------?-----??----
???????????????339824????????????????????14
- 上一篇:指紋圖像預(yù)處理程序
- 下一篇:simuli
nk降壓電路
評論
共有 條評論