
帮我看下小波变换图像融合的matlab程序哪错了,急急急!!!
%%读取两幅图像X1=imread('a.jpg');X2=imread('b.jpg');X3=rgb2gray(X1);X4=rgb2gray(X2);subplot...
%%读取两幅图像X1=imread('a.jpg');X2=imread('b.jpg');X3=rgb2gray(X1);X4=rgb2gray(X2);subplot(221)[m,n]=size(X3);imshow(X3);subplot(222)imshow(X4);hold on;subplot(223)X3=double(X3);X4=double(X4);%%进行小波变换 [C1,L1]=wavedec2(X3,2,'sym4'); [C2,L2]=wavedec2(X4,2,'sym4');%%融合 C=(C1+C2)*0.5; X=waverec2(C,L1,'sym4'); X=uint8(X); subplot(224) imshow(X);matlab显示说19行C=(C1+C2)*0.5错了,高手帮改下,谢谢
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询