Concatenating Images multiple times in a Loop
2 次查看(过去 30 天)
显示 更早的评论
Hey everyone,
I have a text file in which I have 1000 lines. Every line has a four characters, I also have a folder (named Alphabets) which has all the characters in it (0-9, A-Z, and a-z). What I want is to read text file first four characters (single line) and then go to Alphabet folder, pick those four characters concatenate them and save them in a particular directory. I also want to resize image back to 140x60 pixels. This is what I want to do for complete text file so that by the end I have 1000 images stored in a specific directory. What I coded is a lot of if else conditions and I realize that my code is not efficient so I thought of asking help from experts. Thank you very much!
Regards,
Fareed Jamali
2 个评论
Image Analyst
2019-12-8
Give an example, and attach the text file. In the meantime, you might want to look at fgetl(), and dir() or imageDatastore().
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!