Предполагается, что в папке «C: \ ImagesSeq \» имеется 6 изображений 256x256 с именами от IM1.jpg до IM6.jpg.Теперь вы хотите прочитать это в Matlab.
IMArray=zeros(256,256,6); % preallocate the memonry for your image array
for i=1:6 % you can replace 6 by any number you need
Filename=sprintf('C:/ImagesSeq/IM%d.jpg',i);
IMArray(:,:,i)=imread(Filename);
end
% you can now accessing the pixel as last answer shows by indexing the Image array
SinglePixel = IMArray(1, 2, 3);
Надеюсь, это то, что вы имеете в виду ....:)