画像を指定したフォルダに連続で保存するには
Show older comments
フォルダ1にある画像を連続的に画像処理を行い、処理結果をフォルダ2に保存していくにはどうしたら良いのでしょうか?
imds = imageDatastore("フォルダ1");%このフォルダにある画像は全てBMP画像です
for i=1:numel(imds.Files)
a=read(imds);
A=double(a);
b=A*C;%Cは画像処理プログラム機構とします
B=uint8(b);%この8bitにしたものをBMP画像として保存したいです
%フォルダ2に画像保存
end
画像の名前は元の名前のままでも、新しい名前に変えても処理順に1、2、3、、、みたいに番号がふってあれば大丈夫です。
入力画像と出力画像の拡張子はともに.bmpです。
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!