Dear Nu,
the function you're looking for is spm_get_space.m but you'd better use
it from the batch interface in module SPM>Utils>Reorient Images. It
requires an affine transformation matrix that you can obtain from the
reorientation parameters using spm_matrix.m.
Best regards,
Guillaume.
On 26/08/10 17:26, <Firstname> <Lastname> wrote:
> Hi everyone,
>
> Does anyone know what the function called when the "Reorient
> images..." button is pressed from the Display window?
> Is it possible to call it in a script, assuming that the appropriate
> reorientation parameters are already known?
> Something like:
> reorient_images([i1.img; i2.img; i3.img] , x, y, z, pitch, roll, yaw)
> for example.
>
> Thanks,
>
> Nu
>
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|