Azzera filtri
Azzera filtri

how to apply DWT on a image and to extract energy from all the coeffecients?

2 visualizzazioni (ultimi 30 giorni)
how to apply DWT on a image and to extract energy from all the coeffecients?

Risposte (1)

Wayne King
Wayne King il 5 Ott 2012
Modificato: Wayne King il 5 Ott 2012
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;

Categorie

Scopri di più su Discrete Multiresolution Analysis in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by