<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=us-ascii">
<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;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:Georgia;
panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
h3
{mso-style-priority:9;
mso-style-link:"Heading 3 Char";
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:13.5pt;
font-family:"Times New Roman",serif;
font-weight:bold;}
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
{mso-style-priority:99;
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.Heading3Char
{mso-style-name:"Heading 3 Char";
mso-style-priority:9;
mso-style-link:"Heading 3";
font-weight:bold;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-style-priority:99;
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.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Julia<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you very much for your prompt and thorough reply. I’m using my simulations for dosimetry also at the moment, although as you say, it probably doesn’t matter much. On the plus side, my understanding matches
your description of what I think *<b>should</b>* be happening.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have been using ImageJ to review the images, and whilst the slices appear in a different order between the two components, the mm position of each slice aligns fine (one just counts up and the other counts
down). I will check with 3D slicer (and maybe amide which is a new one for me) as independent check.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span style="color:#006871;mso-fareast-language:EN-GB">Mark Baker<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">Principal Clinical Scientist<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">Imaging Physics (Ionising)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">The Clatterbridge Cancer Centre NHS Foundation Trust<o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="color:#006871;mso-fareast-language:EN-GB">(he, him)<o:p></o:p></span></i></p>
<p class="MsoNormal"><b><span style="color:#006871;mso-fareast-language:EN-GB"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">CCCW Tel: 0151 556 5030
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">CCCL Tel: 0151 318 8438<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">Email:
</span><span style="color:#4472C4;mso-fareast-language:EN-GB"><a href="mailto:mark.baker23@nhs.net"><span style="color:#4472C4">mark.baker23@nhs.net</span></a></span><span style="color:#006871;mso-fareast-language:EN-GB">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#4472C4;mso-fareast-language:EN-GB"><a href="https://teams.microsoft.com/l/chat/0/0?users=mark.baker23@nhs.net"><span style="color:#4472C4">Microsoft Teams (click here)</span></a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> Julia Franziska Brosch-Lenz <jbrosch@bccrc.ca>
<br>
<b>Sent:</b> 07 April 2022 17:23<br>
<b>To:</b> BAKER, Mark (THE CLATTERBRIDGE CANCER CENTRE NHS FOUNDATION TRUST) <mark.baker23@nhs.net><br>
<b>Cc:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Subject:</b> RE: Position Voxel PET Source on top of DICOM CT<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">Hi Mark,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">I am not sure if you want to simulate absorbed dose (because you mention you use a F18 PET image as source input) or whether you would like to simulate a F18 PET image of a patient/phantom. Anyways,
that doesn’t matter. In can only share my experience with dose simulations using voxelized input:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">In my dosimetry simulations, I have usually used the mhd format and ensured beforehand that the CT and source are registered by loading them in an imaging viewing software (I am a big fan of ‘amide’,
but 3DSlicer is also popular), but also by comparing the mhd header files. With that, I don’t have to bother about any translation or offset between CT and source image later.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">Next, the voxelized source has to be shifted by half of it’s size in x,y,z.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">Here an example from one of my simulations: my image matrix is 256x256x1000. My voxel size is 0.145x0.145x0.145 mm^3. That makes a total image size of 37.12 37.12 145 mm^3. That means the command
line for my source is:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"># Source has always to be shifted to -1/2 of its total length in x,y,z<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">/gate/source/YOURSOURCE/setPosition -18.56 -18.56 -72.5 mm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<h3 style="mso-margin-top-alt:22.5pt;margin-right:0cm;margin-bottom:7.5pt;margin-left:0cm;background:white">
<span lang="EN-CA" style="font-family:"Calibri",sans-serif;color:#1F497D">Lastly, here is a snippet from the GATE manual:<br>
</span><span lang="EN-CA" style="font-size:19.0pt;font-family:"Georgia",serif;color:#3E4349;font-weight:normal"><a href="https://opengate.readthedocs.io/en/latest/voxelized_source_and_phantom.html#id20"><span style="color:#004B6B">7.3.2. Position</span></a><o:p></o:p></span></h3>
<p style="line-height:16.8pt;background:white;hyphens: auto;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span lang="EN-CA" style="font-size:13.0pt;font-family:"Georgia",serif;color:#3E4349">By default the activity image is placed in the “first quarter”, i.e. the image is placed starting at 0 0 0 mm (x, y, z). This is different from the placing of volumes in Geant4
and GATE where volumes are centered on their geometrical center. In order to align the activity image with a phantom volume, a translation is needed which in the simplest case (where the activity image has the same size and position as the volume) is a translation
of half the size of the volume in the negative direction.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">Hope that helps you for the source positioning. Unfortunately, I have not enough experience with the GATE visualization to help you there.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">Julia<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-CA">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-CA"> Gate-users <<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org">gate-users-bounces@lists.opengatecollaboration.org</a>>
<b>On Behalf Of </b>BAKER, Mark (THE CLATTERBRIDGE CANCER CENTRE NHS FOUNDATION TRUST)<br>
<b>Sent:</b> April 7, 2022 7:18 AM<br>
<b>To:</b> <a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br>
<b>Subject:</b> [Gate-users] Position Voxel PET Source on top of DICOM CT<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td style="border:solid black 1.0pt;background:lightyellow;padding:0cm 7.5pt 0cm 7.5pt">
<p><span style="color:black">This email came from an </span><b><span style="color:red">EXTERNAL SENDER.</span>
</b><span style="color:black">If you think this message is suspicious, please do not open any attached files or links, and forward it as an attachment to
</span><span style="color:blue"><a href="mailto:spammail@bccrc.ca">spammail@bccrc.ca</a>
</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal">Hi all<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m really struggling with my current macro, in which I am aiming to position a F18 PET image as a voxelised source on top of a CT image. I have two sets of data at the moment, a patient image and a NEMA phantom image. With the NEMA phantom
image, when observing the geometry using OGL, my trajectories appear to come from what I think is too far a negative z-direction (assuming the axis from the visualisation is pointing in a positive direction) i.e. almost the edge of the world and definitely
outside of the CT phantom image. With the patient image, the source distribution does overlay the CT information, but it is flipped such that the head is in the pelvis region and vice versa.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My best guess is that the orientation or offset of either setup is incorrect. The CT dataset originally started as set as 0 translation in all directions, with no rotation axis or angle, and the source position set as negative half of the
PET image size (e.g. -400 -400 -170 mm) – this is what I understand as to how the images should be arranged. However, I have tried all sorts of combinations of rotations, translations and source positions (including some wild numbers just to see if they make
any impact) but they don’t change what I’m seeing. I get the same effect whether the images are DCM or MHD (albeit converted from DCM to MHD using ImageJ).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve attached all three relevant macs to this email. To actually run Gate, I use a script to pass variables into 8 instances of Gate in order to utilise the 8 cores on the machine. Only main1.mac contains instructions to open the visualisation
(as main2-8 are exact copies, there is no need to duplicate resource demand).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m sure I am just missing something really obvious, but I’d appreciate if anyone could help me out.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Additionally, whether this is related or not, but when I first open the terminal and run my macro, I can almost guarantee that the process will hang on deleting the visualisation manager the first time it is run. I can CTRL-C and then re-run
the exact same script, and it proceeds fine. It only started doing this pretty recently, and I’m not sure what I have done differently to cause this. It might possibly be linked, or might be a total red herring.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="color:#006871;mso-fareast-language:EN-GB">Mark Baker<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">Principal Clinical Scientist<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">Imaging Physics (Ionising)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">The Clatterbridge Cancer Centre NHS Foundation Trust<o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="color:#006871;mso-fareast-language:EN-GB">(he, him)<o:p></o:p></span></i></p>
<p class="MsoNormal"><b><span style="color:#006871;mso-fareast-language:EN-GB"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">CCCW Tel: 0151 556 5030
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">CCCL Tel: 0151 318 8438<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB">Email:
</span><span style="color:#4472C4;mso-fareast-language:EN-GB"><a href="mailto:mark.baker23@nhs.net"><span style="color:#4472C4">mark.baker23@nhs.net</span></a></span><span style="color:#006871;mso-fareast-language:EN-GB">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#4472C4;mso-fareast-language:EN-GB"><a href="https://teams.microsoft.com/l/chat/0/0?users=mark.baker23@nhs.net"><span style="color:#4472C4">Microsoft Teams (click here)</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"> <span style="color:#006871"><o:p></o:p></span></span></p>
<p class="MsoNormal"><i><span style="color:#006871;mso-fareast-language:EN-GB">Honorary Lecturer, Dept. of Physics<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#006871;mso-fareast-language:EN-GB">University of Liverpool<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="color:#006871;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><img border="0" width="624" height="163" style="width:6.5in;height:1.6979in" id="Picture_x0020_3" src="cid:image001.jpg@01D84B4F.60B872F0" alt="CCC email footer April 2021"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA"><br>
</span><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-CA"><br>
************************************************************************************** ******************************<br>
<br>
This message may contain confidential information. If you are not the intended recipient please:<br>
i) inform the sender that you have received the message in error before deleting it; and
<br>
ii) do not disclose, copy or distribute information in this e-mail or take any action in relation to its content (to do so is strictly prohibited and may be unlawful).
<br>
Thank you for your co-operation.<br>
<br>
NHSmail is the secure email, collaboration and directory service available for all NHS staff in England. NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and other accredited email services.<br>
<br>
For more information and to find out how you can switch visit <a href="https://support.nhs.net/article-categories/joining-nhsmail/">
Joining NHSmail – NHSmail Support</a></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
</div>
<p><span lang="EN-CA"> <o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%;margin-left:.45pt;margin-right:.45pt">
<tbody>
<tr style="height:10.5pt;height:px">
<td style="background:#910A19;padding:5.25pt 1.5pt 5.25pt 1.5pt;height:10.5pt">
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.7pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"> <o:p></o:p></span></p>
</td>
<td width="100%" style="width:100.0%;background:#FDF2F4;padding:0cm 3.75pt 0cm 6.25pt;height:10.5pt">
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.7pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:#212121">This message originated from outside of NHSmail. Please do not click links or open attachments unless you recognise the sender and know the content is safe.
</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
</div>
<br>
<font face="Courier New" color="Black" size="2"><br>
************************************************************************************** ******************************<br>
<br>
This message may contain confidential information. If you are not the intended recipient please:<br>
i) inform the sender that you have received the message in error before deleting it; and
<br>
ii) do not disclose, copy or distribute information in this e-mail or take any action in relation to its content (to do so is strictly prohibited and may be unlawful).
<br>
Thank you for your co-operation.<br>
<br>
NHSmail is the secure email, collaboration and directory service available for all NHS staff in England. NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and other accredited email services.<br>
<br>
For more information and to find out how you can switch visit <a href="https://support.nhs.net/article-categories/joining-nhsmail/">
Joining NHSmail – NHSmail Support</a><br>
<br>
</font>
</body>
</html>