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
colormap bone
colormap copper
colormap pink
colormap colorcube
colormap default
Herramientas de desarrollo: herramienta de captura de pantalla MATLAB 2022b
WeChat Alt+A