数字图像处理作业2.docx

上传人:b****6 文档编号:3110831 上传时间:2022-11-17 格式:DOCX 页数:9 大小:24.03KB
下载 相关 举报
数字图像处理作业2.docx_第1页
第1页 / 共9页
数字图像处理作业2.docx_第2页
第2页 / 共9页
数字图像处理作业2.docx_第3页
第3页 / 共9页
数字图像处理作业2.docx_第4页
第4页 / 共9页
数字图像处理作业2.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

数字图像处理作业2.docx

《数字图像处理作业2.docx》由会员分享,可在线阅读,更多相关《数字图像处理作业2.docx(9页珍藏版)》请在冰豆网上搜索。

数字图像处理作业2.docx

数字图像处理作业2

数字图像处理作业2

空间滤波器比较——袁潘宸

Contents

▪生成原图

▪算术均值滤波

▪几何均值滤波

▪谐波均值滤波

▪逆谐波均值滤波

▪中值滤波

▪中点滤波

▪最大值滤波

▪最小值滤波

生成原图

tk=1:

17+7:

(17+7)*10;

I=zeros(210+10*2,(17+7)*10);

fori=1:

length(tk)-1

I(10:

10+210,tk(i+1):

tk(i+1)+6)=1;

end

I=logical(I);

figure,imshow(I),title('原图');

算术均值滤波

a=spfilt(I,'amean',3,3);

figure;

subplot(1,2,1),imshow(I),title('原图');

subplot(1,2,2),imshow(a),title('算术均值滤波');

几何均值滤波

b=spfilt(I,'gmean',3,3);%3×3几何均值滤波

figure;

subplot(1,2,1),imshow(I),title('原图');

subplot(1,2,2),imshow(b),title('几何均值滤波');

谐波均值滤波

c=spfilt(I,'hmean',3,3);%3×3谐波均值滤波

figure;

subplot(1,2,1),imshow(I),title('原图');

subplot(1,2,2),imshow(c),title('谐波均值滤波');

逆谐波均值滤波

d=spfilt(I,'chmean',3,3);%3×3逆谐波均值滤波

figure;

subplot(1,2,1),imshow(I),title('原图');

subplot(1,2,2),imshow(d),title('逆谐波均值滤波');

中值滤波

e=spfilt(I,'median',3,3);%3×3中值滤波

figure;

subplot(1,2,1),imshow(I),title('原图');

subplot(1,2,2),imshow

(2),title('中值滤波');

中点滤波

f=spfilt(I,'midpoint',3,3);%3×3中点滤波

figure;

subplot(1,2,1),imshow(I),title('原图');

subplot(1,2,2),imshow(f),title('中点滤波');

最大值滤波

g=spfilt(I,'max',3,3);

figure;

subplot(1,2,1),imshow(I),title('原图');

subplot(1,2,2),imshow(g),title('最大值滤波');

最小值滤波

h=spfilt(I,'min',3,3);

figure;

subplot(1,2,1),imshow(I),title('原图');

subplot(1,2,2),imshow(h),title('最小值滤波');

PublishedwithMATLAB®R2012b

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 幼儿教育 > 幼儿读物

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1