dwtmult2

PURPOSE ^

dwtmult2.m

SYNOPSIS ^

function w = dwtmult2(x, h0, h1, L, sym)

DESCRIPTION ^

 dwtmult2.m

 Performs multiple levels of the 2D discrete wavelet transform.
 Usage : w = dwtmult2(x, h0, h1, L, sym)

 Written by : Justin Romberg
 Created : 6/26/2001

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % dwtmult2.m
0002 %
0003 % Performs multiple levels of the 2D discrete wavelet transform.
0004 % Usage : w = dwtmult2(x, h0, h1, L, sym)
0005 %
0006 % Written by : Justin Romberg
0007 % Created : 6/26/2001
0008 
0009 function w = dwtmult2(x, h0, h1, L, sym)
0010 
0011 if (nargin == 4), sym = 0; end
0012 
0013 [Nr,Nc] = size(x);
0014 
0015 w = x;
0016 for ll = 1:L
0017   % rows
0018   for ii = 1:(Nr*2^(-ll+1))
0019     w(ii,1:Nc*2^(-ll+1)) = dwtlevel1(w(ii,1:Nc*2^(-ll+1)), h0, h1, sym);
0020   end
0021   % columns
0022   for jj = 1:(Nc*2^(-ll+1))
0023     w(1:Nr*2^(-ll+1),jj) = dwtlevel1(w(1:Nr*2^(-ll+1),jj)', h0, h1, sym)';
0024   end
0025 end
0026

Generated on Mon 10-Jun-2013 23:03:23 by m2html © 2005