<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;} p
        {margin-top:0;
        margin-bottom:0}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Gasper,</p>
<p><br>
</p>
<p>There is no corrections computed in the GATE to CASToR utility.</p>
<p>It only removes scatter and/or random coincidences from the datafile.</p>
<p>So this is normal that you get the exact same results as if reconstructing the trues only.</p>
<p><br>
</p>
<p>If you want to mimic corrections as in real scanners, you must provide smooth corrections. In CASToR, scatter and random corrections are accounted for by adding them to the forward projection of the image. This implies that these corrections have to be noise
 free.<br>
</p>
<p><br>
</p>
<p>The solution that you propose (using another simulation to get an independent statistical realization of the scatter and random coincidences) is half of what should be done because you will have to smooth these signals. You can look at some papers about
 Monte Carlo scatter corrections in which they may propose some smoothing strategies. For randoms, you can do a fan sum followed by a reverse fan sum which should be enough.<br>
</p>
<p><br>
</p>
<p>Otherwise, you may simply subtract the second simulation of scatter and random from the prompts of the first simulation. BUT, if you want to get the best image from such a signal, you should then consider using the shifted poisson algorithm from Fessler.</p>
<p><br>
</p>
<p>As for the implementation, it may be easier to modify the castor-GATErootToCastor to read the two simulations and do what you want inside it before writing the castor datafile.</p>
<p><br>
</p>
<p>If you implement such things, we would be interested in including your developments in the castor tools so that they can be shared with the community.</p>
<p><br>
</p>
<p>Keep us posted.<br>
</p>
<p><br>
</p>
<p>Best<br>
</p>
<p>Simon<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div dir="ltr" style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> Castor-users <castor-users-bounces@lists.castor-project.org> de la part de Razdevšek, Gašper <gasper.razdevsek@fmf.uni-lj.si><br>
<b>Envoyé :</b> lundi 28 septembre 2020 11:05<br>
<b>Ŕ :</b> castor-users@lists.castor-project.org<br>
<b>Objet :</b> [Castor-users] Scatter and random correction</font>
<div> </div>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent; margin-top:0pt; margin-bottom:0pt">Dear CASToR users,</span></p>
<p style="color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<br>
</p>
<p style="color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent; margin-top:0pt; margin-bottom:0pt">I am simulating a TOF PET scanner in GATE, and I would like to reconstruct an image with scatter and random correction. I am using "castor-GATErootToCastor" utility function, and I noticed
 an option "-src" that computes scatter and random correction rates for each LOR. Performing a test, I noticed this option reconstructs basically the same image as if only true coincidences (option "-t") are reconstructed. I presume the function calculates
 exact correction factors and thus no statistical (Poisson) noise is introduced into the image. To introduce this statistical noise that is inevitable in real world, my idea is to obtain correction factors from one simulation and then use them to reconstruct
 an image from a separate simulation (same simulation but with a different seed). My questions are:</span></p>
<ul style="color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<li style="background:transparent; margin-top:0pt; margin-bottom:0pt"><span style="background:transparent; margin-top:0pt; margin-bottom:0pt">Is there an option to extract just the scatter and correction factors from the simulation?</span></li><li style="background:transparent; margin-top:0pt; margin-bottom:0pt"><span style="background:transparent; margin-top:0pt; margin-bottom:0pt">Is there a simple way to include correction factors into list-mode data (I want to include TOF information)?</span></li><li style="background:transparent; margin-top:0pt; margin-bottom:0pt"><span style="background:transparent; margin-top:0pt; margin-bottom:0pt">Any other experience/suggestion how to perform scatter and random correction? Maybe it is better/easier to modify "castor-GATERootToCastor"
 function and introduce some statistical noise when determining correction factors.<br>
</span></li></ul>
<p style="color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent; margin-top:0pt; margin-bottom:0pt">Any advice and suggestion will be greatly appreciated. Thank you!</span></p>
<p style="color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<br>
</p>
<p style="color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent; margin-top:0pt; margin-bottom:0pt">Best Regards,</span></p>
<p style="color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent; margin-top:0pt; margin-bottom:0pt">Gasper</span></p>
<p style="color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent; margin-top:0pt; margin-bottom:0pt">(PhD student)</span></p>
<br>
</div>
</div>
</div>
</body>
</html>