process all pictures in one folder

Hi all
i have some pictures with no systematic names in one folder,such as '01_HA.bmp', '02_AN.bmp'. How can i read and process all without changing names to be systematic.

 Akzeptierte Antwort

Jan
Jan am 24 Sep. 2013
Bearbeitet: Jan am 24 Sep. 2013

0 Stimmen

I assume, that there is any systematic in the name, e.g. the file extension and location inside the same folder:
Folder = 'C:\YourFolder';
List = dir(fullfile(Folder, '*.bmp'));
for k = 1:length(List)
File = fullfile(Folder, List(k).name);
% Your processing here
disp(File);
end

2 Kommentare

Image Analyst
Image Analyst am 24 Sep. 2013
More code examples are in the FAQ, on this and other topics: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
Xu anbing
Xu anbing am 24 Sep. 2013
Thanks Jan Simon. Works perfectly!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 24 Sep. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by