www.gusucode.com > 《matlab图像处理与界面编程宝典》秦襄培 编著,每章的MATLAB源代码程序 > 第20章/代码20-8.txt

    
load cathe_1;                    % 调入第一幅模糊图像
X1=X;                           % 复制
load cathe_2;                    % 调入第二幅模糊图像
X2=X;                           % 复制
XFUS=wfusimg(X1,X2,'sym4',5,'max','max');  %基于小波分解的图像融合
figure;                          % 新建窗口
image(X1);                      % 显示图像
colormap(map);                  % 设置色彩索引图
axis square;                    % 设置显示比例
title(' Catherine 1');              % 设置图像标题
figure;                         % 新建窗口
image(X2);                     % 显示图像
colormap(map);                 % 设置色彩索引图
axis square;                    % 设置显示比例
title(' Catherine 2');               % 设置图像标题
figure;                          % 新建窗口
image(XFUS);                   % 显示图像
colormap(map);                  % 设置色彩索引图                
axis square;                      % 设置显示比例
title('Synthesized image');          % 设置图像标题