Convolution and Deconvolution in Python using scipy.signal

前端 未结 2 1040
暗喜
暗喜 2021-01-15 09:46

I am trying to do some (de)convolution with audio samples. I have one sample s and the same sample with some filters added on top of it s_f

2条回答
  •  礼貌的吻别
    2021-01-15 10:45

    The rank(x) returns the rank of matrix. In other words number of dimensions it contains. Please check whether ranks of s and f are the same before call to signal.convolve(). Otherwise you will receive an exception you quote.

    I have no idea why deconvolution may return something with more dimensions than given input. This requires deeper investigation I don't have time for.

提交回复
热议问题