数字图像处理-拉普拉斯锐化和方形均值滤波

上传人:小** 文档编号:55100542 上传时间:2018-09-24 格式:DOC 页数:4 大小:250.43KB
返回 下载 相关 举报
数字图像处理-拉普拉斯锐化和方形均值滤波_第1页
第1页 / 共4页
数字图像处理-拉普拉斯锐化和方形均值滤波_第2页
第2页 / 共4页
数字图像处理-拉普拉斯锐化和方形均值滤波_第3页
第3页 / 共4页
数字图像处理-拉普拉斯锐化和方形均值滤波_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《数字图像处理-拉普拉斯锐化和方形均值滤波》由会员分享,可在线阅读,更多相关《数字图像处理-拉普拉斯锐化和方形均值滤波(4页珍藏版)》请在金锄头文库上搜索。

1、数字图像处理 01作业一:直方图均衡【代码】clear allIM1=imread(Fig0316(2)(2nd_from_top).tif);m,n=size(IM1);v1=zeros(1,256);IM2=zeros(size(IM1);v2=zeros(1,256);num=m*n;IM1=double(IM1);for i=1:mfor j=1:nv1(IM1(i,j)+1)=v1(IM1(i,j)+1)+1;endendv1=v1./num;for i=1:256for j=1:iv2(i)=v2(i)+v1(j);endendfor k=1:256v2(k)=floor(255*

2、v2(k)+0.5);endfor i=1:mfor j=1:nIM2(i,j)=v2(IM1(i,j)+1);endendIM1=uint8(IM1);IM2=uint8(IM2);subplot(2,2,1)imshow(IM1)title(image1)subplot(2,2,2)imhist(IM1)title(直方图 1)subplot(2,2,3)imshow(IM2)title(image2)subplot(2,2,4)imhist(IM2)title(直方图 2)【图像】图 1.直方图均衡作业二:方形均值滤波【代码】clear allIM1=imread(Fig0333(a)(

3、test_pattern_blurring_orig).tif);IM2=filter2(fspecial(average,3),IM1)/255;IM3=filter2(fspecial(average,5),IM1)/255;IM4=filter2(fspecial(average,7),IM1)/255;subplot(2,2,1)imshow(IM1)title(image1)subplot(2,2,2)imshow(IM2)title(image_3)subplot(2,2,3)imshow(IM3)title(image_5)subplot(2,2,4)imshow(IM4)title(image_7)【图像】图 2.方形滤波(33、55、77)

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 管理学资料

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号