How to create a single .mat file from multiple images?
5 次查看(过去 30 天)
显示 更早的评论
Hi all,
Assume that I have 5 images as following: 1.bmp, 2.bmp, 3.bmp, 4.bmp, 5.bmp. I want to combine those 5 images into a single .mat file. Anyone knows how to solve this issue, please help me!!
Thanks in advance!!
2 个评论
naila
2013-8-1
Hi I have the same problem with images: 01.dcm, 02.dcm, 03.dcm ... 22.dcm;
%d isn't working for 01.dcm. what should I do Please
采纳的回答
Azzi Abdelmalek
2012-10-5
编辑:Azzi Abdelmalek
2012-10-5
for k=1:5
h{k}=imread(sprintf('%d.bmp',k));
end
save file h
7 个评论
Jan
2013-8-1
编辑:Jan
2013-8-1
@Le: Please be careful with the exclamation marks. The have a lot of power in English, e.g. much more than in German.
Your solution looks fine and efficient. Disk access like imread has the benefit, that it is such slow, that improvements in other parts of the code are usually not significant.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!