There are 100 jpg files in my folder called "f1"
I want to load all jpg images in folder "f1" with MATLAB and work one by one.
- dList = dir ('C: / f1 / *. Jpg'); To fetch all the jpgs in f1.
- k = length (dList); In this way.
- for i = 1: 1: k
But I do not know how to do it one by one
But I want to import it using imread.
What should I do then?
im = imread ('C: / f1 / *. jpg');
k = length (im);
for i = 1: 1: k
{
...
}
Can I use this?
-------------------------------------------
I get an error every time.
dList = dir ('C: / Set14 / *. BMP');
k = length (dList);
for i = 1: 1: k
im = imread ('C: \ f1 \ *. jpg' \\\\\\<- read the "k"th image!//////);
How would you like to do this?
imread
anddir
? I think you can find the solution in these pages – Bentoy13