Learn R Programming

voxel (version 1.3.5)

ts2meanCluster: 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

Run this code
# 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