<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hey David & Maxime,</p>
<p>Thanks for your advice. I tried to use the option
ImageRegionalizedVolume (plus the distance map) instead of
ImageNestedParametrisedVolume, but it gives the following error:</p>
<p>"<i>[Physic-0] The following Geant4's physic-list is enabled
:emlivermore</i><i><br>
</i><i>GateVImageVolume.cc (l.363): The image contains HU indices
out of range of the HU range found in
data/waterbottle_HU2mat.txt</i><i><br>
</i><i>min, max:0, 4.</i><i><br>
</i><i>min, max in image: -1, 3</i><i><br>
</i><i>Abort.</i><br>
"</p>
<p>I am confused by this error as I am using the the same HU2mat.txt
and .mhd+.raw files as before. Does the new Parameterization
method require different material descriptors or what could be the
reason? My image contains of 4 materials only: Air (index 0),
water (index 1), plastic (index 2) and lead (index 3).<br>
</p>
<p> Cheers,</p>
<p>Nico<br>
</p>
<div class="moz-cite-prefix">On 02/10/2017 04:57 PM, David Sarrut
wrote:<br>
</div>
<blockquote
cite="mid:CAKTJC4B16Ywp__dOtxb+PKpciRGbOU_Y-aE-jvXty18Jepbmnw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<div>Hello, </div>
<div><br>
</div>
<div><span style="font-size:12.8px">To my knowledge,
RegularParameterization with flag skipEqualMaterials is
still buggy (it should be disabled: if someone know this
code, please propose a pull request to correct or disable
this option). </span><br>
</div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">Use either: </span></div>
<div><span style="font-size:12.8px">-
ImageNestedParametrisedVolume : simple conventional
navigator, similar to regular, (slightly faster)</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">- ImageRegionalizedVolume as
proposed by Maxime. It could be 3-4 times faster in some
cases but it depends on what you are storing during the
simulation. If it is a dose map, take care to the
statistical uncertainties. If you are only interested in
particle outgoing the volume (for imaging for example), it
is safe to use. Of course, the speed up depends on the
voxelized volume (faster if lot of similar material). </span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">Doc is here: <a
moz-do-not-send="true"
href="http://wiki.opengatecollaboration.org/index.php/Users_Guide_V8.0:Voxelized_Source_and_Phantom#Nested_parameterization_method">http://wiki.opengatecollaboration.org/index.php/Users_Guide_V8.0:Voxelized_Source_and_Phantom#Nested_parameterization_method</a></span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">David</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 10, 2017 at 4:45 PM, Maxime
Chauvin <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:maxime.chauvin@inserm.fr" target="_blank">maxime.chauvin@inserm.fr</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">Hello Nicolas,
<div><br>
</div>
<div>I had the same problem as you and couldn’t fix it. On
the other hand there is a even more efficient way using</div>
<div>ImageRegionalizedVolume. It will further speed up the
simulation especially if your geometry has a lot of
common voxel</div>
<div>and you will get rid of this warning.</div>
<div><br>
</div>
<div>Cheers,</div>
<div> Maxime </div>
<div><br>
<div>
<blockquote type="cite">
<div>
<div class="h5">
<div>On 10 Feb 2017, at 14:41, Triltsch, Nicolas
<<a moz-do-not-send="true"
href="mailto:nicolas.triltsch@tum.de"
target="_blank">nicolas.triltsch@tum.de</a>>
wrote:</div>
<br
class="m_-7303347453256307962Apple-interchange-newline">
</div>
</div>
<div>
<div>
<div class="h5">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>I tried to speed up my simulation by
choosing Regular Parameterization (with
flag skipEqualMaterials to 1) instead of
Nested Parameterization, because my Volume
got a lot of voxels with the same
material. It did indeed speed up the
simulation by a factor of 15, but some
projections of my CT simulation failed
(error: segmentation fault; crash).</p>
<p>Now I saw that during the initialization
phase of gate it states the following: <br>
</p>
<p><i>### WARNING ### setSkipEqualMaterials
at false !! The Geant4 method is not
safe since the release 9.5 - Need to be
fixed</i><br>
<br>
</p>
I am pretty sure that this warning is
somehow connected to the warning. Does
anyone know if there had been a bug fix for
Geant4 v10.2.2?<br>
<br>
In the appendix there is a screenshot of the
error.<br>
<br>
Cheers,<br>
Nico<br>
<pre class="m_-7303347453256307962moz-signature" cols="72">--
B.Sc. Nicolas Triltsch
Masterand
Technische Universität München
Physik-Department
Lehrstuhl für Biomedizinische Physik E17
James-Franck-Straße 1
85748 Garching b. München
Tel: <a moz-do-not-send="true" href="tel:+49%2089%2028912591" value="+498928912591" target="_blank">+49 89 289 12591</a>
<a moz-do-not-send="true" class="m_-7303347453256307962moz-txt-link-abbreviated" href="mailto:nicolas.triltsch@tum.de" target="_blank">nicolas.triltsch@tum.de</a>
<a moz-do-not-send="true" class="m_-7303347453256307962moz-txt-link-abbreviated" href="http://www.e17.ph.tum.de/" target="_blank">www.e17.ph.tum.de</a></pre>
</div>
</div>
</div>
<span
id="m_-7303347453256307962cid:F5678663-6237-4B35-A348-C11A51A8EB67@univ-tlse3.fr"><error1.png></span><span
id="m_-7303347453256307962cid:7204FC68-C653-44B3-A75E-E12564C99579@univ-tlse3.fr"><error2.png></span>______<wbr>______________________________<wbr>___________<br>
Gate-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Gate-users@lists.opengatecollaboration.org"
target="_blank">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users"
target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users"
rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">David Sarrut, Phd<br>
Directeur de recherche CNRS<br>
CREATIS, UMR CNRS 5220, Inserm U1206
<div>Centre de lutte contre le cancer Léon Bérard<br>
28 rue Laënnec, 69373 Lyon cedex 08<br>
Tel : 04 78 78 51 51 / 06 74 72 05 42<br>
<a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/%7Edsarrut"
target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>
_________________________________</div>
<div> "2 + 2 = 5, for extremely large values of 2"<br>
_________________________________</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
B.Sc. Nicolas Triltsch
Masterand
Technische Universität München
Physik-Department
Lehrstuhl für Biomedizinische Physik E17
James-Franck-Straße 1
85748 Garching b. München
Tel: +49 89 289 12591
<a class="moz-txt-link-abbreviated" href="mailto:nicolas.triltsch@tum.de">nicolas.triltsch@tum.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.e17.ph.tum.de">www.e17.ph.tum.de</a></pre>
</body>
</html>