?? gui.m
字號:
%fingerprint image segmentation
%GUI
%advanced fingerprint and face biometrics recognition codes
%more code, please visit http://biometrics.lingd.net/
%modifide by yang jucheng, chonbuk national univeristy, korea
clear;
%clc;
close all;
chos=0;
possibility=3;
messaggio='Insert the number of set: each set determins a class. This set should include a number of images for each person, with some variations in expression and in the lighting.';
while chos~=possibility,
chos=menu('fingerprint segmentation','Select image','segmented image','Exit');
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
if chos==1
clc;
close all;
selezionato=0;
while selezionato==0
[namefile,pathname]=uigetfile({'*.bmp;*.tif;*.tiff;*.jpg;*.jpeg;*.gif','IMAGE Files (*.bmp,*.tif,*.tiff,*.jpg,*.jpeg,*.gif)'},'Chose GrayScale Image');
if namefile~=0
[img,map]=imread(strcat(pathname,namefile));
selezionato=1;
else
disp('Select a grayscale image');
end
if (any(namefile~=0) && (~isgray(img)))
disp('Select a grayscale image');
selezionato=0;
end
end
figure('Name','Selected image');
imshow(img);
%immagine=double(img);
if isa(img,'uint8')
graylevmax=2^8-1;
end
if isa(img,'uint16')
graylevmax=2^16-1;
end
if isa(img,'uint32')
graylevmax=2^32-1;
end
end%
if chos==2
clc;
close all;
% segmentation msk
msk = segment_print(img,0);
%if msk==0, image part is 128
img(msk==0) = 128;
figure('Name','segmented image');
imshow(img);
end %
end % fine while
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -