[Gate-users] Orientation of mhd file

Simon Rit simon.rit at creatis.insa-lyon.fr
Wed Jul 9 16:59:44 CEST 2014


Thanks for sharing the data with us. I tested on my computer and I have the
expected behavior, i.e.,
- the image is upside down because Y goes from bottom to the top on Gate
and it's the opposite in VV,
- if I set
/gate/patient/placement/setRotationAngle          180 deg
then it is back to its normal position
- same thing if I use the enclosed mhd but it is now upside down in VV
- if I do the last two points together, it's back to the original position.
Is this not what you observe?
Simon


On Wed, Jul 9, 2014 at 3:55 PM, Albert Hirtl <albert.hirtl at meduniwien.ac.at>
wrote:

>  Hi,
>
> Please find attached my very basic macros and the header of my image file
> that I used to play around with the .mhd feature (as tar archive). I can
> not send the raw data, since even if I gzip them they are larger than 11 MB
> and my mail is rejected. Do you have a mailbox which accepts more than 11
> MB?
>
> Thanks again and cheers,
> Albert
>
>
>
>
> On 09/07/14 15:32, Jérôme Suhard wrote:
>
>   X stands for X11 (old static window)
>  Qt stands for ... Qt ( GUI with mouse support)
>
>  S(tored) mode: you just see a box
>  I(mmediate) mode: you see your image with Gate7
>
>  so OGLS or OGLI should not change orientation and/or rotation...
>
>  If you have time to send me your CT/macro, I'm still interested by them
>
>
> 2014-07-09 15:24 GMT+02:00 Albert Hirtl <albert.hirtl at meduniwien.ac.at>:
>
>>  Hi,
>>
>> Thanks for the prompt answer, it was already enough to solve the problem:
>>
>> I initially copied the following line from the
>> example_PHANTOM_SOURCE/Voxelized_Phantom_Source/mainMacro.mac
>>
>> /vis/open                           OGLSX
>>
>> Motivated by your answer I tried OGL*I*X and everything is fine... Now
>> all orientations are correct and rotations work properly.
>>
>> So, could OGLSX be a typo in the example?
>>
>> Thanks a lot for you help!
>>
>> Cheers,
>> Albert (a bit embarrassed :-[ )
>>
>>
>>
>> On 09/07/14 15:09, Jérôme Suhard wrote:
>>
>> Hi,
>>
>> 2014-07-09 15:01 GMT+02:00 Albert Hirtl <albert.hirtl at meduniwien.ac.at>:
>>
>>> If I display the CT using OGLSX it seems to be bottom up.
>>
>>
>>  You mean OGL*I*X, right ?
>>
>>
>>> /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?
>>>
>>
>>  can you give the most small macro with the CT showing this behaviour ?
>>
>>  thanks
>>
>> --
>> Jérôme Suhard
>>
>>
>>
>>   --
>> 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.hirtlhttp://www.meduniwien.ac.at/moccamed/
>>
>>
>
>
> --
> Jérôme Suhard
>
>
>
> --
> 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.hirtlhttp://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/a6d306a0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AC_CT_mhd.mhd
Type: application/octet-stream
Size: 337 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140709/a6d306a0/attachment-0001.obj>


More information about the Gate-users mailing list