Skip to contents

Clean the super-subject matrix of the vertices that have 0 value or are not located on the cortex, according to FreeSurfer *cortical.mask.mgh file distributed in inst/extdata. This function is used in build_supersubject.

Usage

mask_cortex(hemi = "lh", target = "fsaverage")

Arguments

hemi

: (default = "lh") hemisphere ("lh" or "rh")

target

: (default = "fsaverage")

Value

A (large) logical vector for cortical (or technical, i.e. vertex = 0) mask.