下面是我用来检查convolve2d正确性的代码from scipy.signal import convolve2d
print 'Sums to'print 'However the top-left value of the convolve2dresult'
Y = convolve2d(X, K,
这就是我从文档中复制的内容:frame = convolve2d(frame, psf, 'same')ret, frame = vid.read()Traceback (most recent call last):
line 1025, in convolve2dValueError: convolve2d inputs must both be 2D array