Thanks for all of your suggestions. We are getting very close to have the
effects we want.
One more question: Is there a way to increase the blob size of an unit voxel
on the rendered brain surface?
Or it is fixed in the way that one pixel on the rendered brain represent one
unit voxel in the original data?
Thanks,
Erik
----- Original Message -----
From: "John Ashburner" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Monday, September 10, 2001 4:56 AM
Subject: Re: spm_render question
> The XYZ co-ordinates should be positive integers between [1 1 1] and the
> dimensions of some imaginary image. The affine transformation matrix
passed
> to the routine is a mapping from this "voxel-space" to their co-ordinates
in
> Talairach/MNI (see the help on image format for more of a description of
the
> mat file). For the example I sent you, I used the dimensions and affine
> transformation of one of the template images, but you can get the
equivalent
> information for any image by doing:
> V = spm_vol(spm_get(1,'*.img'))
> The dimensions are V.dim(1:3) and the affine transform is V.mat
>
> Best regards,
> -John
>
> On Friday 07 September 2001 19:26, Erik Chang wrote:
> > By setting showbar to 1, I can get the full figure display now.
> > Another question is: what are the coordinates in XYZ? Can we just put
> > positive values into XYZ?
> >
> > Thanks,
> > Erik
> > ----- Original Message -----
> > From: "John Ashburner" <[log in to unmask]>
> > To: <[log in to unmask]>
> > Sent: Thursday, September 06, 2001 12:13 PM
> > Subject: Re: spm_render question
> >
> > > On Thursday 06 September 2001 17:59, Erik Chang wrote:
> > > > > As shown in the attached image file, the rendered image only
adopts
> >
> > the
> >
> > > > bottom half of the window. How to adjust it to a full window image?
> > >
> > > I'm afraid you can't without changing the Matlab code. You get the
full
> > > figure display when you actually select the SPM.mat file for
rendering,
> > > or the half figure display when the SPM.mat file is assumed to be
loaded
> > > (because this is called via the results and we don't want to overwrite
> > > the glass brain at the top of the figure).
> > >
> > > The hack to fix this is to modify spm_render.m so that showbar is set
to
> >
> > 1.
> >
> > > Best regards,
> > > -John
> > >
> > > --
> > > 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]
>
> --
> 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]
>
|