Timeseries to Mean Cluster
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.
ts2meanCluster(image, mask)
image
: Input image of type 'nifti'mask
: Input mask of type 'nifti'. Must have different clusters labeled as integers.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)