hii...i want to save my images as abc1.pgm, abc2.pgm, abc3.pgm...abc5.pgm
1 次查看(过去 30 天)
显示 更早的评论
i tried the following code
filename=spprimtf('E:\\prajube\\abc1%d.pgm',x);
imwrite(imge1,filename);
still it saves only the last photo...for eg. suppose we have to click 5 images.. it just saves abc5.pgm and abc1.pgm to abc4.pgm are lost
please help!!! :(
采纳的回答
Azzi Abdelmalek
2013-3-23
编辑:Azzi Abdelmalek
2013-3-23
for k=1:3
filename=sprintf('E:\\prajube\\abc1%d.pgm',k)
imwrite(image1{k},filename);
end
3 个评论
更多回答(1 个)
Shivaputra Narke
2013-3-23
% first save ur images as img_cell{1}=img1; %ur imge matrix img_cell{2}=img2; img_cell{3}=img3;
for k=1:3 filename=sprintf('E:\\prajube\\abc%d.pgm',k) imwrite(img_cell{k},filename); end
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Import, Export, and Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!