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...
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!