MATLAB为森林图形着五颜六色的效果展示

close all;									%关闭当前所有图形窗口
clear all;									%清空工作空间变量
clc;										%清屏
[X,map]=imread('forest.tif');%像信息
I = ind2gray(X,map);							%再将索引图像转换为灰度图像
set(0,'defaultFigurePosition',[100,100,1000,500]);	%修改图形图像位置的默认设置
set(0,'defaultFigureColor', [1 1 1]);				%修改图形背景颜色的设置
figure,imshow(X,map);					%将索引图像显示
figure,imshow(I);						%将灰度图像显示
colormap parula

在这里插入图片描述
在这里插入图片描述

colormap turbo

在这里插入图片描述

colormap jet

在这里插入图片描述

colormap hsv

在这里插入图片描述

colormap hot

在这里插入图片描述

colormap cool

在这里插入图片描述

colormap spring

在这里插入图片描述

colormap summer

在这里插入图片描述

colormap autumn

在这里插入图片描述

colormap winter

在这里插入图片描述

colormap gray

在这里插入图片描述

colormap bone

在这里插入图片描述

colormap copper

在这里插入图片描述

colormap pink

在这里插入图片描述

colormap lines

在这里插入图片描述

colormap colorcube

在这里插入图片描述

colormap prism

在这里插入图片描述

colormap flag

在这里插入图片描述

colormap default

在这里插入图片描述
开发工具:MATLAB 2022b
微信Alt+A截屏工具

猜你喜欢

转载自blog.csdn.net/m0_38127487/article/details/131786274