画像をループ処理の中で、繰り返し番号つきのファイル名でデータを保存するにはどうしたらよいですか?
显示 更早的评论
画像をループ処理の中で、繰り返し番号つきのファイル名でデータを保存するにはどうしたらよいですか? imwriteで行うと出力引数が多すぎますとなってしまいます。画像はカラーです。 よろしくお願いいたします。
for g = 1:10
imshow(BW);
stat = regionprops('Table',BW,'Centroid','Area')
mydata = BW;
myfilename = sprintf('colar.jpg',g);
mydata{g} = imwrite(BW,myfilename);
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 印刷と保存 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!