tags:

views:

163

answers:

1

Hello ,

I have bitmap images file in my computer.And I numbered images form 1 to 100.

I want to read image synchronously.

Something like:

for i=1:100
    % read images
    s = sprintf('C:\\images\\%d.bmp', i);  
    A[i] = imread(s);
    A[i] = double(A);
end

I know that this code can't work.Is there a function that perform my algorithm in MATLAB

Could you help me please?

+3  A: 

You can use cell matrices

A = cell(100,1);
for i=1:100
    % read images
    s = sprintf('C:\\images\\%d.bmp', i);  
    A{i} = imread(s);
    A{i} = double(A{i});
end
Ben
I think you mean A{i} = double(A{i})
Dima
Yes, that is correct.
Ben

related questions