ch5_4_3.m
来自「常用图像处理源码合集」· M 代码 · 共 12 行
M
12 行
%%%% 使用均值滤波器对真彩图像的每一个颜色平面进行滤波例程:
rgb=imread('peppers.png');
h=ones(5,5)/25;
rgb2=imfilter(rgb,h);
%B=IMFILTER(A,H)filtersthemultidimensionalarrayAwiththe
%multidimensionalfilterH.Acanbelogicaloritcanbeanonsparsenumeric
%arrayofanyclassanddimension.Theresult,B,hasthesamesizeandclassas%A.
subplot(1,2,1),imshow(rgb);
title('originalimage')
subplot(1,2,2),imshow(rgb2);
title('color-filteredimage')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?