ClusteredBrainVolume-class {neuroim} | R Documentation |
ClusteredBrainVolume
Description
Three-dimensional brain image that is divided into N disjoint partitions
Construct a ClusteredBrainVolume
instance
Usage
ClusteredBrainVolume(mask, clusters, labelMap = NULL, source = NULL,
label = "")
Arguments
mask |
an instance of class |
clusters |
a vector of clusters ids with length equal to number of nonzero voxels in mask |
labelMap |
an optional |
source |
an optional instance of class |
label |
an optional |
Value
ClusteredBrainVolume
instance
Examples
bspace <- BrainSpace(c(16,16,16), spacing=c(1,1,1))
grid <- indexToGrid(bspace, 1:(16*16*16))
kres <- kmeans(grid, centers=10)
mask <- BrainVolume(rep(1, 16^3),bspace)
clusvol <- ClusteredBrainVolume(mask, kres$cluster)
[Package neuroim version 0.0.6 Index]