Dear Guillaume
Thank you for your reply. I just found one error with:
>> XYZmm = [-36 -85 -13];
>> D = spm_summarise(SPM.xY.VY,XYZmm);
Error using spm_summarise (line 59)
Incorrect xY specified
It only works if I run it as:
D = spm_summarise(SPM.xY.VY,struct('def','sphere', 'spec',0, 'xyz',[-36 -85 -13]'));
also I just want to check if I got this right. If I want to retrieve all XYZ coordinates from 'all' or 'mask.nii', I just run
[Y,xY] = spm_summarise(SPM.xY.VY,'all');
[Y,xY] = spm_summarise(SPM.xY.VY,'mask.nii');
and
xY.XYZmm will be 'all' or 'mask.nii' XYZ coordinates, right?
so if I got it right, what is the difference between SPM.xVol.XYZ and 'mask.nii' xY.XYZmm?
SPM.xVol.XYZ coordinates are all +ve??
all the best,
maaly
|