calculating energy of an image

1 回表示 (過去 30 日間)
kash
kash 2012 年 5 月 31 日
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);

採用された回答

Wayne King
Wayne King 2012 年 5 月 31 日
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 件のコメント
kash
kash 2012 年 5 月 31 日
i get 32 values for each subband,please tell how to plot for it
PRAKASH BHARTI
PRAKASH BHARTI 2012 年 12 月 21 日
what is the unit of above calculated energy please specify

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by