HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
15 次查看(过去 30 天)
显示 更早的评论
HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
采纳的回答
Azzi Abdelmalek
2013-5-29
编辑:Azzi Abdelmalek
2013-5-29
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
13 个评论
yasser
2021-4-19
When I use your code I found that error
Error using strrep
Char inputs must be row vectors.
Are there any explanation?
regards
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!