Gauss.smooth: Gaussian Smooth

Description Usage Arguments Value Author(s) References Examples

View source: R/smoothing_fwhm.R

Description

Perform Gaussian smoothing in 2D and 3D array

Usage

1
Gauss.smooth(tstat, fwhm, scaled = TRUE)

Arguments

tstat

A 2D or 3D array of t-map or (z-map).

fwhm

Vector in terms of the Full-width Half-Maximum (FWHM).

scaled

If TRUE (default) scaled the smooth

Value

Return smoothed map using the provided FWHM.

Author(s)

Israel Almodovar-Rivera and Ranjan Maitra.

References

Almodovar-Rivera, I., & Maitra, R. (2019). FAST adaptive smoothing and thresholding for improved activation detection in low-signal fMRI. IEEE transactions on medical imaging, 38(12), 2821-2828.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(tmap)
##before smoothing
t1 <- tmap[,,1]
image(t1,main="Before smooting")
sm <- Gauss.smooth(tstat = t1, fwhm=c(3,3))
image(sm,main="Smoothing with FWHM (3,3)")

## End(Not run)

ialmodovar/RFASTfMRI documentation built on Jan. 26, 2020, 4:02 a.m.