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 CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by