SyntaxFix
Write A Post
Hire A Developer
Questions
You could try using scipy.ndimage.convolve it allows convolution of multidimensional images. here is the docs
scipy.ndimage.convolve