フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

i am working in image processing and decryption , i need code to save image after each process in loop with different name

2 ビュー (過去 30 日間)
rawan
rawan 2011 年 2 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
hello, i am working in image processing and decryption , my code is about hueristic search so i need code to save image after each process in loop with different name.. i have tried pred_prey=imshow(uint8(abs(P1))); saveas(gcf,'pred_prey.fig') but it only work with one image thanks in advance

回答 (2 件)

Jan
Jan 2011 年 2 月 22 日

Saneem Ahmed
Saneem Ahmed 2011 年 2 月 23 日
i think it is not about saving image you have a problem, but string you want to name the saved file. assuming i is a variable that changes every time you save this image.
str=sprintf('image%d.fig',i);
saveas(gcf,str);
or if you want to write image use
str=sprintf('image%d.jpg',i);
imwrite(im,str,'jpg');

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by