Hi -
I'd like to compute RMS for an ROI. I can cobble this together like so:
# Square the values in the ROI
3dcalc -a ds.nii -b mask.nii -expr 'b*(a*a)' -prefix squared_ds.nii
# Get the mean of the squared values in the ROI
mean_of_squares=`3dROIstats -mask mask.nii squared_ds.nii`
# Get the sqrt of the mean of squares.
rms=`echo "sqrt(${mean_of_squares})" | bc -l`
# Remove temp file.
\rm squared_ds.nii
Is there a built-in way that I'm missing? If not, this might be a nice thing to have in 3dROIstats.