powered by
Computes the mean value in each label of an ROI after masking with MaskImage
wmat<-getROIValues( valueImage, ROIImage, maskImage )
input image with values to average
ROI lable image
overall maskImage
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.
roiValues
roiMeans
roiVolumes
roiSDs
# NOT RUN { data("aal", package = "ANTsR") vals<-getROIValues( image, aal, mask ) # }
Run the code above in your browser using DataLab