vedicentro.m

来自「自己收集到的指纹预处理的各种方法」· M 代码 · 共 26 行

M
26
字号
% 图像获取
% Modified by PRTsinghua@hotmail.com
a=imread('37_7.bmp');
% rotate image
a=imrotate(a,0);
% write to a BitMap image the rotated mage
imwrite(a,'pippo.bmp');

% if image sizes are not 8*K where K is an integer
% image is resized
img=double(a);
imgN=size(img,1);
imgM=size(img,2);
modN=mod(imgN,8);
modM=mod(imgM,8);
img=img(modN+1:imgN,modM+1:imgM);

% call "centralizing" function
[out,xc,yc]=centralizing(img,0);

% show image and the center point determinated by
% the previous function
imshow(a);
hold on;
plot(xc,yc,'O');
hold off;

⌨️ 快捷键说明

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