-16-
¥Note: A ROI is defined by the values stored in voxels of the ÔmaskÕ dataset
HContiguity of voxels has no meaning to the ROI software described below
HTwo voxels are in the same ROI if they have the same value in the mask dataset (i.e., it doesnÕt matter where they are located in the volume)

¥3dmaskave
HProgram to compute the average of voxels from a functional dataset, with voxels selected from a mask dataset (interactive version: ROI Average plugin)
HExample:
í3dmaskave  -mask ROI_fred+tlrc  -mrange 1 4
í     `func_fred+tlrc[2,5,7]`
H
HWill print out (in the shell) one line of data for each of the 3 selected sub-bricks from the input dataset func_fred+tlrc:
H
í44.287 [137 voxels]     Âsub-brick #2 values averaged across all 4 ROIs
í27.021 [137 voxels] Âsub-brick #5 values averaged across all 4 ROIs
í-33.22 [137 voxels] Âsub-brick #7 values averaged across all 4 ROIs

åThe output above represents the average of all the voxels collapsed across ROIÕs 1, 2, 3, 4, (specified by -mrange 1 4) in our mask dataset ROI_fred+tlrc for sub-bricks #2, #5, and #7 from dataset func_fred+tlrc