how to save the output image

조회 수: 4(최근 30일)
Frisda Sianipar
Frisda Sianipar 2021년 2월 23일
댓글: Frisda Sianipar 2021년 2월 25일
citra=imread('ISIC_0024336.jpg');
figure, fig1=imshow(citra);
load mri
V = squeeze(citra);
citra3=montage(reshape(V,size(citra)),map,'Indices',3);
saveas(citra3,'ISIC_0024336coba.jpg');
Would you help me please, How to save the output image in Matlab automatically?
  댓글 수: 2
Frisda Sianipar
Frisda Sianipar 2021년 2월 23일
actually I use this code to remove the background from the image only. And after that I want to save the output automatically, but I don't know what to use.

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

채택된 답변

Walter Roberson
Walter Roberson 2021년 2월 23일
infile = 'ISIC_0024336.jpg';
citra=imread(infile);
figure, fig1=imshow(citra);
load mri
V = squeeze(citra);
citra3=montage(reshape(V,size(citra)),map,'Indices',3);
[folder, basename, ext] = fileparts(infile);
outfile = fullfile(folder, [basename 'coba' ext]);
saveas(citra3, outfile);
  댓글 수: 13
Frisda Sianipar
Frisda Sianipar 2021년 2월 25일
yes, it same. nothing is saved

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

추가 답변(0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by