五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

【圖像融合】基于拉普拉斯金字塔+小波變換實現(xiàn)圖像融合含Matlab源碼

2022-04-22 00:21 作者:Matlab工程師  | 我要投稿

1 簡介

基于Matlab強大的圖像處理工具箱函數(shù),用加權(quán)平均法、拉普拉斯金字塔變換法、小波變換法對圖像進行融合,然后用客觀評價法中的相應(yīng)評價指標對其融合結(jié)果進行質(zhì)量評價。實驗表明,小波變換法的圖像融合效果最好。

img
img
img

2 部分代碼

function Y = fuse_lap(M1, M2, zt, ap, mp) %Y = fuse_lap(M1, M2, zt, ap, mp) image fusion with laplacian pyramid % % ? ?M1 - input image A % ? ?M2 - input image B % ? ?zt - maximum decomposition level % ? ?ap - coefficient selection highpass (see selc.m) ?% ? ?mp - coefficient selection base image (see selb.m) ?% % ? ?Y ?- fused image ? ? % ? ?(Oliver Rockinger 16.08.99) % check inputs ?[z1 s1] = size(M1); [z2 s2] = size(M2); if (z1 ~= z2) | (s1 ~= s2) ?error('Input images are not of same size'); end; % define filter ?w ?= [1 4 6 4 1] / 16; % cells for selected images E = cell(1,zt); % loop over decomposition depth -> analysis for i1 = 1:zt ? ?% calculate and store actual image size ? ?[z s] ?= size(M1); ? ?zl(i1) = z; sl(i1) ?= s; ?% check if image expansion necessary ? ?if (floor(z/2) ~= z/2), ew(1) = 1; else, ew(1) = 0; end; ?if (floor(s/2) ~= s/2), ew(2) = 1; else, ew(2) = 0; end; ?% perform expansion if necessary ?if (any(ew)) ? ?M1 = adb(M1,ew); ? ?M2 = adb(M2,ew); ?end; ? ?% perform filtering ? ?G1 = conv2(conv2(es2(M1,2), w, 'valid'),w', 'valid'); ?G2 = conv2(conv2(es2(M2,2), w, 'valid'),w', 'valid'); ?% decimate, undecimate and interpolate ? ?M1T = conv2(conv2(es2(undec2(dec2(G1)), 2), 2*w, 'valid'),2*w', 'valid'); ?M2T = conv2(conv2(es2(undec2(dec2(G2)), 2), 2*w, 'valid'),2*w', 'valid'); ?% select coefficients and store them ?E(i1) = {selc(M1-M1T, M2-M2T, ap)}; ?% decimate ? ?M1 = dec2(G1); ?M2 = dec2(G2); end; % select base coefficients of last decompostion stage M1 = selb(M1,M2,mp); % loop over decomposition depth -> synthesis for i1 = zt:-1:1 ?% undecimate and interpolate ? ?M1T = conv2(conv2(es2(undec2(M1), 2), 2*w, 'valid'), 2*w', 'valid'); ?% add coefficients ?M1 ?= M1T + E{i1}; ?% select valid image region ? ?M1 ? = M1(1:zl(i1),1:sl(i1)); end; % copy image Y = M1;

3 仿真結(jié)果

4 參考文獻

[1]黃小丹. 基于拉普拉斯金字塔變換的小波域圖像融合[J]. 電子科技, 2014, 27(6):170.

博主簡介:擅長智能優(yōu)化算法、神經(jīng)網(wǎng)絡(luò)預(yù)測、信號處理、元胞自動機、圖像處理、路徑規(guī)劃、無人機等多種領(lǐng)域的Matlab仿真,相關(guān)matlab代碼問題可私信交流。

部分理論引用網(wǎng)絡(luò)文獻,若有侵權(quán)聯(lián)系博主刪除。





【圖像融合】基于拉普拉斯金字塔+小波變換實現(xiàn)圖像融合含Matlab源碼的評論 (共 條)

分享到微博請遵守國家法律
买车| 潞城市| 乌拉特中旗| 大名县| 凌云县| 定边县| 辰溪县| 长垣县| 老河口市| 光泽县| 松原市| 从江县| 虎林市| 伊宁县| 瑞金市| 温泉县| 锡林郭勒盟| 天气| 太保市| 江津市| 留坝县| 北碚区| 黄平县| 康马县| 菏泽市| 建昌县| 监利县| 平原县| 仙游县| 朝阳市| 广州市| 乌拉特中旗| 南雄市| 枣庄市| 凯里市| 天长市| 开封县| 金塔县| 长汀县| 柘荣县| 广丰县|