fsectorize.m

来自「一个指纹识别系统」· M 代码 · 共 29 行

M
29
字号
function Fsectorize
global   img img2 xc yc img3 graylevmax xc2 yc2
global text1 text2 text3 push1 push2 push3 push4 push5 push6 push7 push8 push9 push10 push11 push12 push13
global push14 push15 push16 push17 push18 push19 push20 push21 push22 push23 push24 push25 push26 push27 push28 push29 push30 push31 push32
haxes4=axes('parent',gcf,'position',[0.63 0.787 0.18 0.215],'visible','off','tag','keyelement');   
     set(gcf,'currentaxes',haxes4);%gca是当前句柄???????



img3=double(img2);
[out,xc2,yc2]=centralizing(img3,0);
[CroppedPrint]=cropping(xc2,yc2,img3);

for ( i=1:1:175*175)
    tmp=CroppedPrint(i);
    tmp=double(tmp);
  CroppedPrint(i)=whichsector(i);
     
    if (CroppedPrint(i)==36 | CroppedPrint(i)==37)
        CroppedPrint(i)=tmp/graylevmax;
    else 
     
        CroppedPrint(i)=tmp/64;
    end
    
end

imshow(CroppedPrint);
set(push5,'visible','on');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?