<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<p>Hi João,<br>
<br>
The castor-GATERootToCastor script requires the definition of a
matrix of virtual pixels for the SPECT camera. The correct option
to use is "<i>-sp_bins X,Y</i>", where X and Y define the number
of transaxial and axial pixels respectively (ignore the <i>-spect_b</i>
command as mentioned in the error message, it is related to an
older build).</p>
<p>In practice, the singles will be assigned to a specific pixel
depending on their globalPosX,Y,Z.<br>
<br>
Regarding the <i>-m</i> option, you should indeed give the main
macro. The script will look for any (uncommented) <i>/control/execute</i>
commands, and should look in every other macro file called from
the main file. I am not sure why it couldn't find yours, maybe
some issues regarding path management. A quick workaround would be
to copy the contents of the SPECT macros in one single file.<br>
<br>
I attached some example scripts for the conversion and
reconstruction of the GATE SPECT benchmark data. You can launch
them from the benchSPECT directory.<br>
<br>
Let me know if you have other questions, or get any new errors.</p>
<p><br>
</p>
<p>Best regards,</p>
<p>Thibaut<br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 08/11/2017 18:16, João H. wrote:<br>
</div>
<blockquote
cite="mid:MWHPR19MB0912B9D5CA7858072137A49ECB560@MWHPR19MB0912.namprd19.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Does anyone reconstructs your SPECT outputs in Castor?</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
If yes, could you send me an example of a succesful example?</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
I'm trying to reconstruct from my .root file, but when i run the
castor-GATERootToCastor command, it gives me this error:<br>
<span><span style="font-family:monospace"><span style="color:
rgb(0, 0, 0);">**** castor-GATERootToCastor :: Error :
Axial and transaxial bins values expected (use option
-spect_b) !
</span><br>
***** Exit function called. Abort with code 1.</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="font-family:monospace">If you split your main
macro into other macros as usual, what macro should I plug
into the -m option? when trying for the mainMacro.mac it
gives me no response, it misses the SPECTHead parameters, if
i give it the SPECT.mac file, it misses the time slices.</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="font-family:monospace"><br>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: monospace;">Thanks,</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: monospace;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: monospace;">João Castelo, IRD /
University of Rio, Brazil </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="font-family:monospace"><br>
</span></span><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
</blockquote>
<br>
<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)
Bâtiment 1
CHRU Morvan - 2, Av. Foch
29609 Brest CEDEX - FRANCE
Tel: 06.75.12.24.90</pre>
</body>
</html>