📄 ch5_4_3.m
字号:
%%%% 使用均值滤波器对真彩图像的每一个颜色平面进行滤波例程:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -