画像をループ処理の中で、繰り返し番号つきのファイル名でデータを保存するにはどうしたらよいですか?
이전 댓글 표시
画像をループ処理の中で、繰り返し番号つきのファイル名でデータを保存するにはどうしたらよいですか? 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!