Imfilter for 3d array

I am doing

sdata = imfilter(deepcopy(tdata), Kernel.gaussian(3), Inner())

where tdata is a 3d array. It appears that the smoothing is being done
by considering separately 2d slices of the image. Am I missing something?
I expected the Gaussian smoothing to be done in 3D.

I’m afraid it was my wrong assumption that the size of the kernel (3)
will be taken as a hint to expand to three dimensions. Passing explicitly
(3, 3, 3) does the trick.

1 Like