ts2meanCluster {voxel} | R Documentation |
Timeseries to Mean Cluster
Description
This function is able to output the mean voxel intensity over a cluster. Each column represents a cluster and the rows represent the t-dimension.
Usage
ts2meanCluster(image, mask)
Arguments
image |
Input image of type 'nifti' |
mask |
Input mask of type 'nifti'. Must have different clusters labeled as integers. |
Examples
image <- oro.nifti::nifti(img = array(1:320, dim =c(4,4,4,5)))
mask <- oro.nifti::nifti(img = array(0:15, dim = c(4,4,4,1)))
matrix <- ts2meanCluster(image, mask)
[Package voxel version 1.3.5 Index]