nigma / pywt

We're moving. Please visit https://github.com/PyWavelets
MIT License
166 stars 72 forks source link

Wavelet multi-level :Direct reconstruction with upcoef #18

Open hengley opened 5 years ago

hengley commented 5 years ago

Pywt.upcoef can implement a layer of decomposition and reconstruction of wavelets in Python, but after multi-layer decomposition, it is wrong to reconstruct data.

TAUforPython commented 5 months ago

try this

waveletname = 'db4' dwt_coeffs = pywt.wavedec(signal, waveletname, level=5)

y_5level_idwt = \ pywt.upcoef('a', dwt_coeffs[0][:], waveletname, level = 5, take = len(signal))\