LogicalNeuroVol-class | R Documentation |
This S4 class represents a three-dimensional brain image, where all values are either TRUE or FALSE. It is particularly useful for creating and managing binary masks for brain images.
This function constructs a LogicalNeuroVol
instance.
LogicalNeuroVol(data, space, label = "", indices = NULL)
data |
A three-dimensional |
space |
An instance of class |
label |
A |
indices |
An optional 1-d index vector. |
A LogicalNeuroVol
instance.
# Load an example brain mask
brain_mask <- read_vol(system.file("extdata", "global_mask.nii", package="neuroim2"))
# Convert the brain mask to a LogicalNeuroVol
logical_vol <- LogicalNeuroVol(brain_mask, space(brain_mask))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.