How to read a set of images ?

Hello,
I would like to read a set of images from a file, the code I wrote is :
M = cell(size('C:\Users\***\Downloads\barcelona\barcelona'));
for i=1:length('C:\Users\***\Downloads\barcelona\barcelona')
IM{i} = imread(C:\Users\***\Downloads\barcelona\barcelona{i});
end
But I had this error :
IM{i} = imread(C:\Users\***\Downloads\barcelona\barcelona{i});
|
Error: Unexpected MATLAB operator.
Can someone help me please ?
Thanks !

 채택된 답변

Walter Roberson
Walter Roberson 2011년 12월 11일

0 개 추천

There are several errors in that code, and rather than describe them one by one, I will just refer you to information on how to do what you want: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F

추가 답변 (1개)

K.
K. 2011년 12월 11일

0 개 추천

Thanks a lot !
I used the code in the link you mentioned and it works.

카테고리

도움말 센터File Exchange에서 Manage Products에 대해 자세히 알아보기

태그

질문:

K.
2011년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by