how to do image fusion using dwt in matlab for 40 input images -


i have done image fusion 2 input images code follows,how code program when use 40 input images , 1 fused image output.

close all;

clear all; =imread('d:\\project code\\samples\\peyrou_over.jpg'); b= imread('d:\\project code\\samples\\peyrou_under.jpg');  [k1,k2]=size(a);  %1-dwt(haar wavelet transform) [a1,h1,v1,d1]=dwt2(a,'haar'); %figure;imshow([a1,h1;v1,d1],[]); %hold on; [a2,h2,v2,d2]=dwt2(b,'haar'); %figure;imshow([a2,h2;v2,d2], []);    %max fusion rule i=1:k1     j=1:k2         a3(i,j)=max(a1(i,j),a2(i,j));         h3(i,j)=max(h1(i,j),h2(i,j));         v3(i,j)=max(v1(i,j),v2(i,j));         d3(i,j)=max(d1(i,j),d2(i,j));     end end  %reconstruction of fused image c=idwt2(a3,h3,v3,d3,'haar');  figure,imshow(a) title('first image') figure,imshow(b) title('second image') figure,imshow(c) title('fused image') 


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -