<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hi Mark,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Moving the voxelized source by half of each dimension should indeed work and has worked in the cases where I've used voxelized source. Could you share the part of the macro where you define and move the voxelized source?
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Another way to determine the positioning could be to form the "ground truth" image of the trues, i.e. an image where the coincidences are accumulated based on their source locations. Then compare that image to the attenuation image from the attenuation map
actor (both with the same dimensions).</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Regards,
<div>Ville-Veikko Wettenhovi</div>
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Gate-users <gate-users-bounces@lists.opengatecollaboration.org> on behalf of BAKER, Mark (THE CLATTERBRIDGE CANCER CENTRE NHS FOUNDATION TRUST)
<mark.baker23@nhs.net><br>
<b>Sent:</b> Thursday, June 16, 2022 16:27<br>
<b>To:</b> gate-users@lists.opengatecollaboration.org <gate-users@lists.opengatecollaboration.org><br>
<b>Subject:</b> [Gate-users] Voxelised Source Placement Confusion</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.x_MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
span.x_EmailStyle17
{font-family:"Calibri",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-family:"Calibri",sans-serif}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
{}
-->
</style>
<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi all</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I raised this query a while (or one similar) but unfortunately, I’ve not managed to get back around to my project for a while. In short, I can’t get good alignment between my CT and PET images. My understanding is that the voxelised PET
source image should be offset by half of its size to account for it being placed in the corner of the world instead of the centre where the CT image is place. My world is 1 1 2 m and my CT data is 780 780 693 mm (512x512x213 matrix). My PET data is 814.568
814.568 639 mm (200x200x213 matrix).</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I think I was a bit confused at first, and was moving the PET source by half of its own size but then I re-read the ReadTheDocs and I think it is suggesting that I actually need to move the PET image by half of the world size (setPosition
-500 -500 -1000 mm) but this results in a large offset. I’ve tried various combinations of half the size of the world, half the size of the PET data etc. and I think I’m just going around in circles now. Logically, I feel like the solution is that I move half
of the world size at first to move the corner of the PET data into the centre of the world, then back by half of the PET image to put the centre of the PET in the centre of the world, but it is still offset. Any suggestions, as I’m tearing my hair out a little
now.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Additionally, in order to test where the positioning is correct, I’m relying on the generation of secondary electrons within the water phantom in my image and looking at the NbofHits file produced. This works fine when the difference
is obvious between the two, but I wonder if there is a better way to see the isocentre in order to 100% confirm it is correct? The reason I use secondary electrons is that positrons and gammas flood the image making it impossible to see the underlying CT data,
plus I expect the secondary electrons to largely be created in the water and not air.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thank you in advance!</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><b><span style="color:#006871">Mark Baker</span></b></p>
<p class="x_MsoNormal"><span style="color:#006871">Principal Clinical Scientist</span></p>
<p class="x_MsoNormal"><span style="color:#006871">Imaging Physics (Ionising)</span></p>
<p class="x_MsoNormal"><span style="color:#006871">The Clatterbridge Cancer Centre NHS Foundation Trust</span></p>
<p class="x_MsoNormal"><i><span style="color:#006871">(he, him)</span></i></p>
<p class="x_MsoNormal"><b><span style="color:#006871"> </span></b></p>
<p class="x_MsoNormal"><span style="color:#006871">CCCW Tel: 0151 556 5030 </span>
</p>
<p class="x_MsoNormal"><span style="color:#006871">CCCL Tel: 0151 318 8438</span></p>
<p class="x_MsoNormal"><span style="color:#006871">Email: </span><span style="color:#4472C4"><a href="mailto:mark.baker23@nhs.net"><span style="color:#4472C4">mark.baker23@nhs.net</span></a></span><span style="color:#006871">
</span></p>
<p class="x_MsoNormal"><span style="color:#4472C4"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fteams.microsoft.com%2Fl%2Fchat%2F0%2F0%3Fusers%3Dmark.baker23%40nhs.net&data=05%7C01%7C%7Cf915f5c6550b432ebceb08da4f9bf88e%7C87879f2e73044bf2baf263e7f83f3c34%7C0%7C0%7C637909828551983408%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=2gNulx6%2Fbs%2FjQq1Ql9%2BTME07ATbeaYvixCr6%2BNmrgwM%3D&reserved=0" originalsrc="https://teams.microsoft.com/l/chat/0/0?users=mark.baker23@nhs.net" shash="u15ucJY5LPJrKO7yABWb1s5Om31QjAxEGsfBUvdXZQsVMkGL4ROAI1Pte9SW08jt5rUUukBZg1VZpdZ4IGFi4UHcNiQXN2hX9L80256Vx6+lUNAxFuOL8Wy85fkOH3olEfbM87Vz9npQH2O1beuNN3gxjQay9gPpZ0PVsKohnJI="><span style="color:#4472C4">Microsoft
Teams (click here)</span></a></span></p>
<p class="x_MsoNormal"><span style=""> <span style="color:#006871"></span></span></p>
<p class="x_MsoNormal"><i><span style="color:#006871">Honorary Lecturer, Dept. of Physics</span></i></p>
<p class="x_MsoNormal"><i><span style="color:#006871">University of Liverpool</span></i></p>
<p class="x_MsoNormal"><span style="color:#006871"> </span></p>
<p class="x_MsoNormal"><span style=""><img border="0" width="624" height="163" id="x_Picture_x0020_3" alt="CCC email footer April 2021" style="width:6.5in; height:1.6979in" data-outlook-trace="F:1|T:1" src="cid:image003.jpg@01D8818D.268E6E30"></span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"> </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://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.nhs.net%2Farticle-categories%2Fjoining-nhsmail%2F&data=05%7C01%7C%7Cf915f5c6550b432ebceb08da4f9bf88e%7C87879f2e73044bf2baf263e7f83f3c34%7C0%7C0%7C637909828551983408%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=Ywv3IwmeQYM9GcQE03wso5KVri5UFABmAkURmo8JyYY%3D&reserved=0" originalsrc="https://support.nhs.net/article-categories/joining-nhsmail/" shash="bEZhHSzqEvshhzYRvwszUHZd3J03vDOz+L/x3Hfq54s8gJ1EQlEwEUQhNKYE8fzGz4nou63K1Wr53An7TeRA2+Yx7EDZzWRQVUqnehnE9+bWOpngUXuJ3r/JKTLD9v3mEuFNmA2mjtj8SChd45HKGfLFOKqDtU5GS1SyI0295lg=">
Joining NHSmail – NHSmail Support</a><br>
<br>
</font></div>
</body>
</html>