<div dir="ltr">Hi Chaitanya, <div><br></div><div>I did what you suggested. But I am getting the following error (where m000-atn_1.i33 is my file name in <span style="font-family:arial,sans-serif;font-size:13px">unsigned integer 2 byte format</span>). Do you know what went wrong? Thanks! </div>
<div><br></div><div><div>'!ror: Could not open header file 'm000-atn_1.i33</div><div><br></div><div>-------- EEEE ------- G4Exception-START -------- EEEE -------</div><div>*** G4Exception : GeomSolids0002</div><div>
issued by : G4Box::G4Box()</div><div>Dimensions too small for Solid: phantom_solid!</div><div> hX, hY, hZ = 0, 0, 0</div><div>*** Fatal Exception *** core dump ***</div><div>-------- EEEE -------- G4Exception-END --------- EEEE -------</div>
<div><br></div></div><div><br></div><div>Here is my header file:</div><div><br></div><div><div>!INTERFILE :=</div><div>!imaging modality := nucmed</div><div>!originating system := greetings</div><div>!version of keys := 3.3</div>
<div>date of keys := 1996:09:24</div><div>conversion program := (X)MedCon</div><div>program author := Erik Nolf</div><div>program version := 0.7.4</div><div>program date := 2002:02:18</div><div>;</div><div>!GENERAL DATA :=</div>
<div>!data offset in bytes := 0</div><div>!name of data file := m000-atn_1.i33</div><div>patient name := hf</div><div>!patient ID := 271097</div><div>patient dob := 0000:00:00</div><div>patient sex := Unknown</div><div>!study ID := brain</div>
<div>exam type := pet study</div><div>data compression := none</div><div>data encode := none</div><div>;</div><div>!GENERAL IMAGE DATA :=</div><div>!type of data := Tomographic</div><div>!total number of images := 120</div>
<div>study date := 1997:11:28</div><div>study time := 00:00:00</div><div>imagedata byte order := LITTLEENDIAN</div><div>;</div><div>number of energy windows := 1</div><div>;</div><div>energy window [1] :=</div><div>energy window lower level [1] :=</div>
<div>energy window upper level [1] :=</div><div>flood corrected := N</div><div>decay corrected := N</div><div>;</div><div>!SPECT STUDY (general) :=</div><div>number of detector heads := 1</div><div>;</div><div>!number of images/energy window := 120</div>
<div>!process status := Reconstructed</div><div>!matrix size [1] := 256</div><div>!matrix size [2] := 256</div><div>!number format := unsigned integer</div><div>!number of bytes per pixel := 2</div><div>scaling factor (mm/pixel) [1] := +1.000000e+00</div>
<div>scaling factor (mm/pixel) [2] := +1.000000e+00</div><div>!number of projections := 120</div><div>!extent of rotation := </div><div>!time per projection (sec) := 0</div><div>study duration (sec) := 0</div><div>!maximum pixel count := +1.704600e+04</div>
<div>patient orientation := head_in</div><div>patient rotation := supine</div><div>;</div><div>!SPECT STUDY (reconstructed data) :=</div><div>method of reconstruction := Unknown</div><div>!number of slices := 120</div><div>
number of reference frame := 0</div><div>slice orientation := Transverse</div><div>slice thickness (pixels) := +2.00000e+00</div><div>centre-centre slice separation (pixels) := +2.00000e+00</div><div>filter name := Unknown</div>
<div>filter parameters := Cutoff</div><div>method of attenuation correction := measured</div><div>scatter corrected := N</div><div>oblique reconstruction := N</div><div>!END OF INTERFILE :=</div><div> </div></div><div><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 11, 2014 at 8:50 PM, Chaitanya Kolluru <span dir="ltr"><<a href="mailto:kolluru.chaitanya@gmail.com" target="_blank">kolluru.chaitanya@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Stephen,<div><br></div><div>You could first compare your header file with the example header file in Gate (it's in examples/example_Phantom_Source/Voxelized_phantom_source folder). It's called brain_phantom.h33</div>
<div><br></div><div>There are four places in the header file where you give the number of images value (140 in your case). They are:</div><div>Total number of images </div><div>number of images/energy window</div>number of projections<div>
number of slices</div><div><br></div><div>If it still doesn't work, try using this example header file itself. Make changes for a few fields like name of data file, scaling factor in x and y, matrix size, slice thickness (this is actually in mm, not pixels as mentioned).</div>
<div><br></div><div><div>Finally make sure your image file (i33) is in unsigned integer 2 byte format. Gate can read only that.</div><div><br></div><div>Thanks,</div><div>Chaitanya.</div><div><div class="h5"><div><br><br>
On Tuesday, March 11, 2014, Stephen Yip <<a href="mailto:stephen.fyip1@gmail.com" target="_blank">stephen.fyip1@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, <div><br></div><div>For my binary XCAT phantom, I used Xmedcon to create a header (h33) and image (i33) files. </div>
<div><br></div><div>medcon -f xcat.bin -c inf -i</div><div><br></div><div>When it asked number of image? I typed 140 (number of slices I have). </div>
<div><br></div><div>Then for column and row, I entered 256, since my image is 256 by 256 by 140.</div><div><br></div><div>However, when I tried to insert the phantom into a PET scanner, Gate always complains that one of the matrix dimensions is zero. </div>
<div><br></div><div>I wonder if anybody knows what I did wrong. </div><div><br></div><div>Thanks,</div><div>Stephen </div></div>
</blockquote></div></div></div></div>
</blockquote></div><br></div>