Skip to contents

This function is a wrapper for the FreeSurfer command mris_fwhm. It estimates the full-width half maximum (FWHM) of the brain data based on the residuals of your model.

Usage

estimate_fwhm(
  outp_dir,
  hemi,
  resid_file,
  mask = NULL,
  target = "fsaverage",
  verbose = FALSE
)

Arguments

outp_dir

: output path, where results are stored. The function generates two files: "fwhm.dat" and "finamMask.mgh".

hemi

: hemisphere.

resid_file

: path the .mgh file containing the residuals of the model.

mask

: apply a mask (default = cortical mask + excluding problematic vertices)

target

: (default = "fsaverage") data template.

verbose

: (default = FALSE) verbosity.

Value

An integer FWHM value