This function produces a Gaussian smoothing kernel that can be used in separable convolution to smooth images.
Usage
gaussKernel(fwhm=8,ksize=5,voxsize=1)
Arguments
fwhm
Full width at half maximum of the kernel.
ksize
Size of kernel. Must be Odd
voxsize
Size of the voxel in the direction you wish to smooth in. If smoothing a non medical image leave voxsize as 1 unless anisotropic smoothing is required.