[g,a] = wfbt2filterbank(wt)
wt | Wavelet filter tree definition |
g | Cell array containing filters |
a | Vector of sub-/upsampling factors |
[g,a]=wfbt2filterbank(wt) calculates the impulse responses g and the subsampling factors a of non-iterated filterbank, which is equivalent to the wavelet filterbank tree described by wt used in wfbt. The returned parameters can be used directly in filterbank and other routines.
[g,a]=wfbt2filterbank({w,J,'dwt'}) does the same for the DWT (fwt) filterbank tree.
Please see help on wfbt for description of wt and help on fwt for description of w and J.
The function additionally support the following flags:
The following two examples create a multirate identity filterbank using a tree of depth 3. In the first example, the filterbank is identical to the DWT tree:
[g,a] = wfbt2filterbank({'db10',3,'dwt'}); filterbankfreqz(g,a,1024,'plot','linabs','posfreq');
In the second example, the filterbank is identical to the full wavelet tree:
[g,a] = wfbt2filterbank({'db10',3,'full'}); filterbankfreqz(g,a,1024,'plot','linabs','posfreq');