MATLAB绘制丰富多彩的硬币图形

clear all; close all;
I=imread('coins.png');
J=imnoise(I, 'salt & pepper', 0.02);
h=ones(3,3)/5;
h(1,1)=0;   h(1,3)=0;
h(3,1)=0;   h(1,3)=0;
K=imfilter(J, h);
figure;
subplot(131);
imshow(I);
subplot(132);
imshow(J);
subplot(133);
imshow(K);
colormap parula

在这里插入图片描述

colormap turbo

在这里插入图片描述

colormap jet

在这里插入图片描述

colormap hsv

在这里插入图片描述

colormap hot

在这里插入图片描述

colormap cool

在这里插入图片描述

colormap spring

在这里插入图片描述

colormap summer

在这里插入图片描述

colormap autumn

在这里插入图片描述

colormap winter

在这里插入图片描述

colormap gray

在这里插入图片描述

扫描二维码关注公众号,回复: 15823205 查看本文章
colormap bone

在这里插入图片描述

colormap copper

在这里插入图片描述

colormap pink

在这里插入图片描述

colormap colorcube

在这里插入图片描述

colormap default

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

猜你喜欢

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