how to apply DWT on a image and to extract energy from all the coeffecients?
1 回表示 (過去 30 日間)
古いコメントを表示
how to apply DWT on a image and to extract energy from all the coeffecients?
0 件のコメント
回答 (1 件)
Wayne King
2012 年 10 月 5 日
編集済み: Wayne King
2012 年 10 月 5 日
You can obtain a measure of relative contribution (percentage of energy in each of the detail images and the approximation image) with this:
load woman;
dwtmode('per');
[C,S] = wavedec(X,1,'db4');
TE = norm(C,2)^2;
[ca,ch,cv,cd] = dwt2(X,'db4','mode','per');
app_per = 100*(sum(abs(ca(:)).^2))/TE;
horiz_per = 100*(sum(abs(ch(:)).^2))/TE;
vert_per = 100*(sum(abs(cv(:)).^2))/TE;
diag_per = 100*(sum(abs(cd(:)).^2))/TE;
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!