load images and save it into another format in matlab

1 回表示 (過去 30 日間)
aldif
aldif 2014 年 7 月 22 日
コメント済み: aldif 2014 年 7 月 22 日
My code typically like below:
file = dir('C:\Users\doey\Documents\Sushi time ,Pv10');
file = file(~[file.isdir]); NF = length(file);
for k = 1 : NF
images = imread(fullfile('C:\Users\doey\Documents\Sushi time ,Pv10', file(k).name));
imwrite(image,fullfile('C:\Users\doey\Desktop\gg',[file(k).name(1:end-4),'.jpg']))
end
this works in saving all my images into a file I created, but when I try to open my saved images,its shown blank ,i have no idea for now ...can anyone help me to analyze this? really appreciate ...

採用された回答

Image Analyst
Image Analyst 2014 年 7 月 22 日
You are writing "image" not "images". "image" is the name of a built in function and you should not use that as the name of a variable.
  1 件のコメント
aldif
aldif 2014 年 7 月 22 日
tq very much .I now only realize ... =D

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

その他の回答 (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