フィルターのクリア

Saving multiple jpg files to create a database

2 ビュー (過去 30 日間)
Mrin San
Mrin San 2017 年 11 月 17 日
コメント済み: Mrin San 2017 年 11 月 17 日
I have a complex valued matrix im_dc (512*512 size) out of which I want to display the absolute valued matrix as a figure. I used
figure(100), imshow(abs(im_dc),[]);drawnow;
which displays the image correctly. Now the issue is that i want to save this particular image as a jpg, run a loop 500 times (i will vary some parameters for every instance of the loop) which will give me 500 such im_dc images and then create a database out of all these. Can anyone help me with the coding?

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2017 年 11 月 17 日
編集済み: KALYAN ACHARJYA 2017 年 11 月 17 日
for k=1:500
%do the operation as per your proposed work
%k=final_resultant image_which you want to save
destination='complete path\im'; % Save image name as im1,im2...im500
% Complete path of the folder, where you want to save the images
imwrite(k,[destination,num2str(k),'.jpg']);
end
  1 件のコメント
Mrin San
Mrin San 2017 年 11 月 17 日
Thank you!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by