How to read jpg images in a loop
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hashem Burki
am 3 Mär. 2011
Beantwortet: ck
am 15 Jan. 2020
Hi, I'm new in this. I have 4 images named: img1.jpg, img2.jpg, img3.jpg, and img4.jpg. All i have to do is read them one by one in a for loop. How can i do that?
0 Kommentare
Akzeptierte Antwort
Paulo Silva
am 3 Mär. 2011
c=cell(1,4);
for i=1:4
c{i}=imread(sprintf('img%d.jpg',i));
end
Weitere Antworten (1)
ck
am 15 Jan. 2020
How can I loop through images I read in, when the images have different names and numbers?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!