[Gate-users] Orientation of mhd file
Simon Rit
simon.rit at creatis.insa-lyon.fr
Wed Jul 9 15:24:49 CEST 2014
Hi,
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?
Thanks,
Simon
On Wed, Jul 9, 2014 at 3:01 PM, Albert Hirtl <albert.hirtl at meduniwien.ac.at>
wrote:
> 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,
> Albert
>
> --
> Medizinische Universität Wien
> Universitätsklinik für Radiologie und Nuklearmedizin
> Währinger Gürtel 18-20
> 1090 Wien
> Austria
>
> Tel.: +43 (0) 1 / 40400 55450
>
> Web:
> http://www.meduniwien.ac.at/user/albert.hirtl
> http://www.meduniwien.ac.at/moccamed/
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140709/1f6ff924/attachment-0001.html>
More information about the Gate-users
mailing list