as-ClusteredNeuroVol-DenseNeuroVol | R Documentation |
This method converts a ClusteredNeuroVol into an equivalent DenseNeuroVol object.
from |
A |
Convert a ClusteredNeuroVol Object to a DenseNeuroVol Object
A DenseNeuroVol
object
ClusteredNeuroVol
, DenseNeuroVol
# Create a clustered volume
mask <- read_vol(system.file("extdata", "global_mask_v4.nii", package="neuroim2"))
clusters <- rep(1:5, length.out=sum(mask))
cvol <- ClusteredNeuroVol(mask, clusters)
# Convert to DenseNeuroVol
dvol <- as(cvol, "DenseNeuroVol")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.