📄 s074.m
字号:
% 灰度图像加权均值滤波 s074
I74=imread('3.jpg');
I740=rgb2gray(I74);
h1=[1 1 1;1 2 1;1 1 1]*1/10;;
h2=[1 1 1 1;1 2 2 1;1 2 2 1;1 1 1 1 ]*1/20;
h3=[1 1 2 1 1;1 2 4 2 1;2 4 6 4 2;1 2 4 2 1;1 1 2 1 1]*1/50;
I741=imfilter(I740,h1);
I742=imfilter(I740,h2);
I743=imfilter(I740,h3);
subplot(2,2,1),imshow(I740);
subplot(2,2,2),imshow(I741);
subplot(2,2,3),imshow(I742);
subplot(2,2,4),imshow(I743)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -