timeseriesimage2matrix¶
purpose:
Time-series image to matrix
description:
Extract a matrix from a time-series image after applying a mask.
usage:
timeseriesimage2matrix( img , mask )
examples:
img <- antsImageRead("input.nii", 4)
mask <- array(1, dim(img)[1:3])
# set some values of mask to FALSE ...
mat <- timeseriesimage2matrix(img, mask)