国产aaaa级全身裸体精油片_337p人体粉嫩久久久红粉影视_一区中文字幕在线观看_国产亚洲精品一区二区_欧美裸体男粗大1609_午夜亚洲激情电影av_黄色小说入口_日本精品久久久久中文字幕_少妇思春三a级_亚洲视频自拍偷拍

首頁(yè) > 化工知識(shí) > 【圖像融合】基于curvelet變換圖像融合matlab代碼

【圖像融合】基于curvelet變換圖像融合matlab代碼

時(shí)間:2021-11-25 來(lái)源: 瀏覽:

【圖像融合】基于curvelet變換圖像融合matlab代碼

原創(chuàng) 天天Matlab 天天Matlab
天天Matlab

TT_Matlab

每天分享一點(diǎn)Matlab資料,一起成長(zhǎng)進(jìn)步。需要定制程序添加qq1575304183

收錄于話題 #圖像處理matlab源碼 254個(gè) 內(nèi)容

1 簡(jiǎn)介

針對(duì)Curvelet分解的不同頻率域,分別討論了低頻系數(shù)和高頻系數(shù)的選擇原則.在選擇低頻系數(shù)時(shí),定義了局部區(qū)域標(biāo)準(zhǔn)方差,采用了"選擇"與"平均"相結(jié)合的系數(shù)選擇方案;在選擇高頻系數(shù)時(shí),充分利用Curvelet變換具有方向性的優(yōu)點(diǎn),提出了Curvelet域方向?qū)Ρ榷鹊母拍?并給出了基于方向?qū)Ρ榷鹊南禂?shù)選擇方案.實(shí)驗(yàn)結(jié)果表明:本文所給出的融合算法能夠很好地保留多幅源圖像中的有用信息,得到多個(gè)目標(biāo)聚焦都很清晰的圖像.

2 部分代碼

clc clear all close all % fdct_wrapping_demo_recon.m -- Partial curvelet reconstruction. X = imread ( ’imgwarp.bmp’ ); X2 = imread ( ’IR1022_3.bmp’ ); X1 = rgb2gray ( X ); % Forward curvelet transform disp ( ’Take curvelet transform: fdct_wrapping’ ); tic ; C1 = fdct_wrapping ( double ( X1 ), 0 , 2 ); toc ; tic ; C2 = fdct_wrapping ( double ( X2 ), 0 , 2 ); toc ; C = C1 ; %tic; C = fdct_wrapping(double(X),0,2,5,16); toc; for s = 1 : 2   for w = 1 : length ( C { s })     C { s }{ w } = 0.5 * C1 { s }{ w } + 0.5 * C2 { s }{ w };   end end for s = 3 : length ( C )   for w = 1 : length ( C { s })     C { s }{ w } = max ( C1 { s }{ w }, C2 { s }{ w });   end end disp ( ’Take inverse curvelet transform: ifdct_wrapping’ ); tic ; Y = ifdct_wrapping ( C , 0 , 256 , 320 ); toc ; Y = uint8 ( Y ); % subplot(1,3,1); colormap gray; imagesc(real(X1)); axis(’image’); title(’VI’); % subplot(1,3,2); colormap gray; imagesc(real(X2)); axis(’image’); title(’IR’); % subplot(1,3,3); colormap gray; imagesc(real(Y)); axis(’image’); title(’fusion’); %信息熵 figure ( 1 ) subplot ( 131 ) imshow ( X1 ); title ( ’融合前圖1’ ) subplot ( 132 ) imshow ( X2 ); title ( ’融合前圖1’ ) subplot ( 133 ) imshow ( Y ); title ( ’融合后’ ) imwrite ( Y , ’xiaobo1.bmp’ ); r1 = rmse ( X1 , Y ); %融合前圖1和融合后的均方差 r2 = rmse ( X2 , Y ); %融合前圖1和融合后的均方差 disp ([ ’融合前圖1和融合后的均方差=’ , num2str ( r1 )]) disp ([ ’融合前圖2和融合后的均方差=’ , num2str ( r2 )]) xinxi1 = xinxishang ( X1 ); %融合前圖1信息熵 disp ([ ’融合前圖1的信息熵=’ , num2str ( xinxi1 )]) xinxi2 = xinxishang ( X2 ); %融合前圖2信息熵 disp ([ ’融合前圖2的信息熵=’ , num2str ( xinxi2 )]) xinxi3 = xinxishang ( Y ); %融合前圖3信息熵 disp ([ ’融合后圖的信息熵=’ , num2str ( xinxi3 )]) tidu1 = ftidu ( X1 ); % %融合前圖1梯度 disp ([ ’融合前圖1的梯度=’ , num2str ( tidu1 )]) tidu2 = ftidu ( X2 ); % %融合前圖2梯度 disp ([ ’融合前圖2的梯度=’ , num2str ( tidu2 )]) tidu3 = ftidu ( Y ); % %融合后圖梯度 disp ([ ’融合后圖的梯度=’ , num2str ( tidu3 )])

3 仿真結(jié)果

4 參考文獻(xiàn)

[1]李暉暉, 郭雷, and 劉航. "基于二代curvelet變換的圖像融合研究." 光學(xué)學(xué)報(bào) 26.5(2006):6.

天天Matlab

贊賞二維碼 微信掃一掃贊賞作者 贊賞

已喜歡, 對(duì)作者說(shuō)句悄悄話
最多40字,當(dāng)前共

  人贊賞

1 / 3

長(zhǎng)按二維碼向我轉(zhuǎn)賬

贊賞二維碼

受蘋果公司新規(guī)定影響,微信 iOS 版的贊賞功能被關(guān)閉,可通過(guò)二維碼轉(zhuǎn)賬支持公眾號(hào)。

版權(quán):如無(wú)特殊注明,文章轉(zhuǎn)載自網(wǎng)絡(luò),侵權(quán)請(qǐng)聯(lián)系cnmhg168#163.com刪除!文件均為網(wǎng)友上傳,僅供研究和學(xué)習(xí)使用,務(wù)必24小時(shí)內(nèi)刪除。
相關(guān)推薦