<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Gate-users, <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
I'm stuggeling a bit with my header files (.h33, see below) for a voxilized phantom and belonging voxel sources that I'm trying to put into my simulation. The phantom comes in 6 sizes with specific voxilized sources for each size. The problem that I'm struggeling
with is the header file - I'm quite new to GATE so I don't really know how to structure and write it in the best way. The header files that were once written to the voxel phantom is quite old and didn't really work, so I have tried to re-write them a bit. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The thing is that I have got the header file to work for the two smallest phantom sizes (called "P1" and "P2"), but it doesn't work for the bigger phantoms - even though the structure of the header file is the same. <span style="background-color:rgb(255, 255, 255);display:inline !important">I
get "segmentation violation"</span> for the bigger phantoms. I can get the bigger phantoms to work if I put an ";" after "unsigned integer" - but I don't know why (and it's only the phantoms that work then, not their voxel sources). </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So I would be very glad if someone knows what the problem is - or if anyone has any tips on where I can read up on how to structure and write theese header files! Beacause it would be nice to learn how to write these files so I can understand them better and
modify them in the right way. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you very much for your time!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Kind regards, <br>
Martin Hjellström</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(23, 78, 134);">!INTERFILE := </span>
<div><span style="color: rgb(23, 78, 134);">!GENERAL IMAGE DATA :=</span></div>
<div><span style="color: rgb(23, 78, 134);">imagedata byte order := BIGENDIAN</span></div>
<div><span style="color: rgb(23, 78, 134);">!total number of images := 198</span></div>
<div><span style="color: rgb(23, 78, 134);">!number of images/energy window := 198</span></div>
<div><span style="color: rgb(23, 78, 134);">!matrix size [1] := 45</span></div>
<div><span style="color: rgb(23, 78, 134);">!matrix size [2] := 27</span></div>
<div><span style="color: rgb(23, 78, 134);">!number format := unsigned integer</span></div>
<div><span style="color: rgb(23, 78, 134);">!number of bytes per pixel := 2</span></div>
<div><span style="color: rgb(23, 78, 134);">scaling factor (mm/pixel) [1] := 6.1</span></div>
<div><span style="color: rgb(23, 78, 134);">scaling factor (mm/pixel) [2] := 6.1</span></div>
<div><span style="color: rgb(23, 78, 134);">!number of slices := 198</span></div>
<div><span style="color: rgb(23, 78, 134);">slice thickness (pixels) := 6.1</span></div>
<div><span style="color: rgb(23, 78, 134);">!GENERAL DATA :=</span></div>
<div><span style="color: rgb(23, 78, 134);">!data offset in bytes := 0</span></div>
<span style="color: rgb(23, 78, 134);">!name of data file := /Users/MartinH/PHANTOM/P2.i33</span><br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;"></p>
<div style="font-size:16px; font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; margin:0px">
<font size="2" style="font-family:Calibri,sans-serif,serif,EmojiFont"><span style="font-size:11pt"><font size="2"><span style="font-size:10pt"><font color="#212121"><b>Martin Hjellström</b>, </font><font color="#484848">PhD. Student</font></span></font></span></font></div>
<div style="font-size:16px; color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; margin:0px">
<font size="2" style="font-family:Calibri,sans-serif,serif,EmojiFont"><span style="font-size:11pt"><a href="http://www.radfys.gu.se/" target="_blank" rel="noopener noreferrer" id="LPlnk399103"><font size="2"><span style="font-size:10pt">www.radfys.gu.se</span></font></a></span></font></div>
<div style="font-size:16px; color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; margin:0px">
<font size="2" style="font-family:Calibri,sans-serif,serif,EmojiFont"><span style="font-size:11pt"><font size="2" color="black"><span style="font-size:10pt">Department of Radiation Physics, Institute of Clinical Sciences</span></font><font size="2" color="black"><span style="font-size:10pt"><br>
Sahlgrenska Academy at University of Gothenburg</span></font></span></font></div>
<div style="font-size:16px; color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; margin:0px">
<font size="2" style="font-family:Calibri,sans-serif,serif,EmojiFont"><span style="font-size:11pt"><font size="2" color="black"><span style="font-size:10pt">Sahlgrenska University Hospital</span></font></span></font></div>
<p style="margin-top: 0px; margin-bottom: 0px;"></p>
</div>
</div>
</div>
</div>
</body>
</html>