⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cubs_demo.m

📁 file document presentation
💻 M
字号:
%--------------------------------------------------------------------------
%  Version 1.0 March 2005
%  Copyright (c) 2005-2010 by Center for Unified Biometrics and Sensors
%  www.cubs.buffalo.edu
%
%cubs_demo
%demonstrates the capabilities of the CUBS fingerprint toolbox
%Contact:
%   ssc5@eng.buffalo.edu
%   www.eng.buffalo.edu/~ssc5
%Reference:
%S. Chikkerur,C. Wu and Govindaraju, "A Systematic approach for 
%feature extraction in fingerprint images",ICBA 2004
%T. Jea and V. Govindaraju, "A Minutia-Based Partial Fingerprint Recognition System", 
%to appear in Pattern Recognition 2005
%
% See also: cubs_visualize_template, cubs_match, cubs_enroll
%--------------------------------------------------------------------------
function cubs_demo
    %------------------------
    %blurb
    %------------------------
    clc;
    disp('---------------');
    disp('CUBS FP Toolbox')
    disp('---------------');
    disp('The toolbox contains matlab interfaces to fingerprint feature extraction and matching algorithm developed at the');
    disp('Center for Unified Biometrics and Sensors (http://www.cubs.buffalo.edu). The details of the algorithm');
    disp('are outlined in the following references.');
    disp('References:');
    disp('-----------');
    disp('1. S. Chikkerur,C. Wu and Govindaraju, A Systematic approach for feature extraction in fingerprint images",ICBA 2004');
    disp('2. T. Jea and V. Govindaraju, A Minutia-Based Partial Fingerprint Recognition System, to appear in Pattern Recognition, 2005');
    disp('3. T. Jea , V. Chavan, V. Govindaraju and J. K. Schneider, Security and matching of partial fingerprint recognition systems, Proceeding of SPIE,no. 5404, 2004 ');
    disp('Press any key to continue..');
    fprintf('\n\n');
    %------------------------
    %feature extraction
    %------------------------
    disp('It is extremely simple to extract features using the CUBS toolbox');
    disp('The features can be extracted by simply calling cubs_enroll');
    disp('Let us extract features of this image..');
    figure,imshow('1_1.tif'),title('Original Image');
    disp('Press any key to continue..');
    pause;
    
    %------------------------
    %enhancement
    %------------------------
    cubs_enroll('1_1.tif','1_1.fp');
    disp('The feature extraction process is carried out in four steps');
    disp('1.Enhancement - CUBSEnhanced.tif');
    figure,imshow('CUBSEnhanced.tif'),title('Enhanced Image');
    disp('Press any key to continue..');
    fprintf('\n\n');
    pause;
    %------------------------
    %enhancement
    %------------------------
    disp('2.Binarization - CUBSBinary.tif');
    figure,imshow('CUBSBinary.tif'),title('Binarized Image');
    disp('Press any key to continue..');
    fprintf('\n\n');
    pause;

    %------------------------
    %feature extraction
    %------------------------
    disp('2.Feature Extraction - CUBSBinary.tif');
    figure,imshow('CUBSContour_2.tif'),title('Features using chain code contour');
    disp('Press any key to continue..');
    fprintf('\n\n');
    pause;
    
    %------------------------
    %feature extraction
    %------------------------
    disp('The features can best be visualized using cubs_visualize_template');
    figure,cubs_visualize_template('1_1.fp');
    title('Minutiae Features');
    disp('Press any key to continue..');
    fprintf('\n\n');
    pause;

    %------------------------
    %matching
    %------------------------
    close all;
    disp('Now let us consider the matching process');
    disp('The features extracted can be matched using cubs_match');
    disp('Case I: Genuine pair');
    figure,subplot(1,2,1),cubs_visualize_template('1_1.fp');
    subplot(1,2,2),cubs_visualize_template('1_2.fp');
    drawnow;
    score = cubs_match('1_1.fp','1_2.fp');
    disp('Press any key to match');
    fprintf('------------------------\n');
    fprintf('Matching score is %d\n',score);
    fprintf('------------------------\n');
    msgbox(sprintf('Score is %d',score));
    disp('Press any key to continue..');
    fprintf('\n\n');
    pause;

    disp('Case II: Impostor pair');
    figure,subplot(1,2,1),cubs_visualize_template('1_1.fp');
    subplot(1,2,2),cubs_visualize_template('2_1.fp');
    drawnow;
    score = cubs_match('1_1.fp','2_1.fp');
    disp('Press any key to match');
    fprintf('------------------------\n');
    fprintf('Matching score is %d\n',score);
    fprintf('------------------------\n');
    msgbox(sprintf('Score is %d',score));

    disp('Press any key to continue..');
    fprintf('\n\n');
    pause;

    %------------------------
    %Thanks
    %------------------------
    disp('Thanks for evaluating CUBS(www.cubs.buffalo.edu) FPToolbox');
    disp('Please send comments and bug reports to: ssc5@eng.buffalo.edu');
%end function cubs_demo

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -