unmask_subcortex: Undo a volumetric mask

Description Usage Arguments Value

View source: R/utils_volume.R

Description

Un-applies a mask to vectorized data to yield its volumetric representation. The mask and data should have compatible dimensions: the number of rows in dat should equal the number of locations within the mask. This is used for the subcortical CIFTI data.

Usage

1
unmask_subcortex(dat, mask, fill = NA)

Arguments

dat

Data matrix with locations along the rows and measurements along the columns. If only one set of measurements were made, this may be a vector.

mask

Volumetric binary mask. TRUE indicates voxels inside the mask.

fill

The value for locations outside the mask. Default: NA.

Value

The 3D or 4D unflattened volume array


neuroconductor/ciftiTools documentation built on Dec. 22, 2021, 1:09 a.m.