how to save the output image
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Walter Roberson
2021 年 2 月 23 日
citra3=montage(reshape(V,size(citra)),map,'Indices',3);
since V is squeezed citra, reshape of it back to size of citra would just give you back citra... so why bother with the shape change and why not just pass citra into montage?
採用された回答
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 件のコメント
Walter Roberson
2021 年 2 月 24 日
implemencoba.fig is not one of the output files. You need to look inside the Implemen directory of where you are now.
dir('F:\kuliah\semester6\TA2\Implemen')
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!