Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

wenergy2

Energy for 2-D wavelet decomposition

Syntax

[Ea,Eh,Ev,Ed] = wenergy2(C,S)
[Ea,EDetail] = wenergy2(C,S)

Description

For a two-dimensional wavelet decomposition [C,S] (see wavedec2 for details), [Ea,Eh,Ev,Ed] = wenergy2(C,S) returns Ea, which is the percentage of energy corresponding to the approximation, and vectors Eh, Ev, Ed, which contain the percentages of energy corresponding to the horizontal, vertical, and diagonal details, respectively.

[Ea,EDetail] = wenergy2(C,S) returns Ea, and EDetail, which is the sum of vectors Eh, Ev, and Ed.

Examples

load detail
[C,S] = wavedec2(X,2,'sym4');
[Ea,Eh,Ev,Ed] = wenergy2(C,S)

Ea =
   89.3520

Eh =
    1.8748    2.7360

Ev =
    1.5860    2.6042

Ed =
    0.7539    1.0932

[Ea,EDetails] = wenergy2(C,S)

Ea =
   89.3520

EDetails =
    4.2147    6.4334

Introduced before R2006a

Was this topic helpful?