其他分享
首页 > 其他分享> > matlab 保存灰度和彩色图片

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')

标签:gca,set,ticks,彩色图片,Remove,灰度,matlab
来源: https://www.cnblogs.com/faithyiyo/p/13939895.html