Mentions légales du service

Skip to content

dwt2d() shape error

from lazylinop.wip import signal as lls
import numpy as np
import pywt

x = np.random.randn(64).reshape(8, 8)
D = lls.dwt2d(x.shape, hfilter=np.array(pywt.Wavelet('haar').dec_hi), lfilter=np.array(pywt.Wavelet('haar').dec_lo), level=1)

D@x.ravel()

fails with: ValueError: could not broadcast input array from shape (10,) into shape (9,)