<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Chris,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">when loading voxelized sources in GATE, they’re placed in the first quarter of the coordinate system. You can find details
in the manual (<a href="https://opengate.readthedocs.io/en/latest/voxelized_source_and_phantom.html#voxelized-sources">https://opengate.readthedocs.io/en/latest/voxelized_source_and_phantom.html#voxelized-sources</a>) under “7.3.2 Position”. There is also
an example provided, explaining how you need to shift your voxelized source accordingly.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Try the command below instead
</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-US">of “</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%">/gate/source/thyroid_Phantom/gps/centre
0. 35. 0. Mm“ and adjust the shift „XX“ according to half of your image size. This command line is also in your example on page 146 of the v8.0 manual version.</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-US">/gate/source/</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%">
thyroid_Phantom</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-US"> /setPosition –XX –XX –XX mm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-US">I hope this helps you to place your source
in the right position. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-US">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-US">Julia<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Gate-users <gate-users-bounces@lists.opengatecollaboration.org>
<b>Im Auftrag von </b>Christopher Watanabe<br>
<b>Gesendet:</b> Dienstag, 19. November 2019 22:53<br>
<b>An:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Betreff:</b> [Gate-users] Voxelized Source Problem<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi all, <o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I'm facing problems importing a voxelized source into my simulation. My code below is very close to the code in the Gate Users' Manual V8.0, page 146.
<br>
<br>
# Inserting Voxelized Source<br>
/gate/source/addSource thyroid_Phantom voxel<br>
/gate/source/thyroid_Phantom/reader/insert image<br>
/gate/source/thyroid_Phantom/imageReader/translator/insert linear<br>
/gate/source/thyroid_Phantom/imageReader/linearTranslator/setScale 2 Bq<br>
/gate/source/thyroid_Phantom/imageReader/readFile ./data/thyroidPhantom/metaimage2.mhd<br>
/gate/source/thyroid_Phantom/imageReader/verbose 1<br>
<br>
/gate/source/thyroid_Phantom/gps/centre 0. 35. 0. mm<br>
<br>
/gate/source/voxel/gps/particle gamma<br>
/gate/source/voxel/gps/energytype Mono<br>
/gate/source/voxel/gps/monoenergy 140.5 keV<br>
/gate/source/voxel/gps/angtype iso<br>
/gate/source/voxel/gps/mintheta 0. deg<br>
/gate/source/voxel/gps/maxtheta 90. deg<br>
/gate/source/voxel/gps/minphi 0. deg<br>
/gate/source/voxel/gps/maxphi 360. deg<br>
/gate/source/voxel/gps/confine NULL<br>
/gate/source/voxel/setForcedUnstableFlag true<br>
/gate/source/voxel/setForcedHalfLife 21636 s<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Where metaimage2.mhd is a binary mask of a thyroid scan. (0 background, 1 thyroid).
<o:p></o:p></p>
</div>
<p class="MsoNormal">Despite this, I'm getting very strange visualization results from the simulation:
<o:p></o:p></p>
<div>
<p class="MsoNormal"><img border="0" width="541" height="306" style="width:5.6354in;height:3.1875in" id="_x0000_i1025" src="cid:image002.png@01D59F7E.56128E50" alt="image.png"><o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Strangely, the source doesn't move when I change the
<i>/gate/source/thyroid_Phantom/gps/centre</i> coordinates. I'm a bit at a loss of how to solve this problem.
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Has anyone had similar experiences with this? Is it a GATE issue, or is this more likely something that would originate from a faulty .mhd file formatting?
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Thank you! <o:p></o:p></p>
</div>
<p class="MsoNormal">Chris<o:p></o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>