필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to resolve it the program

조회 수: 2 (최근 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