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

    %% Haar Transform of Image Down to a Specified Level
% Show the effect of limiting the maximum level of the 2-D Haar transform 
% on an image.
%%
% Load and display the image of a cameraman.
im = imread('cameraman.tif');
imagesc(im)
%%
% Obtain the 2-D Haar transform to level 2 and view the level 2 approximation.
[a2,h2,v2,d2] = haart2(im,2);
imagesc(a2)