<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Sheruna,<br>
<br>
the interfile reader expects to read the data of your phantom from a
binary file where the data format should be unsigned short integer
(Uint - 2bytes)<br>
If your header file points to a binary of another data format (such as
float) then the interfile reader of GATE will not be able to read its
dimensions and eventually insert it inside GATE.<br>
<br>
A solution would be either to modify the interfile reader GATE class
and change the data format of the definition of the expected phantom
that Interfile reader is going to insert into GATE or simply write a
small script which will transform the data type of your phantom to
unsigned short integer.<br>
Make sure that the modifications are reflected to the header file of
the modified binary.<br>
<br>
I am attaching you my script version which transforms a float (4byte)
array into an unsigned short integer array.<br>
<br>
Hope it helps<br>
<br>
Best regards<br>
Nicolas<br>
<br>
_______________________________________________________<br>
Nicolas Karakatsanis<br>
PhD Candidate<br>
School of Electrical and Computer Engineer<br>
National Technical University of Athens, Greece<br>
<br>
<br>
Sheruna Naidoo wrote:
<blockquote cite="mid:39006.1195798042@bigblue.net.au" type="cite"><br>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">Hi
Gate Users<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">We
have a problem when trying to insert a parameterized phantom using the
interfile reader. <o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">The
error message reads as:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">‘!ror:
Could not open header file ‘/home/Wencke/Phantom_test/gate_phantom4.i33<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">ERROR
– G4Box()::G4Box(): UniformCylinder_S<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">Dimensions
too small ! – <span style=""> </span>0, 0, 0<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">***G4Exception
: InvalidSetup<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU"><span
style=""> </span>issued by : G4Box::G4Box()<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">Invalid
dimensions. Too small.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">***
Fatal Exception *** core dump ***<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">***G4Exception
: Aborting execution ***<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">Abort
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">Any
help would be much appreciated.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">PS:
We are simulating the MicroPET Focus 220 animal scanner. <o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">Thank
you, <o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">Sheruna
Naidoo-Variawa<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;" lang="EN-AU">The
<st1:place w:st="on"><st1:PlaceType w:st="on">University</st1:PlaceType>
of <st1:PlaceName w:st="on">Sydney</st1:PlaceName></st1:place><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
style="font-size: 12pt; font-family: Times New Roman;"><st1:country-region
w:st="on"><st1:place w:st="on"><span style="" lang="EN-AU">Australia</span></st1:place></st1:country-region><span
style="" lang="EN-AU"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-AU"><o:p><span
style="font-size: 12pt; font-family: Times New Roman;"> </span></o:p></span></p>
<br>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated"
href="mailto:Gate-users@lists.healthgrid.org">Gate-users@lists.healthgrid.org</a>
<a class="moz-txt-link-freetext"
href="http://lists.healthgrid.org/mailman/listinfo/gate-users">http://lists.healthgrid.org/mailman/listinfo/gate-users</a>
__________ NOD32 2680 (20071123) Information __________
This message was checked by NOD32 antivirus system.
<a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
</pre>
</blockquote>
<br>
</body>
</html>