Hi Rik,
Here it is:
M = spm_matrix([tx,ty,tz, rx,ry,rz]);
P = 'image_to_tweek.img,1';
spm_get_space(P,M*spm_get_space(P));
All the best,
-John
On Thu, 2009-08-20 at 09:40 +0100, Rik Henson wrote:
> John -
>
> I know I am being lazy and should really work this out myself, but in
> case it's just a few seconds for you, could you send another code
> snippet (gem) that would allow me to apply a vector of user-specified
> translations+rotations (in mm/radians) to reorient a NIFTI image?
>
> Please cc the list in reply if you like
>
> Thanks
> Rik
>
--
John Ashburner <[log in to unmask]>
|