[Gate-users] Rotation of CT Based Phantom in Gate
Xinjie Cao
xinjie.cao at stonybrook.edu
Mon Jun 6 18:02:17 CEST 2022
Hi Atiq,
I think you can track back to this thread in the GATE archive, which I
asked about one year ago,
http://lists.opengatecollaboration.org/pipermail/gate-users/2021-March/012344.html
And I think the solution is the same for CT-based phantom and other
voxelized phantoms like I used before. Thanks to Arpad's suggestion, the
issue was solved for my phantom, and here follows an example:
This is the original phantom translation macro:
=============================
/gate/world/daughters/name hof_brain
/gate/world/daughters/insert ImageRegularParametrisedVolume
/gate/hof_brain/geometry/setImage /home/goldan/Desktop/share/phantom.hdr
/gate/hof_brain/geometry/setRangeToMaterialFile
/home/goldan/Desktop/share/Range.dat
/gate/hof_brain/placement/setTranslation 0. 100. 0. mm
/gate/hof_brain/placement/setRotationAxis 0 0 1
/gate/hof_brain/placement/setRotationAngle 90 deg
=============================
And here is the modified macro based on Arpad's suggestion:
=============================
/gate/world/daughters/name Mbox
/gate/world/daughters/insert box
/gate/Mbox/placement/setTranslation 0.0 0.0 0.0 mm
/gate/Mbox/geometry/setXLength 256.0 mm
/gate/Mbox/geometry/setYLength 256.0 mm
/gate/Mbox/geometry/setZLength 486.0 mm
/gate/Mbox/setMaterial Air
/gate/Mbox/daughters/name hof_brain
/gate/Mbox/daughters/insert ImageRegularParametrisedVolume
/gate/hof_brain/geometry/setImage /home/goldan/Desktop/share/phantom.hdr
/gate/hof_brain/geometry/setRangeToMaterialFile
/home/goldan/Desktop/share/Range.dat
/gate/Mbox/placement/setTranslation 0. 100. 0. mm
/gate/Mbox/placement/setRotationAxis 0 0 1
/gate/Mbox/placement/setRotationAngle 90 deg
==============================
Hope this helps!
Best,
On Sun, Jun 5, 2022 at 11:11 PM Atiq Ur Rahman <atiqchep at gmail.com> wrote:
> Dear users,
> I am using some CT in vgate version-9.1. When I define and rotate the CT
> in the gate using the commands given below, the old CT still stays there.
> In the visualization, I can clearly see the original non-rotated and new
> rotated ct both. And I only define CT once.
>
> */gate/world/daughters/name
> Volume/gate/world/daughters/insert ImageNestedParametrisedVolume *
>
> */gate/Volume/geometry/setHUToMaterialFile conversion.txt *
>
> */gate/Volume/geometry/setImage dcm/1.dcm*
> * /gate/Volume/placement/setRotationAxis 0 1 0*
> */gate/Volume/placement/setRotationAngle 90 deg*
> Do you have any idea what is going on and how can I get rid of this
> issue?
> Your help will be highly appreciated. Actually, I have tried a lot to
> solve it but did not succeed.
> Regards
> Atiq
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
--
*....................................................*
*Xinjie Cao*
*M.Eng. / Ph.D. Candidate*
*Research Project Assistant*
*Department of Electrical and Computer Engineering & Radiology *
*Novel Medical Imaging Technologies Lab*
*Health Science Center Level 8*
*Stony Brook, NY 11794-8460 *
*Tel: +1 (631)202-9445*
you.stonybrook.edu/goldan/people/
*email: **xinjie.cao at stonybroo*k.edu <xinjie.cao at stonybrook.edu>
*....................................................*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20220606/e19413ea/attachment.html>
More information about the Gate-users
mailing list