Performs SPM12 Smoothing on an Image
spm12_smooth(
filename,
retimg = FALSE,
fwhm = 8,
dtype = c("SAME", "UINT8", "INT16", "INT32", "FLOAT32", "FLOAT64"),
implicit_mask = FALSE,
prefix = "s",
add_spm_dir = TRUE,
spmdir = spm_dir(verbose = verbose, install_dir = install_dir),
clean = TRUE,
verbose = TRUE,
reorient = FALSE,
install_dir = NULL,
...
)
File to be smoothed
Logical indicating if image should be returned or
result from run_matlab_script
Full-Width Half Max to smooth
data type for the output format
Should an implicit mask be used.
An "implicit mask" is a mask implied by a
particular voxel value (0 for images with integer type,
NaN
for float images).
Prefix to append to front of image filename
Add SPM12 directory from this package
SPM dir to add, will use package default directory
Remove scripts from temporary directory after running
Print diagnostic messages
if retimg=TRUE
pass to readNIfTI
directory to download SPM12
Arguments passed to run_spm12_script
readNIfTI
Result from run_matlab_script or nifti file, depending on
retimg