One approach is to do this from the matlab command line.
V = spm_vol(spm_select);
Y = zeros(length(V),size(XYZ,2));
for t=1:length(V)
Y(t,:) = spm_sample_vol(V(t), XYZ(1,:),XYZ(2,:),XYZ(3,:),0);
end
Y = mean(Y,2);
where XYZ is a 3xn matrix containing the voxel coordinates you are
interested in.
Hope this helps,
Rich.
2009/10/24 Jokel Meyer <[log in to unmask]>
>
> Dear SPM-list!
>
> I have a data set of preprocessed image (realigned, normalized, smoothed) files from numerous subjects in resting state. Now I would like to extract the raw signal from a couple of pre-defined regions (e.g. average signal of hippocampus or first eigenvariate of IFG...). Is there any way to extract this signal directly from the image files without specifying a SPM.mat file?
> Many thanks for your help!
> Jokel
--
Richard Masterton, PhD
Postdoctoral Fellow
Brain Research Institute
|