Undefined function or variable 'FSfarras'

1 回表示 (過去 30 日間)
maha lakshmi
maha lakshmi 2013 年 2 月 2 日
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

採用された回答

Youssef  Khmou
Youssef Khmou 2013 年 2 月 2 日
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 件のコメント
maha lakshmi
maha lakshmi 2013 年 2 月 2 日
your answer is helpful but on execution we got an error please help us w = dualtree2D(x, J, Faf, af); ??? Undefined function or method 'afb2D_A' for input arguments of type 'uint8'. y = idualtree2D(w, J, Fsf, sf); ??? Undefined function or method 'idualtree2D' for input arguments of type 'cell'.
Youssef  Khmou
Youssef Khmou 2013 年 2 月 2 日
編集済み: Youssef Khmou 2013 年 2 月 2 日
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

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by