필터 지우기
필터 지우기

HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES

조회 수: 23 (최근 30일)
ajith
ajith 2013년 5월 29일
댓글: yasser 2021년 4월 19일
HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 6월 13일
Please do not SHOUT.
ajith
ajith 2013년 6월 13일
sorry for my mistake and also clarify that. i only ask my doubt regards the program sir

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
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
Kostas
Kostas 2018년 11월 24일
It is not "nume1" but numel
yasser
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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by