Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to resolve it the program
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!