www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/DoubleDensityWvltTxdddtree2Example.m

    %% Double-Density Wavelet Transform  
% Obtain the double-density wavelet transform of an image.   

%% 
% Load the image and obtain the double-density wavelet transform. 
load xbox;
imagesc(xbox); colormap gray;
wt = dddtree2('ddt',xbox,1,'filters1');     

%% 
% Visualize the diagonal details in the two wavelet HH subbands. 
HH1 = wt.cfs{1}(:,:,5);
HH2 = wt.cfs{1}(:,:,8);
subplot(211)
imagesc(HH1);
colormap gray;
subplot(212);
imagesc(HH2);