画像をループ処理の中で、繰り返し番号つきのファイル名でデータを保存するにはどうしたらよいですか?
Show older comments
画像をループ処理の中で、繰り返し番号つきのファイル名でデータを保存するにはどうしたらよいですか? 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
Accepted Answer
More Answers (0)
Categories
Find more on 印刷と保存 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!