<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Dear
Michael,<font color="#222222"><font style="font-size: 12pt" size="3"><br>
<br>
Thanks
for your interest. Interfile format is only used as input/output
format for image (not projection data). As you have seen, input
data
for SPECT (and also for PET) is composed of 2 files: a header
file
(*.Cdh) and a binary file (*.Cdf) storing the data from a
machine or
a Monte Carlo simulation. Here is some information about this
Cdf
file. This file is not a pure histogram (a successive number of
counts by bin). The Data should (must) be arrange as described
in the
“CASToR general documentation” page 30.</font></font><br>
<br>
For
instance, in the case of a 64x64 float matrix for 64 angles (and I
consider you don't have both normalization and scatter
informations),
your Cdf file should contain 262 144 events (64x64x64) with the
following format:<br>
<br>
EVENT
0:<br>
time:
0 (uint32_t)<br>
data:
32 (float/double) it's your data for a specific bin<br>
projection
ID: 0 (uint32_t) it's the angle ID between 0 and 63 in this example<br>
binID:
0 (uint32_t) it's the bin ID between 0 and (64x64 – 1) in this
example<br>
<br>
We
don't provide a SPECT/PET data converter, but the easiest way to
create a correct Cdf file (I consider you are using C/C++) is to
create a struct like this:<br>
<br>
struct
SPECT_CASTOR_EVENT_FORMAT {<br>
uint32_t time;<br>
float data;<br>
uint32_t projectionID;<br>
uint32_t binID;<br>
};<br>
<br>
and
store each bin from your data in the CASToR event format.<br>
<br>
Kind
Regards,<br>
Didier
Benoit<br>
<title></title>
<meta name="generator" content="LibreOffice 4.3.3.2 (Linux)">
<style type="text/css">
@page { margin: 0.79in }
p { margin-bottom: 0.1in; line-height: 120% }
</style><br>
<br>
<div class="moz-cite-prefix">On 04/14/2017 05:34 PM, Michael
Ljungberg wrote:<br>
</div>
<blockquote
cite="mid:48CA2301-4A4B-4A85-ADE0-A9C33733A5BB@med.lu.se"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Calibri;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Calibri;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:Calibri;
mso-fareast-language:EN-US;}
@page WordSection1
{size:595.0pt 842.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Dear Castor developers<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I ran into this release a week ago and it
is really a nice contribution you have made. I have been
working with Monte Carlo simulations for many years developing
the program simind and often I get this question of supplying
reconstruction software since simind only produce projections.
So being able to direct to your webpage would be natural.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, I dont understand how to read data
into castor-recon. I also use Interfile and float values so
when reading in the manual at you are using interfile for both
input data and output gave me confidence for a smooth
connection. But I dont see how to actual do this. I checked
the spect benchmark file but the cdh format is different. So
my question is how I can read in for example a 64x64 float
matrices for 64 angles stored in a data file and with an
associated interfile header file.<o:p></o:p></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:EN-GB">Hälsningar
/ Best regards<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:EN-GB">Michael
Ljungberg<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:EN-GB">Lund
University<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:EN-GB">Sweden<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<br>
<pre class="moz-signature" cols="72">--
-------------------------------------------------------------------------------
Didier BENOIT, PhD,
Laboratoire de Traitement de l'Information Médicale (LaTIM - INSERM UMR 1101)
CHRU Morvan, bâtiment 1, étage 1
5 Avenue Foch
29609 Brest
FRANCE
E-mail:
<a class="moz-txt-link-abbreviated" href="mailto:didier.benoit@univ-brest.fr">didier.benoit@univ-brest.fr</a>
<a class="moz-txt-link-abbreviated" href="mailto:didier.benoit@inserm.fr">didier.benoit@inserm.fr</a>
Tél: +33 (0)2 98 01 81 96
-------------------------------------------------------------------------------</pre>
</body>
</html>