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截屏工具