[Gate-users] voxelized phantom and GATE
Shahla Razaghi
shahla1988 at gmail.com
Mon Aug 5 16:10:20 CEST 2013
Dear Gate users;
I want to use Zubal voxelized phantom in my simulation. I have
downloaded Zubal phantom data and converted it to uint16 using the
following simple commands in MATLAB:
clear
clc
fid=fopen('voxel_man.dat','r');
a=fread(fid,'int8');
a=reshape(a,[128 128 243]);
b=uint16(a);
fid1=fopen('zubal.dat','w');
fwrite(fid1,b,'uint16');
fclose(fid1);
fclose(fid);
After that I converted the Zubal data format to interfile using
(X)Medcon. Every thing seems to be correct but after running my macro
with GATE6.2 the following messages appear and running procedure
aborts.
'nrecognised type name 'unsigned integer
Header read from 'zubal1.h33'
'Data file name 'zubal1.i33
Nb of planes: 243
Nb of pixels per plane: 128 128
Pixel size: 4.000e+00 4.000e+00
Slice thickness: 5.000e+00
Matrix size: 5.120e+02 5.120e+02
Data type:
Data byte order: BIGENDIAN
'!ror: Could not open header file 'zubal1.i33
.
.
.
[Core-0] Initialization of geometry
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : GeomSolids0002
issued by : G4Box::G4Box()
Dimensions too small for Solid: myphantom_solid!
hX, hY, hZ = 0, 0, 0
*** Fatal Exception *** core dump ***
-------- EEEE -------- G4Exception-END --------- EEEE -------
*** G4Exception: Aborting execution ***
Aborted (core dumped)
I do not know the reason of the problem and what to do to solve it.
I do appreciate any suggestion.
Best regards,
SHAHLA
More information about the Gate-users
mailing list