How to Read multiple Images from a Directory.
Show older comments
I am using following code to read my images which are named in term of
1.jpg
2.jpg
3.jpg . .
20.jpg
I am using the following code
for i=1:20
name = sprintf('%d.jpg',i); I=imread(name); end
It works fine in reading but it is overwriting I again and again. The final value of i gives the image read last. which is 20.jpg. How can i store all images separately.
Regards
Accepted Answer
More Answers (1)
Tallha Akram
on 12 Jan 2012
0 votes
Categories
Find more on Image Preview and Device Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!