www.gusucode.com > wavelet 源码程序 matlab案例代码 > wavelet/DWT2DOfImageExample.m
%% 2-D DWT of Image % This example shows how to obtain the 2-D DWT of an image. %% % Load the "woman" image and obtain the 2-D DWT using the 'sym4' wavelet. % Use the periodic extension mode. % Copyright 2015 The MathWorks, Inc. load woman; wname = 'sym4'; [CA,CH,CV,CD] = dwt2(X,wname,'mode','per'); %% % Display the vertical detail image and the lowpass approximation. subplot(211) imagesc(CV); title('Vertical Detail Image'); colormap gray; subplot(212) imagesc(CA); title('Lowpass Approximation');