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 files and so on continously like a sequence.this will be helpful for training the database.
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.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.