Description Usage Arguments Examples
Extract an ROI from an image timeseries using a mask. Expects an image in the format of NIFTI file. If it's not, we get trouble.
1 | extract.roi(img.ts, roi.mask)
|
img.ts |
a 4D image timeseries from which to extract the mask |
roi.mask |
the roi mask to use to extract the file. |
1 2 3 4 5 6 | image.filename <- system.file("extdata", "haxby2001subj1bold.nii.gz", package = "mvpa")
mask.filename <- system.file("extdata", "haxby2001subj1mask.nii.gz", package = "mvpa")
fmri.image <- read.image(image.filename)
mask.image <- read.image(mask.filename)
roi.data <- extract.roi(fmri.image,mask.image)
summary(roi.data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.