Borrar filtros
Borrar filtros

Undefined function or variable 'FSfarras'

3 visualizaciones (últimos 30 días)
maha lakshmi
maha lakshmi el 2 de Feb. de 2013
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

Respuesta aceptada

Youssef  Khmou
Youssef Khmou el 2 de Feb. de 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 comentarios
maha lakshmi
maha lakshmi el 2 de Feb. de 2013
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 el 2 de Feb. de 2013
Editada: Youssef Khmou el 2 de Feb. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by