Scipy ndimage.convolve skips the summation of channels
问题 I'm trying to use scipy 's ndimage.convolve function to perform a convolution on a 3 dimensional image (RGB, width, height). Taking a look here: It is clear to see that for any input, each kernel/filter should only ever have an output of NxN , with strictly a depth of 1. This is a problem with scipy , as when you do ndimage.convolve with an input of size (3, 5, 5) and a filter/kernel of size (3, 3, 3) , the result of this operation produces an output size of (3, 5, 5) , clearly not summing