mri_vol2label: Convert volume to label

Description Usage Arguments

View source: R/fs-utils.R

Description

Converts values in a volume or surface overlay to a label. The program searches the input for values equal to labelid. The xyz values for each point are then computed based on the tkregister voxel-to-RAS matrix (volume) or from the xyz of the specified surface. The xyz values are then stored in labelfile in the label file format. The statistic value is set to 0. While this program can be used with any mri volume, it was designed to convert parcellation volumes, which happen to be stored in mri format.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
mri_vol2label(
  input_file,
  label_id,
  hemisphere,
  surface = NULL,
  subject = "fsaverage5",
  subjects_dir = freesurfer::fs_subj_dir(),
  output_dir,
  opts = NULL,
  verbose = TRUE
)

Arguments

input_file

input volume

label_id

label to run

hemisphere

hemisphere, either "rh" or "lh"

surface

ouput surface

subject

Freesurfer subject, must exist in whatever subject directory specified or set in the environment with $SUBJECTS_DIR

subjects_dir

Freesurfer subject directory

output_dir

output directory path

opts

other arguments to freesurfer command

verbose

logical indicating to be verbose or not


neuroconductor/ggsegExtra documentation built on Aug. 18, 2020, 4:45 p.m.