Learn R Programming

spm12r (version 2.0)

spm12_smooth: SPM12 Smooth

Description

Performs SPM12 Smoothing on an Image

Usage

spm12_smooth(filename, retimg = TRUE, fwhm = 8, prefix = "s", add_spm_dir = TRUE, spmdir = spm_dir(), clean = TRUE, verbose = TRUE, reorient = FALSE, ...)

Arguments

filename
File to be smoothed
retimg
Logical indicating if image should be returned or result from run_matlab_script
fwhm
Full-Width Half Max to smooth
prefix
Prefix to append to front of image filename
add_spm_dir
Add SPM12 directory from this package
spmdir
SPM dir to add, will use package default directory
clean
Remove scripts from temporary directory after running
verbose
Print diagnostic messages
reorient
if retimg=TRUE pass to readNIfTI
...
Arguments passed to run_spm12_script readNIfTI

Value

Result from run_matlab_script or nifti file, depending on retimg