<div dir="ltr"><div>Hi,</div><div>Thanks for the reference. After a quick glance, it looks similar to what is attempted in the FixedForcedDetectionActor. Primary should give you the fluence and Fresnel the one with phase contrast. Can you elaborate on why it does not look like the fluence to you? Be careful that this is deterministic so if you set 1 primary photon in your simulation, you'll get the probability to get a photon in each pixe, i.e., a very low number.<br></div><div>1. You cannot use the actor to store the remaining energy of each photon but you can do that with a PhaseSpaceActor. Note that there is not even the notion of photon here since a deterministic process.</div><div>2. The files containing FixedForcedDetectionActor are the ones doing the job. Check <a href="https://github.com/OpenGATE/Gate/blob/develop/source/digits_hits/src/GateFixedForcedDetectionActor.cc#L1165-L1211">this code</a> to look at what's done. What you want is the delta image, which you should be able to write to disk with materialDeltaFilename.</div><div>I hope this helps,</div><div>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 14, 2019 at 3:01 PM Jianbing <<a href="mailto:dongjbstrong@163.com">dongjbstrong@163.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Here are the refrenced phase-contrast simulation method: <a href="http://journals.iucr.org/s/issues/2014/03/00/hf5246/hf5246.pdf" target="_blank">http://journals.iucr.org/s/issues/2014/03/00/hf5246/hf5246.pdf</a><br><br>At 2019-06-14 20:53:17, "Jianbing" <<a href="mailto:dongjbstrong@163.com" target="_blank">dongjbstrong@163.com</a>> wrote:<br> <blockquote id="gmail-m_4465101550475391890isReplyContent" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)"><div style="line-height:1.7;color:rgb(0,0,0);font-size:18px;font-family:simhei"><div><span style="font-family:"Times New Roman"">Dear Gaters:</span></div><div><span style="font-family:"Times New Roman""> I want to use GATE to simulate X-ray phase-contrast imaging, which is based on X-ray' s wave property. Within my knowledge, There are two way to implement phase-contrast simulation: </span></div><div><span style="font-family:"Times New Roman""> 1) "XrayBoundary" physical process. This process is based on Snell's law, and it is simulation of the particle property of X-ray;</span></div><div><span style="font-family:"Times New Roman""> 2) "</span><font face="Times New Roman">Fixed Forced Detection CT with Fresnel phase contrast</font><span style="font-family:"Times New Roman"">". This Actor only suports </span><font face="Times New Roman">voxelized volume. And the 'fresnel' result and the 'primary' result seems to have nothing to do with the number of photons, which is not consistent with real physical process.</font></div><div><font face="Times New Roman"> Some people have <a href="http://journals.iucr.org/s/issues/2014/03/00/hf5246/hf5246.pdf" target="_blank">combined Monte-carlo with Matlab to simulate Phase-contrast imaging</a>. </font></div><div><font face="Times New Roman"> The key point is to store the path integral of the real part δ (complex refractive index, n = 1 - δ + iβ) in the trajectory when each photon passing through the material, and store its remaining energy. </font></div><div><font face="Times New Roman"><br></font></div><div><font face="Times New Roman"> Here are my questions:</font></div><div><font face="Times New Roman"> 1. How could I use "Phase space Actor" to store the remiaing Energy of each photon which has passing through the object?</font></div><div><font face="Times New Roman"> 2. How could I store the path integral of the real part δ of the complex refractive index? Which source file should I modify to realize this function? </font></div><div><font face="Times New Roman"><br></font></div><div><font face="Times New Roman"> Any help will be appreciated, thanks in advance.</font></div><div><font face="Times New Roman"><br></font></div><div><font face="Times New Roman"> Sincerely,</font></div><div><font face="Times New Roman"> Jianbing</font></div><div><font face="Times New Roman"><br></font></div><div><font face="Times New Roman"><br></font></div><div><font face="Times New Roman"> </font></div></div></blockquote>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></blockquote></div>