查看单个帖子
旧 2009-05-09, 09:33   #1
figo460
初级会员
 
注册日期: 2009-05-09
帖子: 2
声望力: 0
figo460 正向着好的方向发展
默认 (新手请教)MATLABX小波变换的图象融合程序,请不吝赐教,万分感谢

毕业设计用,由于刚接触这个语言,不清楚语句的具体含义,请解释下什么意思,如果您有时间请加Q289381116,拜师~~~~~
clear
load woman; %装入原图像
X1=X;map1=map;
subplot(221);image(X1);colormap(map1)
title('woman');
axis square %画出woman图像
load wbarb; %装入原图像
X2=X;map2=map;
for i=1:256
for j=1:256
if(X2(i,j)>100)
X2(i,j)=1.2*X2(i,j);
else
X2(i,j)=0.5*X2(i,j);
end
end
end
subplot(2,2,2);image(X2);colormap(map2)
title('wbarb');
axis square %画出wbarb图像
[c1,s1]=wavedec2(X1,2,'sym4');
sizec1=size(c1);
for i=1:sizec1(2)
c1(i)=1.2*c1(i);
end
[c2,s2]=wavedec2(X2,2,'sym4');
c=c1+c2;
c=0.5*c;
xx=waverec2(c,s1,'sym4');
subplot(223);image(xx);
title('融合图像');
axis square; %画出融合后的图像

此帖于 2009-05-09 10:01 被 figo460 编辑。
figo460 当前离线   回复时引用此帖