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:
Y
You could try using scipy.ndimage.convolve it allows convolution of multidimensional images. here is the docs
scipy.ndimage.convolve