Move subcortex mask locations into the subcortex data matrix by assigning them a specific value (e.g. NA).
move_from_submask(
xifti,
new_mask,
value = NA,
label_value = "Other",
name = "Other",
RGBA = c(1, 1, 1, 0)
)
The "xifti"
with re-organized data and subcortex masks
A "xifti"
object.
The new mask, of which the current mask should be a subset.
(new_mask
should have more TRUE
values.) The new TRUE
values will be moved to the subcortex data.
The value to assign the new locations. Default: NA
.
The label value to assign the new locations. Default:
"Other"
.
Only used if the "xifti"
has the dlabel intent and
value
is not an already-existing Key. This is the name to assign to
the new key for the new locations, as well as a length-four numeric
vector indicating the red, green, blue, and alpha values for the color to
assign to the new key. These will be reflected in the updated label table.
Note that RGBA values must all be in [0, 1].
Currently, only one name and set of RGBA values are supported, meaning that
the out-of-mask subcortex locations will have the same Key, name, and color
across all data columns in the "xifti"
. An error will occur if the
Key already exists for some columns but not others.
Defaults: "Other"
for "name"
and white with 0 alpha for
RGBA
.
move_to_submask
unmask_cortex