powered by
Calculates a simple, discrete Gaussian smoothing kernel of a specfic size given the covariance matrix of the Gaussian.
GaussSmoothKernel(voxdim=c(1, 1, 1), ksize=5, sigma=diag(3, 3))
Dimensions of each voxel.
Dimensions of the discrete kernel size.
The covariance matrix of the Gaussian kernel.
An array of dimension (ksize,ksize,ksize) containing the smoothing kernel.
# NOT RUN { a <- GaussSmoothKernel(voxdim=c(1,1,1), ksize=5, sigma=diag(1,3)) # }
Run the code above in your browser using DataLab