I'd like to know whether someone already tried to extract time course data
from SPM format images. I have difficulty in reading data from various
platforms; eg, NT workstation, and SGI. The data processed in either
platform is not the same type. Can someone help me how to handle(read) the
data from SGI system? Or, another approach is to utilize spm functions like
spm_sample_vols, however, it's trying to read from memory mapped image.
Below is my simple routine to read the raw TC data.
Thank you for your help.
Jason
________________________________________________
skip=L(1)+(L(2)-1)*V.dim(1)+(L(3)-1)*V.dim(1)*V.dim(2);
fid=fopen(filename,'r','a');
image = fread(fid, inf, 'int16');
tc(ii) = (image(skip));
sprintf('frame = %d, value = %d', ii, tc(ii))
|