指纹增强-指纹增强.rar
有一位论坛朋友寻找的关于一篇经典指纹增强文章的源代码:
帖子如下(含文章):
https://www.ilovematlab.cn/thread-74316-1-1.html
这个源程序的一个实例:介绍一下怎么应用
clear
clc
im = imread;
if length)>2
im=rgb2gray;
end
% Identify ridge-like regions and normalise image
blksze = 16; thresh = 0.1;
[normim, mask] = ridgesegment;
show;
% Determine ridge orientations
[orientim, reliability] = ridgeorient;
plotridgeorient
show
1.jpg
2.jpg
3.jpg
原图 Orientations overlaid 'Reliability' of orientations
% Determine ridge frequency values across the image
blksze = 36;
[freq, medfreq] = ridgefreq;
show
Frequency data
% Actually I find the median frequency value used across the whole
% fingerprint gives a more satisfactory result...
freq = medfreq.*mask;
% Now apply filters to enhance the ridge pattern
newim = ridgefilter;
show;
Filtered image
% Binarise, ridge/valley threshold is 0
binim = newim > 0;
show;
Binary image
% Display binary image for where the mask values are one and where
% the orientation reliability is greater than 0.5
show, 7)
Masked binary image
Original image
程序包如下:
指纹增强.rar
程序包含:
QQ截图未命名.jpg