How to create database to store values

Asked by Pat on 29 Dec 2012
Latest activity Commented on by Sabarinathan Vadivelu on 29 Dec 2012
I have extracted two eatures of an image and have saved it in a variable
A=[f1 f2]%f1,f2 features
now i have 100 images and i want to save it to database,so finally my database will contain values of size 100x2
please help

0 Comments

Pat

Tags

Products

No products are associated with this question.

1 Answer

Answer by Sabarinathan Vadivelu on 29 Dec 2012
Edited by Sabarinathan Vadivelu on 29 Dec 2012
Accepted answer
for i = 1 : 100  % 100 is number of images
   A{i} = [f1 f2]; % make A as a cell
end
save('features.mat','A');   % create database

7 Comments

Sabarinathan Vadivelu on 29 Dec 2012

for 100 images, It is not possible to select all the 100 images manually, So

srcFiles = dir('E:\New Folder\*.jpg') % the folder in which ur images exists
for i = 1 : length(srcFiles)
    filename = imread(['E:\New Folder\',srcFiles(i).name]);
    inImage = imread(filename);
    % Generate the features f1 and f2
    Feature{i} = [f1 f2];
end
save('featuresextract.mat','Feature');
Pat on 29 Dec 2012

I am using 2 uigetfile

one for face f1 and other for iris f2

A=[f1 f2],

if am choosing more images,how to append it to the database

Sabarinathan Vadivelu on 29 Dec 2012

See the above comment. I answered for that also

Sabarinathan Vadivelu

Contact us