ValueError: Input array has fewer dimensions than the specified axes

841 views Asked by At

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
0

There are 0 answers