how i create a 7 images database and compare with a input image and also save it in a.mat file

2 views (last 30 days)
% BUILDING FINGERPRINT MINUTIAE DATABASE
% Usage: build_db(ICount, JCount);
% Argument: ICount - Number of FingerPrints
% JCount - Number of Images Per FingerPrint
  3 Comments
indrani dalui
indrani dalui on 2 May 2020
actually sir i don't know how to creat database in matlab.so i don't know what would i have used.i download a code from matlab .when i input a image and compare then its compare with the image from db.mat.but .if i am store my image file with the name and put the image on the file.but when i compared the image it shows the result with input image and previously sored image.sir code is attached herewith.please guide me what should i do.
%% GET FEATURES OF AN ARBITRARY FINGERPRINT FROM THE TEMPLATE AND MATCH IT WITH FIRST ONE
load('db.mat'); i=1;
second=['10' num2str(fix((i-1)/8)+1) '_' num2str(mod(i-1,8)+1)];
disp(['Computing similarity between ' filename ' and ' second ' from FVC2002']);
S=match(ffnew,ff{i},1);
Image Analyst
Image Analyst on 5 May 2020
Not sure what all that is, but to see if two images match completely, you can use isequal(image1, image2).

Sign in to comment.

Accepted Answer

Mrutyunjaya Hiremath
Mrutyunjaya Hiremath on 4 May 2020
% ICount - Number of FingerPrints
% JCount - Number of Images Per FingerPrintICount=7;
ICount = 7;
JCount = 7;
p=0;
for i=1:ICount
for j=1:JCount
filename1=['10' num2str(i) '_' num2str(j) '.jpg'];
img = imread(filename1); % Example: image file name 101_1.jpg, 101_2.jpg .... 102_1.jpg ...
p=p+1;
if ndims(img) == 3;
img = rgb2gray(img);
end % colour image
disp(['extracting features from ' filename1 ' ...']);
ff{p} = extractFeatures(img); %User defined function, return single row Minutiae features
end
end
save('db.mat','ff');% save Minutiae to Database
  10 Comments
indrani dalui
indrani dalui on 5 May 2020
mat file not create in my current directory.what should i do first..sir i tried but it's not working sir.sir please help.
Image Analyst
Image Analyst on 5 May 2020
Use fullfile() to create the name using the other folder it's in:
folder = 'c:/users/indriani/document/whatever';
fullFileName = fullfile(folder, 'db1.mat')
s = load(fullFileName)

Sign in to comment.

More Answers (1)

Mrutyunjaya Hiremath
Mrutyunjaya Hiremath on 6 May 2020
Edited: Mrutyunjaya Hiremath on 6 May 2020
Hello Indrani,
the code you are using has sepecific format for finger print file reading. you are using dataset DB1 from 'FVC2002'. This contains file name as 101_1.tif, 101_2.tif, 101_3.tif, ..... 101_8.tif, 102_1.tif, ..... 110_7.tif, 110_8.tif. for that reson below format is used.
second=['10' num2str(fix((i-1)/8)+1) '_' num2str(mod(i-1,8)+1)];
if you are using you own dataset with diffent file syntax, then this wont work.
I have changed made some changes in 'main_single_new.m' and 'build_db1.m'.
used matlab command uigetfile in main_single_new and uigetdir in build_db1().
Place those two file in you folder 'Simple_FingerPrint_Matching' and run 'main_single_new.m'
And one more in build_db1.m file formats I used is '.tif'.
  7 Comments
indrani dalui
indrani dalui on 12 May 2020
sir, i have a fingerprint image ,in this image i apply visual cprotrograpy after applied this the image is destroted bt when i using vc image to match my database image ...the same fingerprint image not showing the similer image..what should i do in this case ..i attach same image one is fresh and another is after applied visual criptography.
attached file tif.zip is fresh fingerprint image and vcssample.zip fingerprint of visual criptrography images
Mrutyunjaya Hiremath
Mrutyunjaya Hiremath on 20 May 2020
There are 3 missing points here.
  1. Visual Cryptography - Encrypted data. If you want to match, Decrypt it before Matching.
  2. Visual Cryptography - usually have multiple share images.
  3. The shared VCSSsmple images are double in width (NOT properly encrypted).
Refer It, Simple animated Image : https://en.wikipedia.org/wiki/Visual_cryptography

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!