資源描述:
《圖像空域增強(qiáng)技術(shù)及聯(lián)合運(yùn)用》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、實(shí)驗(yàn)二圖像空域增強(qiáng)技術(shù)及聯(lián)合運(yùn)用一、實(shí)驗(yàn)?zāi)康恼莆崭鞣N灰度變換技術(shù),加深對(duì)灰度變換的理解;掌握在空域中進(jìn)行圖像噪聲消除、圖像平滑和圖像銳化等各種改善圖像質(zhì)量的方法;通過(guò)聯(lián)合應(yīng)用實(shí)驗(yàn),提高同學(xué)門靈活運(yùn)用知識(shí)的能力;二、實(shí)驗(yàn)內(nèi)容1.從硬盤中讀取需進(jìn)行增強(qiáng)的人體骨骼圖像;2.求原圖像的Laplacian變換,對(duì)圖像進(jìn)行銳化處理;3.用Sobel算子計(jì)算原圖像的梯度圖像;4.圖像的算術(shù)運(yùn)算,包括加和乘;5.圖像的平滑處理去除噪聲;6.圖像灰度的幕律變換,以加強(qiáng)圖像的對(duì)照度;三、實(shí)驗(yàn)流程參考四、參考程序與處理結(jié)果%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);運(yùn)行結(jié)果參考: