Hi Siawoosh,
Good question... there are no options for it, but if you change line
242 of spm_defs.m:
dat = spm_sample_vol(V,d{:},1);
to have a number other than 1 at the end, you can get different
interpolation schemes. See the help for spm_sample_vol.
Confusingly, spm_sample_vol seems to offer sinc or polynomial, but not
b-spline -- I'm afraid I can't help there; maybe John will explain that.
Now I've just noticed you said spm2, and I'm looking at spm5, sorry!
Line 47 of Deformations/spm_applydef_ui.m looks equivalent...
img = spm_sample_vol(VI(i),y1,y2,y3,1);
and the same goes for spm_sample_vol as above.
Best,
Ged.
Siawoosh Mohammadi wrote:
> hello world,
>
> a question about SPM2:
> within the deformation-toolbox there is the possibility to apply the
> deformation-field.
> is it also possible to write the resulting image with
> bspline-interpolation?
>
> thanks and bye bye
> siawoosh
>
> --
> Siawoosh Mohammadi
>
> Dept. of Neurology
> University of Muenster Phone: +49-251-8352061
> Albert-Schweitzer-Strasse 33 Fax: +49-251-8348181
> 48129 Muenster, Germany E-mail: [log in to unmask]
>
>
|