s074.m
来自「简单的数字图像处理程序」· M 代码 · 共 13 行
M
13 行
% 灰度图像加权均值滤波 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 + =
减小字号Ctrl + -
显示快捷键?