Gauss.smooth: Gaussian Smooth

View source: R/smoothing_fwhm.R

Gauss.smoothR Documentation

Gaussian Smooth

Description

Perform Gaussian smoothing in 2D and 3D array

Usage

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

## 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 Aug. 30, 2022, 1:33 a.m.