<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello Thibaut, <div class=""><br class=""></div><div class=""> Thanks for your assistance, I’ve been able to get the script up and reconstructing images. However I’ve noticed something rather odd when I view them in amide. </div><div class=""><br class=""></div><div class="">In this case I’m still working with a single ring of axial modules and rsectors to keep things simple, with point sources at z=0. I would expect the produced image to be centered in amide when I view it, and do seem to have the correct X and Y coordinates, however I find the sources at z = -11.63 mm. Is there some form of metadata or option to set these coordinates?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">-Peter Neilson<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 19, 2020, at 1:38 PM, tmerlin <<a href="mailto:Thibaut.Merlin@univ-brest.fr" class="">Thibaut.Merlin@univ-brest.fr</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
  
  <div class=""><p class="">Hi Peter,</p><p class="">Thank you for noticing this. <br class="">
    </p><p class="">This code is just an example on how to make a LUT following
      CASToR ring by ring detector indexation. <br class="">
    </p><p class="">In order to adapt it to GATE indexing, you must change the last
      loop which attribute the crystal index to the <i class="">cryID </i>variable<i class="">.</i>
      For your example system, I believe it should be something like<br class="">
      <i class="">int cryID = rs*nb_axial_crystal*nb_trans_crystal + l </i><br class="">
    </p><p class="">..to index all the crystals in the first rsector, then the next
      one, etc. You should check that the ordering and position of the
      first rsector/crystal are consistent between CASToR and GATE
      indexing. <br class="">
    </p><p class="">Hope this helps,<br class="">
      Thibaut<br class="">
    </p>
    <div class="moz-cite-prefix">On 18/05/2020 22:01, Peter Neilson
      wrote:<br class="">
    </div>
    <blockquote type="cite" cite="mid:32A7E3E8-CE21-4727-B3F6-DCB37A798337@txcorp.com" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; line-break: after-white-space;" class="">Hello All,
        <div class=""><br class="">
        </div>
        <div class="">  I’m working on adapting castor-PetScannerLutEx
          to match a Gate geometry that is incompatible with
          castor-GATEMacToGeo. However on my first run of
          castor-PetScannerLutEx (no changes) I get a seg fault. </div>
        <div class="">I found there was a bug at line 342, the oMatrix
          needs to be initialized with nb_resctors +1 <span style="font-family: Menlo; font-size: 11px;
            background-color: rgb(255, 255, 255);" class="">oMatrix
            *****crystal_center = new oMatrix ****[nb_rsectors<b class="">+1</b>];</span></div>
        <div class=""><span style="background-color: rgb(255, 255,
            255);" class=""><br class="">
          </span></div>
        <div class=""><span style="background-color: rgb(255, 255,
            255);" class="">After that seemed to get the program to
            compile alright, but I’m having some difficulty in getting
            sensible results out of it with my geometry. For now I’m
            using GATE with a cylindricalPET system with only a single
            ring of 28 rsectors, no layers and 16 x 16 crystal
            arrangement, nothing that castor-GateRootToCastor couldn’t
            handle. I end up with a non-sequential castor indexing, that
            I think is the cause of my problems. </span></div>
        <div class=""><span style="background-color: rgb(255, 255,
            255);" class=""><br class="">
          </span></div>
        <div class=""><span style="background-color: rgb(255, 255,
            255);" class="">Are there any further tutorials on using </span>castor-PetScannerLutEx
          ? </div>
        <div class=""><br class="">
        </div>
        <div class="">Thanks,</div>
        <div class="">-Peter Neilson</div>
      </div>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Castor-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Castor-users@lists.castor-project.org">Castor-users@lists.castor-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.castor-project.org/listinfo/castor-users">http://lists.castor-project.org/listinfo/castor-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Thibaut MERLIN -- PhD

Docteur en Imagerie Médicale au Laboratoire de Traitement de l'Information Medicale (LaTIM - INSERM UMR 1101)
Institut Brestois de recherche en Bio-Santé (IBRBS)
12 Avenue Foch, 29200 Brest, FRANCE
Tel: 06.75.12.24.90</pre>
  </div>

_______________________________________________<br class="">Castor-users mailing list<br class=""><a href="mailto:Castor-users@lists.castor-project.org" class="">Castor-users@lists.castor-project.org</a><br class="">http://lists.castor-project.org/listinfo/castor-users<br class=""></div></blockquote></div><br class=""></div></body></html>