<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello Nicolas,<div class=""><br class=""></div><div class="">Yes I remember this. It is a bug I think.</div><div class="">I just set min, max: -1,4 in my<i class=""> <span class="">data/waterbottle_HU2mat.txt</span></i></div><div class=""><i class="">And then it doesn’t complain.</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">This is just a fix and hopefully this bug will be corrected soon.</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">Cheers,</i></div><div class=""><i class="">  Maxime</i></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 13 Feb 2017, at 16:38, Triltsch, Nicolas <<a href="mailto:nicolas.triltsch@tum.de" class="">nicolas.triltsch@tum.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class=""><p class="">Hey David & Maxime,</p><p class="">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 class="">"<i class="">[Physic-0] The following Geant4's physic-list is enabled
        :emlivermore</i><i class=""><br class="">
      </i><i class=""><a href="http://gatevimagevolume.cc" class="">GateVImageVolume.cc</a> (l.363): The image contains HU indices
        out of range of the HU range found in
        data/waterbottle_HU2mat.txt</i><i class=""><br class="">
      </i><i class="">min, max:0, 4.</i><i class=""><br class="">
      </i><i class="">min, max in image: -1, 3</i><i class=""><br class="">
      </i><i class="">Abort.</i><br class="">
      "</p><p class="">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 class="">
    </p><p class=""> Cheers,</p><p class="">Nico<br class="">
    </p>
    <div class="moz-cite-prefix">On 02/10/2017 04:57 PM, David Sarrut
      wrote:<br class="">
    </div>
    <blockquote cite="mid:CAKTJC4B16Ywp__dOtxb+PKpciRGbOU_Y-aE-jvXty18Jepbmnw@mail.gmail.com" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
      <div dir="ltr" class="">
        <div class="">Hello, </div>
        <div class=""><br class="">
        </div>
        <div class=""><span style="font-size:12.8px" class="">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 class="">
        </div>
        <div class=""><span style="font-size:12.8px" class=""><br class="">
          </span></div>
        <div class=""><span style="font-size:12.8px" class="">Use either: </span></div>
        <div class=""><span style="font-size:12.8px" class="">-
            ImageNestedParametrisedVolume : simple conventional
            navigator, similar to regular, (slightly faster)</span></div>
        <div class=""><span style="font-size:12.8px" class=""><br class="">
          </span></div>
        <div class=""><span style="font-size:12.8px" class="">- 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 class=""><span style="font-size:12.8px" class=""><br class="">
          </span></div>
        <div class=""><span style="font-size:12.8px" class="">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" class="">http://wiki.opengatecollaboration.org/index.php/Users_Guide_V8.0:Voxelized_Source_and_Phantom#Nested_parameterization_method</a></span></div>
        <div class=""><span style="font-size:12.8px" class=""><br class="">
          </span></div>
        <div class=""><span style="font-size:12.8px" class="">David</span></div>
        <div class=""><span style="font-size:12.8px" class=""><br class="">
          </span></div>
      </div>
      <div class="gmail_extra"><br class="">
        <div class="gmail_quote">On Fri, Feb 10, 2017 at 4:45 PM, Maxime
          Chauvin <span dir="ltr" class=""><<a moz-do-not-send="true" href="mailto:maxime.chauvin@inserm.fr" target="_blank" class="">maxime.chauvin@inserm.fr</a>></span>
          wrote:<br class="">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div style="word-wrap:break-word" class="">Hello Nicolas,
              <div class=""><br class="">
              </div>
              <div class="">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 class="">ImageRegionalizedVolume. It will further speed up the
                simulation especially if your geometry has a lot of
                common voxel</div>
              <div class="">and you will get rid of this warning.</div>
              <div class=""><br class="">
              </div>
              <div class="">Cheers,</div>
              <div class="">  Maxime </div>
              <div class=""><br class="">
                <div class="">
                  <blockquote type="cite" class="">
                    <div class="">
                      <div class="h5">
                        <div class="">On 10 Feb 2017, at 14:41, Triltsch, Nicolas
                          <<a moz-do-not-send="true" href="mailto:nicolas.triltsch@tum.de" target="_blank" class="">nicolas.triltsch@tum.de</a>>
                          wrote:</div>
                        <br class="m_-7303347453256307962Apple-interchange-newline">
                      </div>
                    </div>
                    <div class="">
                      <div class="">
                        <div class="h5">
                          <div bgcolor="#FFFFFF" text="#000000" class=""><p class="">Hello,</p><p class="">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 class="">Now I saw that during the initialization
                              phase of gate it states the following:  <br class="">
                            </p><p class=""><i class="">### WARNING ### setSkipEqualMaterials
                                at false !! The Geant4 method is not
                                safe since the release 9.5 - Need to be
                                fixed</i><br class="">
                              <br class="">
                            </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 class="">
                            <br class="">
                            In the appendix there is a screenshot of the
                            error.<br class="">
                            <br class="">
                            Cheers,<br class="">
                            Nico<br class="">
                            <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" class="">+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" class=""><error1.png></span><span id="m_-7303347453256307962cid:7204FC68-C653-44B3-A75E-E12564C99579@univ-tlse3.fr" class=""><error2.png></span>______<wbr class="">______________________________<wbr class="">___________<br class="">
                      Gate-users mailing list<br class="">
                      <a moz-do-not-send="true" href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" class="">Gate-users@lists.<wbr class="">opengatecollaboration.org</a><br class="">
                      <a moz-do-not-send="true" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank" class="">http://lists.<wbr class="">opengatecollaboration.org/<wbr class="">mailman/listinfo/gate-users</a></div>
                  </blockquote>
                </div>
                <br class="">
              </div>
            </div>
            <br class="">
            ______________________________<wbr class="">_________________<br class="">
            Gate-users mailing list<br class="">
            <a moz-do-not-send="true" href="mailto:Gate-users@lists.opengatecollaboration.org" class="">Gate-users@lists.<wbr class="">opengatecollaboration.org</a><br class="">
            <a moz-do-not-send="true" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank" class="">http://lists.<wbr class="">opengatecollaboration.org/<wbr class="">mailman/listinfo/gate-users</a><br class="">
          </blockquote>
        </div>
        <br class="">
        <br clear="all" class="">
        <div class=""><br class="">
        </div>
        -- <br class="">
        <div class="gmail_signature" data-smartmail="gmail_signature">
          <div dir="ltr" class="">
            <div class="">
              <div dir="ltr" class="">
                <div class="">
                  <div dir="ltr" class="">David Sarrut, Phd<br class="">
                    Directeur de recherche CNRS<br class="">
                    CREATIS, UMR CNRS 5220, Inserm U1206
                    <div class="">Centre de lutte contre le cancer Léon Bérard<br class="">
                      28 rue Laënnec, 69373 Lyon cedex 08<br class="">
                      Tel : 04 78 78 51 51 / 06 74 72 05 42<br class="">
                      <a moz-do-not-send="true" href="http://www.creatis.insa-lyon.fr/%7Edsarrut" target="_blank" class="">http://www.creatis.insa-lyon.fr/~dsarrut</a><br class="">
                      _________________________________</div>
                    <div class=""> "2 + 2 = 5,  for extremely large values of 2"<br class="">
                      _________________________________</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br class="">
    <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>
  </div>

<span id="cid:B42F63A7-7005-4160-B4FD-4DF27283D360@univ-tlse3.fr"><waterbottle_HU2mat.txt></span>_______________________________________________<br class="">Gate-users mailing list<br class=""><a href="mailto:Gate-users@lists.opengatecollaboration.org" class="">Gate-users@lists.opengatecollaboration.org</a><br class="">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</div></blockquote></div><br class=""></div></body></html>