自动保存高质量的大图像(Matlab)

时间:2015-06-26 20:18:01

标签: image matlab

我用

保存我的图片
for 1:30
    file = 'stuff.tif'       % 2269 x 1452 image
    RGBImage = imread(file);
    filename = sprintf('example.tif');
    saveas(gcf,filename)
end

然而,当我这样做时,Matlab 缩小我的图像并将图像保存为较小的“缩小”版本,这会削弱其质量。

放大时,

输入,'stuff.tif' Input

放大时,

输出,'example.tif' Output

如何在保留原始尺寸和质量的同时自动保存图像?

1 个答案:

答案 0 :(得分:3)

我强烈建议您使用文件交换中的Oliver Woodford函数export_fig。那应该可以解决你的问题。 (现在Yair Altman会照顾它)。

相关问题