An internal function named GaussSmoothArray. Original from AnalyzeFMRI package
GaussSmoothArray(
x,
voxdim = c(1, 1, 1),
ksize = 5,
sigma = diag(3, 3),
mask = NULL,
var.norm = FALSE
)
an array with the size of parameter x
The array to be smoothed.
The dimensions of the volume elements (voxel) that make up the array.
The dimensions (in number of voxels) of the 3D discrete smoothing kernel used to smooth the array.
The covariance matrix of the 3D Gaussian smoothing kernel. This matrix doesn't have to be non-singular; zero on the diagonal of sigma indicate no smoothing in that direction.
A 3D 0-1 mask that delimits where the smoothing occurs.
Logical flag indicating whether to normalize the variance of the smoothed array.