資源簡介
matlab 指紋識別 很好的課程設計代碼
代碼片段和文件信息
function?[sector_num]?=?whichsector(index)
%?Modiofied?by?Luigi?Rosa
%?index?is?the?index?of?current?pixel?of?cropped?image?(?cropped?image?is
%?175?x?175?);?sector_num?is?the?output?and?represents?what?is?the
%?corresponding?sector.
global?immagine?n_bands?h_bands?n_arcs?h_radius?h_lato?n_sectors?matrice
length?=?h_lato;
x?=?rem(?index??length?);
y?=?floor(index?/?length);
x?=?x?-?floor(length?/?2);
y?=?y?-?floor(length?/?2);
rad?=?(x*x)?+?(y*y);
if?rad?(h_radius*h_radius)??????????????????%?innerest?radius?=?12?(144=12*12)
????sector_num?=?(n_sectors-1)+1;
????sector_nu
- 上一篇:最小二乘法對未知節點進行定位
- 下一篇:直流電機雙閉環simuli
nk仿真
評論
共有 條評論