收藏 分享(赏)

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

上传人:weiwoduzun 文档编号:2579914 上传时间:2018-09-22 格式:DOC 页数:4 大小:250.43KB
下载 相关 举报
数字图像处理-拉普拉斯锐化和方形均值滤波.doc_第1页
第1页 / 共4页
数字图像处理-拉普拉斯锐化和方形均值滤波.doc_第2页
第2页 / 共4页
数字图像处理-拉普拉斯锐化和方形均值滤波.doc_第3页
第3页 / 共4页
数字图像处理-拉普拉斯锐化和方形均值滤波.doc_第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)

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

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报