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.

 채택된 답변

Jan
Jan 2013년 9월 24일
편집: Jan 2013년 9월 24일

0 개 추천

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

Image Analyst
Image Analyst 2013년 9월 24일
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 2013년 9월 24일
Thanks Jan Simon. Works perfectly!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

질문:

2013년 9월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by