Smoothness Estimation using smoothest
fsl_smoothest(
file,
residual_image,
z_image,
dof = NULL,
opts = "",
verbose = TRUE,
...
)
filename of input brain mask
4d residual image. If specified, then
dof
must be specified.
z-statistic image. Cannot be specified if
residual_image
is specified
number of degrees of freedom
(character) operations to be passed to smoothest
(logical) print out command before running
additional arguments to pass to fslcmd
An output of smoothness estimate
if (have_fsl()) {
file = mni_fname(mm = 2, brain = TRUE, mask = TRUE)
img = mni_img(mm = 2, brain = TRUE, mask = FALSE)
mask = mni_img(mm = 2, brain = TRUE, mask = TRUE)
img = zscore_img(img = img, mask = mask)
est = fsl_smoothest(file = file, z_image = img)
}
#> smoothest --mask="/usr/local/fsl/data/standard/MNI152_T1_2mm_brain_mask.nii.gz" --zstat='/private/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T/RtmpKzob0N/file85755210394f.nii.gz' --verbose ;