ValueError: object too deep for desired array while using convolution

前端 未结 4 1363
既然无缘
既然无缘 2020-12-15 15:24

I\'m trying to do this:

h = [0.2,0.2,0.2,0.2,0.2]

Y = np.convolve(Y, h, \"same\")

Y looks like this:

4条回答
  •  天命终不由人
    2020-12-15 16:05

    You could try using scipy.ndimage.convolve it allows convolution of multidimensional images. here is the docs

提交回复
热议问题