GaussSmoothKernel: Calculates a discrete Gaussian smoothing kernel.

Description Usage Arguments Value Author(s) Examples

View source: R/f.gaussian.spatial.smoothing.functions.R

Description

Calculates a simple, discrete Gaussian smoothing kernel of a specfic size given the covariance matrix of the Gaussian.

Usage

1
GaussSmoothKernel(voxdim=c(1, 1, 1), ksize=5, sigma=diag(3, 3))

Arguments

voxdim

Dimensions of each voxel.

ksize

Dimensions of the discrete kernel size.

sigma

The covariance matrix of the Gaussian kernel.

Value

An array of dimension (ksize,ksize,ksize) containing the smoothing kernel.

Author(s)

J. L. Marchini

Examples

1
a <- GaussSmoothKernel(voxdim=c(1,1,1), ksize=5, sigma=diag(1,3))

AnalyzeFMRI documentation built on Oct. 5, 2021, 5:06 p.m.