How do I make a function read all the images in a directory?
Mostrar comentarios más antiguos
I have an images directory. What function can be used to read all of the images in that directory?
1 comentario
yen
el 17 de Mayo de 2011
Respuestas (3)
Matt Fig
el 16 de Mayo de 2011
I = dir('*.jpg'); % or jpeg or whatever.
for ii = 1:length(I)
C{ii} = imread(I(ii).name); % Store in a cell array.
end
Now the first image is stored as C{1}, the second as C{2}, etc...
Doug Hull
el 16 de Mayo de 2011
1 voto
Categorías
Más información sobre Deep Learning 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!