资源预览内容
第1页 / 共6页
第2页 / 共6页
第3页 / 共6页
第4页 / 共6页
第5页 / 共6页
第6页 / 共6页
亲,该文档总共6页全部预览完了,如果喜欢就下载吧!
资源描述
h=1 1 1; 1 1 1; 1 1 1; % 33 邻域平均滤波 h=h/9; % Image0=imread(rice.png); Image0=imread(d:/kkkk.jpg); Image1=imfilter(Image0, h); Image2=imfilter(Image1, h); Image3=imfilter(Image2, h); Image4=imfilter(Image3, h); Image5=imfilter(Image4, h); subplot(2,3,1),subimage(Image0);title(原图); subplot(2,3,2),subimage(Image1);title(1 次 3*3 处理的); subplot(2,3,3),subimage(Image2);title(2 次 3*3 处理的); subplot(2,3,4),subimage(Image3);title(3 次 3*3 处理的); subplot(2,3,5),subimage(Image4);title(4 次 3*3 处理的); subplot(2,3,6),subimage(Image5);title(5 次 3*3 处理的); %-% h2=ones(30); %换了一个 h,三十阶 h2=h2/900; Image0=imread(d:/kkkk.jpg); % Image0=imread(rice.png); Image1=imfilter(Image0, h2); subplot(121),subimage(Image0);title(原图); subplot(122),subimage(Image1);title(1 次 30*30 处理的); %-% h=1 1 1;1 -8 1; 1 1 1; % 拉普拉斯模板 % Image0=imread(rice.png); Image0=imread(d:/kkkk.jpg); Image1=imfilter(Image0, h); subplot(121),subimage(Image0);title(原图); subplot(122),subimage(Image1);title(1 次拉普拉斯处理的);
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号