欢迎来到天天文库
浏览记录
ID:45586290
大小:122.18 KB
页数:5页
时间:2019-11-15
《图像空域增强技术及联合运用》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、实验二图像空域增强技术及联合运用一、实验目的掌握各种灰度变换技术,加深对灰度变换的理解;掌握在空域中进行图像噪声消除、图像平滑和图像锐化等各种改善图像质量的方法;通过联合应用实验,提高同学门灵活运用知识的能力;二、实验内容1.从硬盘中读取需进行增强的人体骨骼图像;2.求原图像的Laplacian变换,对图像进行锐化处理;3.用Sobel算子计算原图像的梯度图像;4.图像的算术运算,包括加和乘;5.图像的平滑处理去除噪声;6.图像灰度的幕律变换,以加强图像的对照度;三、实验流程参考四、参考程序与处理结果%Enhancingaimageofwholebodybonescanbycombinin
2、gvariousspatial%enhancementmethods,thestrategiesisasfollowing:%========================================================%1.UtilizetheLaplaciantohighlightfinedetail%2.Utilizethegradienttoenhanceprominentedges%3.CombineLaplacianandgradienttogetthedetail-enhancedandnoise-compressedimage%4・Increasethec
3、ontrastoflowgraylevelsbyusingagray-leveltransformation.%==========================================================%Theoriginalimagenamed*Fig0306(a)(bone-scan)・tifisunderthe%directory:J:courseteachingd1^N§l%Tn,
4、AiEpN6E%Ayl%ln%CopyrightbyHuangzhongchao,July16,2006clearall;closeall;f=imread(*J:c
5、ourseteachingd1/^N§l%lnz
6、AiE
7、iNeE%Ayl%lhFig0306(a)(bone-scan).tif,);f1=im2double(f);hi=fspecial('sober);%ordirectlytypeh=[-1-2-1;000;121];g1=imfilter(f1,h1);subplot(121);imshow(f);title('theoriginalimage1);%b1=mat2gray(g1);subplot(122);imshow(g1);title('theSobelgradient*);%procducingaaveragein
8、gfilterh2=fspecial('average:5);g2=imfilter(g1,h2);figure⑵;subplot(121);imshow(g2);title(*thesmoothedgradientimage1);h3=[-1-1-1;-18-1;-1-1-1];%Laplacianmaskg3=imfilter(f1,h3);%b2=mat2gray(g3);subplot(122);imshow(g3);title('theLaplacianimage');g4=g3+fi;figure(3);subplot(121);imshow(g4)title('sharped
9、imagebyaddinglaplacianfilteredandoriginalimage1);g5=g4.*g2;subplot(122);imshow(g5);title('theproductofsmoothedgradientandLaplacianimage);g6=g5+fi;figure(4);subplot(121);imshow(g6);title('thesumofproductandoriginalimage*);%constrastspreadingbypower-lawtransformationwithr=0.5andc=1;gamma=0.5;C=1;g7=
10、c.*g6.Agamma;figure(4);subplot(122);imshow(g7);title('theendresultbycombiningthesharpingandgradientoperatiorT);运行结果参考:
此文档下载收益归作者所有