Subject: Re: raw data
From: John Ashburner <john@FIL.ION.UCL.AC.UK>
Date: Thu, 10 May 2001 14:33:19 +0100
To: SPM@JISCMAIL.AC.UK
> I have a very simple question. Where does one find and how does one go
> about extracting the raw data associated with a particular voxel?
I would write a very short script to do this. Try modifying and copy-pasting
the following....
* * * * * * * * * * * * * * * * * * * * * * * * * * * * --
V=spm_vol(spm_get(Inf,'*.img'));
x = 32;
y = 32;
z = 32;
dat = zeros(length(V),1);
for i=1:length(dat),
dat(i) = spm_sample_vol(V(i),x,y,z,0);
end;
* * * * * * * * * * * * * * * * * * * * * * * * * * * * --
The vector dat will contain the raw data from the voxel at 32,32,32.
Best regards,
-John