Hi denis and others, not long ago you told me how to translate an image with aimsResample.
You told me about the -m option... That transformation matrix format is very simple: ASCII, 4 lines of 3 columns, as follows:
Tx Ty Tz
R11 R12 R13
R21 R22 R23
R31 R32 R33
T for translation, R for the 3x3 linear matrix part. Here the R part will be identity if I want a translation...
The translation part works...
But now, I want to do a rotation of 180 degree (pi radian) around Z, and I'm trying to do that with this matrix :
0 0 0 } no translation
-1 0 0
0 -1 0
0 0 1
But It doesn't work, do you have a clue what's wrong with my matrix ?
I was pretty sure of myself and I thought it was about to work at the first shot
Rotation of a MR volume via AimsResample.
- BigBrain_musician
- Posts: 4
- Joined: Mon May 12, 2008 5:56 pm
- Location: Québec
Rotation of a MR volume via AimsResample.
Mathieu Gauvin
LATIS - ETS
Electrical Engineering
Intern in Neuro-science.
LATIS - ETS
Electrical Engineering
Intern in Neuro-science.
- Jean-Francois Mangin
- Posts: 337
- Joined: Mon Mar 01, 2004 10:24 am
- Location: Neurospin, CEA, France
- Contact:
Re: Rotation of a MR volume via AimsResample.
This command just applies RX+T to your image, X being the point coordinates from the first corner
of the image. Therefore, your rotation is just pushing your data out of the field of view.
You need to add a rotation (I know this format for the matrix is painful...).
of the image. Therefore, your rotation is just pushing your data out of the field of view.
You need to add a rotation (I know this format for the matrix is painful...).
- riviere
- Site Admin
- Posts: 1361
- Joined: Tue Jan 06, 2004 12:21 pm
- Location: CEA NeuroSpin, Saint Aubin, France
- Contact:
Re: Rotation of a MR volume via AimsResample.
You meant: you need to add a translation
Denis
Denis
- Jean-Francois Mangin
- Posts: 337
- Joined: Mon Mar 01, 2004 10:24 am
- Location: Neurospin, CEA, France
- Contact:
Re: Rotation of a MR volume via AimsResample.
Thanks Denis...