Useful Matlab Code
Useful Matlab Code
REPORT THIS AD
REPORT THIS AD
Leave a comment
Leave a comment
Minutuae Extraction
(https://chungheimankennis.wordpress.com/2015/03/
17/minutuae-extraction/)
March 17, 2015 chungheimankennis Useful Matlab Code
h p://uk.mathworks.com/matlabcentral/fileexchange/31926-fingerprint-minutiae-
extraction/content/Fingerprint_Minutiae_Extraction/Minutuae_Extraction.m
(h p://uk.mathworks.com/matlabcentral/fileexchange/31926-fingerprint-minutiae-
extraction/content/Fingerprint_Minutiae_Extraction/Minutuae_Extraction.m)
Leave a comment
binarization
(https://chungheimankennis.wordpress.com/2015/03/
12/binarization/)
clear all
[X,map]=imread(’25.bmp’);
BW = im2bw(X,map,0.38);
imshow(X,map), figure, imshow(BW)
imshow(BW,’border’,’tight’);
*Need to adjust the level manually depending on the quality of the picutre
Leave a comment
ridge bifurcation
(https://chungheimankennis.wordpress.com/2015/03/
11/matlab-code/)
-ridge bifurcation
Leave a comment
Fingerprint Enhancement
ridgesegment.m (h p://www.csse.uwa.edu.au/~pk/research/matlabfns/FingerPrints/ridgesegment.m)
identifies ridge-like regions of a fingerprint image. It also normalises the intensity values of the image.
ridgeorient.m (h p://www.csse.uwa.edu.au/~pk/research/matlabfns/FingerPrints/ridgeorient.m)
estimates the local orientation of ridges in a fingerprint.
plotridgeorient.m
(h p://www.csse.uwa.edu.au/~pk/research/matlabfns/FingerPrints/plotridgeorient.m) plots ridge
orientations calculated by ridgeorient.
ridgefreq.m (h p://www.csse.uwa.edu.au/~pk/research/matlabfns/FingerPrints/ridgefreq.m) estimates
the local ridge frequency across a fingerprint image.
freqest.m (h p://www.csse.uwa.edu.au/~pk/research/matlabfns/FingerPrints/freqest.m) estimates the
ridge frequency within a small block of an image. This is used by ridgefreq.
ridgefilter.m (h p://www.csse.uwa.edu.au/~pk/research/matlabfns/FingerPrints/ridgefilter.m)
enhances a fingerprint image using oriented filters.
Example (h p://www.csse.uwa.edu.au/~pk/research/matlabfns/FingerPrints/Docs/index.html) of using
these functions above.
h p://matlabsproj.blogspot.co.uk/2012/06/optimization-of-image-recognition.html
(h p://matlabsproj.blogspot.co.uk/2012/06/optimization-of-image-recognition.html)
h p://141708.157.fileflash.com/info/ (h p://141708.157.fileflash.com/info/)
h p://www.fingerprintrecognition.it/neuralfinger.asp
(h p://www.fingerprintrecognition.it/neuralfinger.asp)
Leave a comment
Gabor filter
(https://chungheimankennis.wordpress.com/2015/03/
05/gabor-filter/)
function gabor_example()
% an example to demonstrate the use of gabor filter.
% requires lena.jpg in the same path.
% the results mimic:
% h p://matlabserver.cs.rug.nl/edgedetectionweb/web/edgedetection_examples
(h p://matlabserver.cs.rug.nl/edgedetectionweb/web/edgedetection_examples)
% .html
% using default se ings (except for in radians instead of degrees)
%
% note that gabor_fn only take scalar inputs, and multiple filters need to
% be generated using (nested) loops
%
% also, apparently the scaling of the numbers is different from the example
% software at
% h p://matlabserver.cs.rug.nl (h p://matlabserver.cs.rug.nl)
% but are consistent with the formulae shown there
lambda = 8;
theta = 0;
psi = [0 pi/2];
gamma = 0.5;
bw = 1;
N = 8;
img_in = im2double(imread(‘1a.jpg’));
img_in(:,:,2:3) = []; % discard redundant channels, it’s gray anyway
img_out = zeros(size(img_in,1), size(img_in,2), N);
for n=1:N
gb = gabor_fn(bw,gamma,psi(1),lambda,theta)…
+ 1i * gabor_fn(bw,gamma,psi(2),lambda,theta);
% gb is the n-th gabor filter
img_out(:,:,n) = imfilter(img_in, gb, ‘symmetric’);
% filter output to the n-th channel
theta = theta + 2*pi/N;
% next orientation
end
figure(1);
imshow(img_in);
title(‘input image’);
figure(2);
img_out_disp = sum(abs(img_out).^2, 3).^0.5;
% default superposition method, L2-norm
img_out_disp = img_out_disp./max(img_out_disp(:));
% normalize
imshow(img_out_disp,‘border’,’tight’);
Leave a comment
Final Year Project (h ps://chungheimankennis.wordpress.com/)
Create a free website or blog at WordPress.com. (h ps://wordpress.com/?ref=footer_website)