Learn R Programming

ANTsR (version 1.0)

getROIValues: Compute mean value in each ROI label.

Description

Computes the mean value in each label of an ROI after masking with MaskImage

Usage

wmat<-getROIValues( valueImage, ROIImage, maskImage  )

Arguments

valueImage

input image with values to average

roiImage

ROI lable image

valueImage

overall maskImage

Value

A list with components: roiValues, the (number) labels of each ROI; roiMeans, the mean value of each ROI; roiVolumes, the volume (in voxels) of each ROI; and roiSDs, the standard deviation of each ROI.

Examples

Run this code
# NOT RUN {
data("aal", package = "ANTsR")
vals<-getROIValues( image, aal, mask  ) 
# }

Run the code above in your browser using DataLab