浪翻《intrans函數(shù)》2018-10-09

寫函數(shù),函數(shù)名與文件名同名

調(diào)用函數(shù)新建個(gè)文件。


imag=imread('C:\Users\liulang\Desktop\test.jpg') gray=rgb2gray(imag) log=intrans(gray,'log',1) neg=intrans(gray,'neg') stretch=intrans(gray,'stretch',1,2) gam5=intrans(gray,'gamma',5) gam1=intrans(gray,'gamma',1) stretch15=intrans(gray,'stretch',1,5) stretch105=intrans(gray,'stretch',1,0.5) stretch51=intrans(gray,'stretch',5,1) stretch55=intrans(gray,'stretch',5,5) figure(1),subplot(331),imshow(ori); subplot(332),imshow(neg);title('反轉(zhuǎn)') subplot(333),imshow(log);title('log,c=1') subplot(334),imshow(stretch);title('對(duì)比度拉伸m=1,e=2') subplot(335),imshow(gam5);title('gamma=5') subplot(336),imshow(gam1);title('gamma=1') subplot(337),imshow(stretch15);title('m=1,e=5') subplot(338),imshow(stretch105);title('m=1,e=0.5') subplot(339),imshow(stretch51);title('m=5,e=1') subplot(339),imshow(stretch55);title('m=5,e=5')

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容