If you pass a single argument to spm_render that contains the following dat
structure, then it should prompt for everything else you need. The following
will produce two tiny red dots, one at the midsection just above the
cerebellum and the other in the right sylvian fissure.
XYZ = [46 19 25; 73 73 33]';
t = [1 1]';
mat = [ 2 0 0 -92; 0 2 0 -128; 0 0 2 -74; 0 0 0 1];
dim = [91 109 91];
dat = struct('XYZ',XYZ,'t',t,'mat',mat,'dim',dim);
spm_render(dat);
The co-ordinates of the dots are at:
dat.mat(1:3,:)*[XYZ ; ones(1,size(XYZ,2))]
Dimensions etc (dim and mat) are the same as from SPM's template images.
Best regards,
-John
> Actually, I was trying to render blobs on to the 'standard brain' at some
> pre-specified locations.
> The motivation is to represent the sites of stimulation while applying TMS
> (transcranial magnetic stimulation) on subjects.
> Is there anyway that I can generate a *SPM.mat whose statistical values are
> specified by myself rather than performing statistical analysis?
--
Dr John Ashburner.
Wellcome Department of Cognitive Neurology.
12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420
http://www.fil.ion.ucl.ac.uk/~john
mail: [log in to unmask]
|