<div dir="ltr"><div><div>Hi,<br></div>Sorry for the late reply. I'm not sure I understood your workaround... You can put anything you'd like in one voxelized volume but my feeling is that it is going to be difficult to define a voxelized volume containing the filters since they are generally far apart, that would make huge voxelized volume. If you meant severat voxelized volume daughter of one volume, that will not work.<br></div><div>Please stay on the mailing list,<br></div>Simon<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 5, 2016 at 9:52 AM, Lukas Gromann <span dir="ltr"><<a href="mailto:lukas.gromann@tum.de" target="_blank">lukas.gromann@tum.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Hi Simon,
<div><br>
</div>
<div>Ohh, yes I missed that part in the Wiki, as it looked liked as „<span style="background-color:rgb(255,255,255);color:rgb(37,37,37);font-family:sans-serif;font-size:14px">GateHybridForcedDetectionActo<wbr>r</span>“, would be a new actor due to the
name and separator in the Wiki. </div>
<div><br>
</div>
<div>This makes everything a little more complex…</div>
<div><br>
</div>
<div>Would this kind of workaround work? </div>
<div>1. I define a mother „CT Volume“ out of Air, and add the Patient-Phantom and e.g. the Patien-Bed and my Filters all as Offspring-Volumes of the „CT-Volume“.</div>
<div>2. Then I would do the Simulations to get the intensities for Primary, secondary etc. </div>
<div>3. Repeat the Simulations, with just the Patient-Phantom Subvolume disabled. </div>
<div>4. Calculate the Attenuation Images not from the given Flatfield, but rather take the Primary image from (3.) as my new Flatfield. </div>
<div><br>
</div>
<div>Would this work? Or would this still violate the precondition, that there is more than one „voxelized“ volume? </div>
<div><br>
</div>
<div>Thanks for your Help. </div><span><font color="#888888">
<div><br>
</div>
<div>Lukas</div>
<div><br>
</div>
</font></span><div><span><br>
<div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>------------------------------<wbr>----------------------</div>
<div>Lukas Gromann</div>
<div><br>
</div>
<div>Lehrstuhl für Biomedizinische Physik (E17)<br>
Technische Universität München<br>
Boltzmannstrasse 11<br>
85748 Garching<br>
<br>
</div>
<div><a href="mailto:Lukas.Gromann@TUM.de" target="_blank">Lukas.Gromann@TUM.de</a></div>
<div><br>
</div>
<div>Tel.: 089-289/10905</div>
<div>Mobil: 017629718306</div>
</div>
</div>
<br>
</span><div><div><div>
<div>Am 05.09.2016 um 09:30 schrieb Simon Rit <<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.f<wbr>r</a>>:</div>
<br>
<blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>Here come the limitations of the actor which is documented on the wiki. Currently, you can only have one voxelized volume in your scene, nothing more. So no filter. When we need to add a filter we change the spectrum in our use of the actor but, for example,
we cannot add a bow tie filter. So the only thing that is removed from the beam path is this voxelized volume.</p>
<p>Simon<br>
</p>
<br>
<div>On 04/09/2016 22:25, Lukas Gromann wrote:<br>
</div>
<blockquote type="cite">Hi Simon,
<div><br>
</div>
<div>Thanks you for your explanations. This makes everything much clearer. </div>
<div><br>
</div>
<div>A further question regarding the flatfield, which I consider a very useful feature: Is there a way to configure, which Volumes are kept in the beampath, when the flatfield intensities are calculated? I guess currently only the source and the detector are
kept when calculating the flatfield? </div>
<div>I would like to keep different type of filters and collimators in the FOV during the Flatfield „aquisition“. </div>
<div>If there is no config parameter to control this, I guess a simple way would be a recalculation with just the phantom volume disabled? (At the price of doubling the calculation time)</div>
<div><br>
</div>
<div>Thanks, </div>
<div><br>
</div>
<div>Lukas </div>
<div><br>
</div>
<div>
<div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>------------------------------<wbr>----------------------</div>
<div>Lukas Gromann</div>
<div><br>
</div>
<div>Lehrstuhl für Biomedizinische Physik (E17)<br>
Technische Universität München<br>
Boltzmannstrasse 11<br>
85748 Garching<br>
<br>
</div>
<div><a href="mailto:Lukas.Gromann@TUM.de" target="_blank">Lukas.Gromann@TUM.de</a></div>
<div><br>
</div>
<div>Tel.: 089-289/10905</div>
<div>Mobil: 017629718306</div>
</div>
</div>
<br>
<div>
<div>Am 02.09.2016 um 12:24 schrieb Simon Rit <<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.f<wbr>r</a>>:</div>
<br>
<blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000"><br>
<div>
<div>On 02/09/2016 11:53, Lukas Gromann wrote:<br>
</div>
<blockquote type="cite">Hi Simon,
<div><br>
</div>
<div>thanks for your fast reply, this helps me already a lot. Indeed I read those parts in the wiki and had also a short look at the papers mentioned. </div>
<div><br>
</div>
<div>Especially the following questions still arise for me: </div>
<div><span style="white-space:pre-wrap"></span>- What are the „signals“ in primary, total, compton etc? Are these detection probabilities? Photon counts? Or total recorded Photon-Energies per pixel, or is this converted to some arbitrary ADU-values?</div>
</blockquote>
There is a detector response curve that will set this. This is a text file in which the first column is the incoming photon energy (in MeV) and the second column is the detected signal. It's used both in the Monte Carlo and the fixed forced detection examples,
I first describe it for Monte Carlo where you have one photon arriving on the pixel at a time. If you don't set it, it will integrate the energy of the incoming photons, which would be similar to setting it to a ramp:<br>
0 0<br>
1 1<br>
Note that the values are linearly interpolated.<br>
<br>
The other option is to do a photon counting, so to add 1 regardless of the energy:<br>
0 1<br>
1 1<br>
<br>
You can also set a much more complex (but more realistic) function, as described in
<a>
[Roberts et al, PMB, 2008]</a> which we recently used in <a href="http://dx.doi.org/10.1118/1.4961400" target="_blank">
[Vilches-Freixas et al, Med Phys, 2016]</a>. I have enclosed an example.<br>
<br>
Now, for fixed forced detection, the final value is also multiplied by the probability of having a photon with that energy in this pixel since this is what FFD computes.<br>
<br>
<blockquote type="cite">
<div><span style="white-space:pre-wrap"></span>- I guess this is related to the energy-response of the detector? Also here the example provides some basic responseDetector.txt, but the Syntax is not clear to me.</div>
<div><span style="white-space:pre-wrap"></span>- In the example Code, there is an option called „/gate/actor/ffda/energyResolv<wbr>edBinSize 0 keV“, which is not mentioned in the wiki at all. If I would set this Value to 1keV, would I create
a Photon counting detector with 120 energy bins? How would the Output look like? 120 images each for „compton“ and
<span style="white-space:pre-wrap"></span>"primary“? <br>
</div>
</blockquote>
Yes, these are recent (unreleased) dev. If you set this to a non 0 value, instead of storing 2D projection images, it stores 3D projection images where the third dimension is the energy. There is still one projection only per gantry angle. Indeed, if your max
spectrum energy, it would create 120 energy bins with a perfect energy resolved detector.<br>
<blockquote type="cite">
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I would therefore suggest to add at least the following lines to the documentation: </div>
<div>
<blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000">
<p>All contributions are summed in total which can be decomposed in primary+secondary. Secondary (same as scatter) can itself be decomposed in compton+rayleigh+fluorescence. flatfield is available to compute the measured primary signal if there is no object,
this is useful for CT to apply the beer Lambert law. attenuation is ln(flatfield/primary) to get the line integral, i.e., the input of most CT reconstruction algorithms.</p>
</div>
</blockquote>
</div>
<div><br>
</div>
</blockquote>
Yep, will do + what I just say. I suggest to continue the discussion when something is not clear and I'll summarize soon on the wiki. Keep asking!<br>
<blockquote type="cite">
<div><br>
</div>
<div>Thanks, </div>
<div><br>
</div>
<div>Lukas </div>
<div><br>
<div>
<div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>------------------------------<wbr>----------------------</div>
<div>Lukas Gromann</div>
<div><br>
</div>
<div>Lehrstuhl für Biomedizinische Physik (E17)<br>
Technische Universität München<br>
Boltzmannstrasse 11<br>
85748 Garching<br>
<br>
</div>
<div><a href="mailto:Lukas.Gromann@TUM.de" target="_blank">Lukas.Gromann@TUM.de</a></div>
<div><br>
</div>
<div>Tel.: 089-289/10905</div>
<div>Mobil: 017629718306</div>
</div>
</div>
<br>
<div>
<div>Am 02.09.2016 um 11:02 schrieb Simon Rit <<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.f<wbr>r</a>>:</div>
<br>
<blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>I assume you've read</p>
<p><a href="http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.2:Readout_parameters_for_Radiotherapy_applications:_Actors#Fixed_Forced_Detection_CT" target="_blank">http://wiki.opengatecollaborat<wbr>ion.org/index.php/Users_Guide_<wbr>V7.2:Readout_parameters_for_Ra<wbr>diotherapy_applications:_Actor<wbr>s#Fixed_Forced_Detection_CT</a>?</p>
<p>It's scarce but there are a bunch of references we suggest to understand the technique. The numbers are the expected signal in the image. All contributions are summed in total which can be decomposed in primary+secondary. Secondary (same as scatter) can
itself be decomposed in compton+rayleigh+fluorescence. flatfield is available to compute the measured primary signal if there is no object, this is useful for CT to apply the beer Lambert law. attenuation is ln(flatfield/primary) to get the line integral,
i.e., the input of most CT reconstruction algorithms.</p>
<p>An alternative is to do pure monte carlo, see monteCarloCT.mac in the same folder. I guess there are other options in Gate but I don't know all the CT options in Gate. Please let me know if you find some!</p>
<p>Hope this helps and let us know if/how we should complete the "doc",</p>
<p>Simon<br>
</p>
<br>
<div>On 02/09/2016 09:49, Lukas Gromann wrote:<br>
</div>
<blockquote type="cite">Dear all,
<div><br>
</div>
<div>I am currently learning how to use Gate for my PHD project in medical x-rax imaging.</div>
<div><br>
</div>
<div>I would like to simulate the Compton scatter fraction in a simple Thorax x-ray. I started by using the example_CT/fixedForcedDetectio<wbr>nCT, which looks like the thing I am looking for. Unfortunately I cannot find any documentation, what is actually the content
of the outputfiles created by the FixedForcedDetection actor. What does the numbers in the various images represent? What is the purpose of the flatfield file?</div>
<div>Any kind of additional documentation/information would be very welcome! </div>
<div><br>
</div>
<div>On the other hand, is there maybe a much better approach to determine Compton scatter fractions in my images than using the FFD actor? </div>
<div><br>
</div>
<div>Thanks for your help, </div>
<div><br>
</div>
<div>Lukas </div>
<div><br>
</div>
<div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>------------------------------<wbr>----------------------</div>
<div>Lukas Gromann</div>
<div><br>
</div>
<div>Lehrstuhl für Biomedizinische Physik (E17)<br>
Technische Universität München<br>
Boltzmannstrasse 11<br>
85748 Garching<br>
<br>
</div>
<div><a href="mailto:Lukas.Gromann@TUM.de" target="_blank">Lukas.Gromann@TUM.de</a></div>
<div><br>
</div>
<div>Tel.: 089-289/10905</div>
<div>Mobil: 017629718306</div>
</div>
</div>
<br>
<br>
<fieldset></fieldset> <br>
<pre>______________________________<wbr>_________________
Gate-users mailing list
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecolla<wbr>boration.org</a>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/<wbr>gate-users</a></pre>
</blockquote>
<br>
<div>On 02/09/2016 09:49, Lukas Gromann wrote:<br>
</div>
<blockquote type="cite">Dear all,
<div><br>
</div>
<div>I am currently learning how to use Gate for my PHD project in medical x-rax imaging.</div>
<div><br>
</div>
<div>I would like to simulate the Compton scatter fraction in a simple Thorax x-ray. I started by using the example_CT/fixedForcedDetectio<wbr>nCT, which looks like the thing I am looking for. Unfortunately I cannot find any documentation, what is actually the content
of the outputfiles created by the FixedForcedDetection actor. What does the numbers in the various images represent? What is the purpose of the flatfield file?</div>
<div>Any kind of additional documentation/information would be very welcome! </div>
<div><br>
</div>
<div>On the other hand, is there maybe a much better approach to determine Compton scatter fractions in my images than using the FFD actor? </div>
<div><br>
</div>
<div>Thanks for your help, </div>
<div><br>
</div>
<div>Lukas </div>
<div><br>
</div>
<div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>------------------------------<wbr>----------------------</div>
<div>Lukas Gromann</div>
<div><br>
</div>
<div>Lehrstuhl für Biomedizinische Physik (E17)<br>
Technische Universität München<br>
Boltzmannstrasse 11<br>
85748 Garching<br>
<br>
</div>
<div><a href="mailto:Lukas.Gromann@TUM.de" target="_blank">Lukas.Gromann@TUM.de</a></div>
<div><br>
</div>
<div>Tel.: 089-289/10905</div>
<div>Mobil: 017629718306</div>
</div>
</div>
<br>
<br>
<fieldset></fieldset> <br>
<pre>______________________________<wbr>_________________
Gate-users mailing list
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecolla<wbr>boration.org</a>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/<wbr>gate-users</a></pre>
</blockquote>
<br>
</div>
______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecolla<wbr>boration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/<wbr>gate-users</a></blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset> <br>
<pre>______________________________<wbr>_________________
Gate-users mailing list
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecolla<wbr>boration.org</a>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/<wbr>gate-users</a></pre>
</blockquote>
<br>
</div>
</div>
<span><responseDetector.txt></span>________<wbr>______________________________<wbr>_________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecolla<wbr>boration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/<wbr>gate-users</a></blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset> <br>
<pre>______________________________<wbr>_________________
Gate-users mailing list
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecolla<wbr>boration.org</a>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/<wbr>gate-users</a></pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div></div></div>
</div>
</blockquote></div><br></div></div>