[Gate-users] Voxelized phantom and source voxel number issues
Emmanuel BRARD
emmanuel.brard at iphc.cnrs.fr
Thu Jun 16 15:30:35 CEST 2011
Dear all,
I am trying to load a voxellized phantom and a voxellized source in a Gate
simulation. The phantom part seems to work properly with the ascii reader
but I have issues with the source. I tried two ways to load it. First with
an ascii file containing the three dimensions on the first line and the
three sizes on the second line :
256 256 174
0.145 0.145 0.145
0 0 0 0 0 0 0 0 0 0 1 2 32 1 1 1 0 .
.
The remaining lines contain the voxel values as integers. When I start Gate
the voxel reader tells that it read 4371267 voxels only, yet the total
activity seems to be right.
I also tried with interfile files. But here again the total number of voxel
is wrong whereas the activity seems right again. I use a linear translator
for the time begin for both method.
I tried a hexdump on the binary file and I get the correct number of voxels
:
> hexdump -ve '1/2 "%u\t" "\n"' source.i33 | wc -l
11403264
The only way all these can be true is if there is a variable voxel size
which might implies a clustering of equal-valued voxels. But according to
the online documentation this is not yet implemented (Gate 6.0).
I cannot see where I am wrong here.
Thank you,
Emmanuel BRARD
More information about the Gate-users
mailing list