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...

2 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by