saving images as a database
Mostrar comentarios más antiguos
I am trying to put a folder of jpg images in a database .mat i tried this from similar stuff that i googled, i was successful doing it to one image using
save('test.mat','f')
here is the failed code,
if true
srcFiles = dir('F:\matlab\face\data\*.jpg') % the folder images are in
for i = 1 : length(srcFiles)
filename = imread(['F:\matlab\face\data\',srcFiles(i).jpg]);
holdImage(i) = imread(filename);
end save('testimagebase.mat','holdImage'); end
1 comentario
Tony
el 14 de En. de 2014
Respuesta aceptada
Más respuestas (1)
Categorías
Más información sobre Database Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!