Sir, I have 80 images of 10 persons ( 8 images per person ) , I would like to convert first 3 images to testing and remaning 5 images to training. can I modify following code like this. Please answer me...

1 view (last 30 days)
function build_db(ICount, JCount) p=0; path = 'E:\MATLAB\R2016b\bin\img\DB1_B\' for i=1:ICount % 10 for j=1:JCount % 8 filename=[path,num2str(i) '_' num2str(j) '.bmp'];
img = imread(filename);
img = imresize(img,[374 388]);
p=p+1;
if ndims(img) == 3;
img = rgb2gray(img);
end % colour image
disp(['extracting features from ' filename ' ...']);
ff{p}=ext_finger(img,1);
end
end
save('db.mat','ff');
end

Answers (0)

Community Treasure Hunt

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

Start Hunting!