I\'m trying to create a 3D (and a 2D) sliding window over a 3D (z,x,y) np.array, centered on each sample of this array. I currently have an horrifying 1D implementation with sev