matlab 保存灰度和彩色图片

1. imwrite 函数可以实现灰度图片的保存;

2.saveas 保存彩色图片

figure
imagesc(DefocusedImage{1,55})
set(gca,'XTick',[]) % Remove the ticks in the x axis!
set(gca,'YTick',[]) % Remove the ticks in the y axis
set(gca,'Position',[0 0 1 1]) % Make the axes occupy the hole figure
saveas(gcf,'Figure55','png')

posted @ 2020-11-07 09:50  faithyiyo  阅读(2473)  评论(0编辑  收藏  举报