MATLAB: Process all pictures in one folder

process pictures without systematic names

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.

Best Answer

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