1 function w = dualtree3D(x, J, Faf, af)
3 % 3D Dual-Tree Discrete Wavelet Transform
6 % w = dualtree3D(x, J, Faf, af)
10 % Faf - first stage filters
11 % af - filters for remaining stages
13 % w{j}{i}{d} - wavelet coefficients
14 % j = 1..J, i = 1..4, d = 1..7
15 % w{J+1}{i} - lowpass coefficients
20 % [Faf, Fsf] = FSfarras;
21 % [af, sf] = dualfilt1;
22 % w = dualtree3D(x, J, Faf, af);
23 % y = idualtree3D(w, J, Fsf, sf);
25 % max(max(max(abs(err))))
27 % WAVELET SOFTWARE AT POLYTECHNIC UNIVERSITY, BROOKLYN, NY
28 % http://taco.poly.edu/WaveletSoftware/
45 [xi w{1}{i}] = afb3D(x, Faf{f1}, Faf{f2}, Faf{f3});
47 [xi w{k}{i}] = afb3D(xi, af{f1}, af{f2}, af{f3});
54 [w{k}{1}{m} w{k}{2}{m} w{k}{3}{m} w{k}{4}{m}] = ...
55 pm4(w{k}{1}{m}, w{k}{2}{m}, w{k}{3}{m}, w{k}{4}{m});