powered by
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)
Input image of type 'nifti'
Input mask of type 'nifti'. Must have different clusters labeled as integers.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab