|
On Oct 18, 10:31=A0am, "Smith S" <x...@yahoo.com> wrote:
> Hi anyone help me how to read and process image files in the sequence of =
folder like folder1 has 5 files and folder2 has 5 files and folder3 has 5 f=
iles and so on continously like a sequence.this will be helpful for trainin=
g the database.
I don't know what kind of image and how you read them, but to load in
sequence I use "for loop".
if files differ in names like file_name.1 file_name.1 file_name.3....
path_folder=3D['path/folder1/'; 'path/folder2/'; 'path/folder3/';];
for i=3D1:length(path_folder(:,1))
for u=3D1:5
cd(path_folder(i))
file_name=3D['file_name.' num2str(i)];
eval([a ' num2str(i) num2str(u)
'=3Dcommand_to_load_image(filename)'];
end
end
You can play with output of dir (or ls) command if files don't have
pattern in names.
Hope it helps
Best.
Petro.
|