[Gate-users] Interfile & Xmedcon question

Chaitanya Kolluru kolluru.chaitanya at gmail.com
Tue Mar 11 20:50:23 CET 2014


Hi Stephen,

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

There are four places in the header file where you give the number of
images value (140 in your case). They are:
Total number of images
number of images/energy window
number of projections
number of slices

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).

Finally make sure your image file (i33) is in unsigned integer 2 byte
format. Gate can read only that.

Thanks,
Chaitanya.


On Tuesday, March 11, 2014, Stephen Yip <stephen.fyip1 at gmail.com> wrote:

> Hello,
>
> For my binary XCAT phantom, I used Xmedcon to create a header (h33) and
> image (i33) files.
>
> medcon -f xcat.bin -c inf -i
>
> When it asked number of image? I typed 140 (number of slices I have).
>
> Then for column and row, I entered 256, since my image is 256 by 256 by
> 140.
>
> However, when I tried to insert the phantom into a PET scanner, Gate
> always complains that one of the matrix dimensions is zero.
>
> I wonder if anybody knows what I did wrong.
>
> Thanks,
> Stephen
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140311/0e6acee0/attachment.html>


More information about the Gate-users mailing list