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><br><br>On Tuesday, March 11, 2014, Stephen Yip <<a href="mailto:stephen.fyip1@gmail.com">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>