MATLAB7.x图像处理教学幻灯片讲义.ppt

Matlab实现 filter2() I=imread(noise.bmp);%读入预处理图像 subplot(2,2,1),imshow(I)%显示预处理图像 K1=filter2(fspecial(average,3),I)/255;%进行3*3均值滤波 K2=filter2(fspecial(average,5),I)/255;%进行5*5均值滤波 K3=filter2(fspecial(average,7),I)/255;%进行7*7均值滤波 subplot(2,2,2), imshow(K1) subplot(2,2,3), imshow(K2) subplot(2,2,4), imshow(K3) 典型加权平均算子 (1)中心加权算子 2)中心和四邻点加权算子 模板设计要求:对称、归一化、奇数 Wiener滤波器 I=imread(noise.bmp); %原始图像读入 subplot(2,2,1),imshow(I) %原始图像显示 K1=wiener2(I,[3,3]); %3×3winner滤波 K2=wiener2(I,[5,5]); %5×5winner滤波 K3=wiener2(I,[7,7]); %7×7winner滤波 subplot(2,2,2), imshow(K1) subplot(2,2,3), imshow(K2

文档评论(0)

1亿VIP精品文档

相关文档