[Gate-users] Orientation of mhd file
simon.rit at creatis.insa-lyon.fr
Wed Jul 9 15:24:49 CEST 2014
You are playing with a relatively new feature so this might be a bug. In
theory, we try to account for both the orientation in the mhd
(TransformMatrix, that vv displays at the bottom left) and the
transformation in your macro file. If you want to rotate it 180° degrees
you can try to change the TransformMatrix to -1 0 0 0 -1 0 0 0 1 (the
matrix can be generated from VV with Tools / Register manually). Then this
is composed with the setRotationAxis / setRotationAngle.
One essential point: your matrix must be a rotation matrix. A flip (e.g., 1
0 0 0 -1 0 0 0 1) will not be accepted by Gate. Check the consol messages
to see if there is a warning.
If this is not the case, the description you give seems to suggest a bug so
could you provide the macro data for investigation?
On Wed, Jul 9, 2014 at 3:01 PM, Albert Hirtl <albert.hirtl at meduniwien.ac.at>
> Dear Colleagues,
> I have a question regarding the orientation of a CT which I stored as .mhd
> file (using vv) and read in into GATE (v7.0). If I display the CT using
> OGLSX it seems to be bottom up. No matter what I do with the commands
> /gate/patient/placement/setRotationAxis 0 0 1
> /gate/patient/placement/setRotationAngle XXXX deg
> it stays the same. In vv it was in the correct orientation. The box that
> is plotted around the CT seems to be rotating, however. Do I make anything
> wrong? Or is just the image that I see in OGLSX not rotating?
> Any help would be very much appreciated.
> Best regards,
> Medizinische Universität Wien
> Universitätsklinik für Radiologie und Nuklearmedizin
> Währinger Gürtel 18-20
> 1090 Wien
> Tel.: +43 (0) 1 / 40400 55450
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gate-users