📄 fp_ridge_extraction.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% EE465 Introduction to Digital Image Processing Spring 2008
% Copyright: Xin Li
% Computer Assignment 5: Processing of fingerprint images
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% In this assignment, you are asked to apply what you have learned in this course
% such as edge detection and morphlogical filtering into processing fingerprint
% images. The objective is to extract the ridge pattern from the given fingerprint
% image and pin down the minutiae locations (optional)
% Part 1: compare various edge detectors
x=imread('fp.bmp');
e1=<apply sobel operator to image x>;
e2=<apply canny operator to image x>;
<compare e1 and e2 in the same figure using subplot command>;
% Part 2: apply morphological filtering to binarized image
y=<binarize image x by thresholding>;
b1=<apply bwmorph function within 'thin' operation to binarized image y>;
b2=<remove small objects whose size is smaller than 10 by bwareaopen>;
<display original image x and image b2 in the same figure>;
% Part 3: extract minutiae from the binary ridge map (optional, 1 extra point)
% Implement a new MATLAB function names minutiae_extraction that returns a
% binary image in which "1"s indicate the minutiae locations
b3=minutiae_extraction(b2);
% check the validity of your results
imshow(x);hold on;
[i,j]=find(b3==1);
plot(j,i,'o');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -