calculating energy of an image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have a code for dual tree 3D,in that i want to calculate energy for each subband ,please help how to calculate energy
x = rand(64,64,16);
J = 1;
[Faf, Fsf] = FSfarras;
[af, sf] = dualfilt1;T=10;
w = dualtree3D(x, J, Faf, af);
y = idualtree3D(w, J, Fsf, sf);
0 comentarios
Respuesta aceptada
Wayne King
el 31 de Mayo de 2012
You can calculate the energy as follows
x = rand(64,64,16);
J = 1;
[Faf, Fsf] = FSfarras;
[af, sf] = dualfilt1;T=10;
w = dualtree3D(x, J, Faf, af);
details = w{1}{1}{1};
energy = sum(abs(details(:)).^2);
w{2}{:}{:} contains the approximation coefficients
4 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!