Undefined function or variable 'FSfarras'
1 view (last 30 days)
Show older comments
i am using 2d dual tree discrete wavelet transform .it says error while compiling as [Faf, Fsf] = FSfarras; ??? Undefined function or variable 'FSfarras'.please help us
0 Comments
Accepted Answer
Youssef Khmou
on 2 Feb 2013
add the function FSfarras in your MATLAB directory and try again :
function [af, sf] = FSfarras
% Farras filters organized for the dual-tree
% complex DWT.
%
% USAGE:
% [af, sf] = FSfarras
% OUTPUT:
% af{i}, i = 1,2 - analysis filters for tree i
% sf{i}, i = 1,2 - synthesis filters for tree i
% See farras, dualtree, dualfilt1.
%
% WAVELET SOFTWARE AT POLYTECHNIC UNIVERSITY, BROOKLYN, NY
% http://taco.poly.edu/WaveletSoftware/
af{1} = [
0 0
-0.08838834764832 -0.01122679215254
0.08838834764832 0.01122679215254
0.69587998903400 0.08838834764832
0.69587998903400 0.08838834764832
0.08838834764832 -0.69587998903400
-0.08838834764832 0.69587998903400
0.01122679215254 -0.08838834764832
0.01122679215254 -0.08838834764832
0 0
];
sf{1} = af{1}(end:-1:1, :);
af{2} = [
0.01122679215254 0
0.01122679215254 0
-0.08838834764832 -0.08838834764832
0.08838834764832 -0.08838834764832
0.69587998903400 0.69587998903400
0.69587998903400 -0.69587998903400
0.08838834764832 0.08838834764832
-0.08838834764832 0.08838834764832
0 0.01122679215254
0 -0.01122679215254
];
sf{2} = af{2}(end:-1:1, :);
3 Comments
Youssef Khmou
on 2 Feb 2013
Edited: Youssef Khmou
on 2 Feb 2013
function w = dualtree2D(x, J, Faf, af)
% 2D Dual-Tree Discrete Wavelet Transform
%
% w = dualtree2D(x, J, Faf, af)
% INPUT:
% x - 2-D signal
% J - number of stages
% Faf - first stage filters
% af - filters for remaining stages
% OUPUT:
% w{i}{1:J+1}: tree i wavelet coeffs (i = 1,2)
[x1 w{1}{1}] = afb2D(x, Faf{1});
for k = 2:J
[x1 w{k}{1}] = afb2D(x1, af{1});
end
w{J+1}{1} = x1;
[x2 w{1}{2}] = afb2D(x, Faf{2});
for k = 2:J
[x2 w{k}{2}] = afb2D(x2, af{2});
end
w{J+1}{2} = x2;
for k = 1:J
for m = 1:3
[w{k}{1}{m} w{k}{2}{m}] = pm(w{k}{1}{m},w{k}{2}{m});
end
end
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!