I was trying to apply discrete wavelet transform on 2D matrix of size (23x7680) but I get this error ValueError: Input array has fewer dimensions than the specified axes
.
Any help would be appreciated.
code:
data=np.random.rand(23,7680)
coeffs = pywt.dwt2(data, 'haar')
cA, (cH, cV, cD) = coeffs