妈in Content

waverec

1-D wavelet reconstruction

Description

example

x= waverec(c,l,wname)reconstructs the 1-D signalxbased on the multilevel wavelet decomposition structure [c,l] and the wavelet specified bywname. Seewavedec.

Note:x = waverec(c,l,wname)相当于x = appcoef(c,l,wname,0).

x= waverec(c,l,LoR,HiR)reconstructs the signal using the specified lowpass and highpass wavelet reconstruction filtersLoRandHiR, respectively.

Examples

collapse all

Load a signal. Perform a level 3 wavelet decomposition of the signal using thedb6wavelet.

loadleleccumwv =“db6”; [c,l] = wavedec(leleccum,3,wv);

Reconstruct the signal using the wavelet decomposition structure.

x = waverec(c,l,wv);

Check for perfect reconstruction.

err = norm(leleccum-x)
err = 1.0084e-09

Input Arguments

collapse all

Wavelet decomposition, specified as a vector. The vector contains the wavelet coefficients. The bookkeeping vectorlcontains the number of coefficients by level. Seewavedec.

Data Types:single|double
Complex Number Support:Yes

Bookkeeping vector, specified as a vector of positive integers. The bookkeeping vector is used to parse the coefficients in the wavelet decompositioncby level. Seewavedec.

Data Types:single|double

Analyzing wavelet, specified as a character vector or string scalar.

Note

waverecsupports only Type 1 (orthogonal) or Type 2 (biorthogonal) wavelets. Seewfiltersfor a list of orthogonal and biorthogonal wavelets.

Wavelet reconstruction filters, specified as a pair of even-length real-valued vectors.LoRis the lowpass reconstruction filter, andHiRis the highpass reconstruction filter. The lengths ofLoRandHiRmust be equal. Seewfiltersfor additional information.

Data Types:single|double

Output Arguments

collapse all

Reconstructed signal, returned as a vector.

References

[1] Daubechies, I.Ten Lectures on Wavelets, CBMS-NSF Regional Conference Series in Applied Mathematics. Philadelphia, PA: SIAM Ed, 1992.

[2] Mallat, S. G. “A Theory for Multiresolution Signal Decomposition: The Wavelet Representation,”IEEE Transactions on Pattern Analysis and Machine Intelligence. Vol. 11, Issue 7, July 1989, pp. 674–693.

[3] Meyer, Y.Wavelets and Operators. Translated by D. H. Salinger. Cambridge, UK: Cambridge University Press, 1995.

Extended Capabilities

See Also

||

Introduced before R2006a