一、简介
基于matlab指纹识别比对系统,指纹识别作为一种生物识别技术,已经广泛应用于身份认证和安全领域。每个人的指纹都是独特的,这使得指纹识别成为了一种可靠且高效的身份验证方法。在MATLAB环境中,我们可以实现指纹识别的整个过程,包括指纹图像的预处理、特征提取和匹配识别。
二、部分源码
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global image1
global thin1
[thin1,bw]=pre_process(image1);
show_image(bw,handles,2,'二值图');
set(handles.edit1,'string','二值化处理');
% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global thin1
show_image(thin1,handles,2,'细化图');
set(handles.edit1,'string','细化处理中');
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global thin1
global txy1
[txy1,count]=point(thin1);
for i=1:count - 1
x(i) =txy1(i, 1);
y(i)= txy1(i, 2);
end
show_image(thin1,handles,2,'特征图');
hold on;
plot(x,y,'bo');
set(handles.edit1,'string','特征提取');
% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global txy1
global thin1;
global pxy31
smooth_img=smooth(thin1,txy1);
txy1=cut(smooth_img,txy1);
show_image(smooth_img,handles,2,'光滑处理图');
hold on;
plot(txy1(:,1),txy1(:,2),'ro');
[pxy31,error2]=last1(thin1,8,txy1,60);
set(handles.edit1,'string','光滑处理');
% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global image2
[filename,pathname]=uigetfile({'*.tif';'*.*'},'载入指纹');
if isequal(filename,0)|isequal(pathname,0)
errordlg('没有选中文件','出错');
return;
else
file=[pathname,filename];
image2=imread(file);
show_image(image2,handles,3,'指纹图象2');
end
set(handles.edit1,'string','载入指纹图象2');
三、运行结果
四、matlab版本
MATLAB R2019a
五、学习与交流
文中不足之处请大家多多指教,学习与交流可以联系企鹅:3752243968
文中部分源码仅供参考,若需要全部代码可以私信