Hello Aser,
if you want to compute the average signal of a set of images within a ROI (defined as a binary mask) you can use the following:
M = spm_select(1,'image','Select ROI');
P = spm_select([1 Inf],'image','Select image(s)');
spm_summarise(P,M,@mean)
Best regards,
Guillaume.
From: SPM (Statistical Parametric Mapping) <[log in to unmask]> on behalf of Aser A <[log in to unmask]>
Sent: 19 February 2015 14:18
To: [log in to unmask]
Subject: [SPM] computing average of values in ROIHello,
Is it possible to use for example spm_select and select a ROI and then output an average of the values inside this ROI?
If yes how can I do this ?
Many thanks
Aser