Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to resolve it the program

1 回表示 (過去 30 日間)
ajith
ajith 2013 年 6 月 13 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
f=dir('Yourfolder\*.jpg');
fil={f.name};
for k=1:numel(fil)
file=fil{k}
new_file=strrep(file,'.jpg','.png')
im=imread(file)
imwrite(im,new_file)
end
but dimension is not reduced to 2 dimension matrix

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 6 月 13 日
Why would it be reduced to a 2 dimensional matrix? You are just reading in the file and writing out the same content again, to the same kind of file.
Are you hoping to change the image into pseudocolor? If so then you cannot do that with JPEG files, as JPEG does not support pseudocolor.
  1 件のコメント
ajith
ajith 2013 年 6 月 13 日
i need to put into the software which make the set of two dimension matrix into three dimension matrix so that i ask

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by