[Gate-users] voxelized phantom
nouria bendjaballah
nbendj at yahoo.fr
Fri Dec 18 00:31:21 CET 2009
Dear users' gate,
I have some difficulties to run my macro with a voxelized phantom. However, I've checked that the pixel is 16 bits unsingned integer (2 bytes per pixel) in my header file and I've also verified my data file : its size is 127926272 Bytes which corresponds to (512x512x244x2) and its min and max values are respectively 0 and 65535 (I read the data easily with Matlab).
But when I run my macro I get the following message:
'nrecognised type name 'unsigned integer
Header read from 'se2_1.h33'
'Data file name 'se2_1.i33
Nb of planes: 244
Nb of pixels per plane: 512 512
Pixel size: 3.906e-01 3.906e-01
Slice thickness: 3.200e+00
Matrix size: 2.000e+02 2.000e+02
Data type:
'!ror: Could not open header file 'se2_1.i33
ERROR - G4Box()::G4Box(): randohead_S
Dimensions too small ! - 0, 0, 0
*** G4Exception : InvalidSetup
issued by : G4Box::G4Box()
Invalid dimensions. Too small.
*** Fatal Exception *** core dump ***
*** G4Exception: Aborting execution ***
Aborted
To construct my interfile, I've grouped my 244 files ( because each slice is in one DICOM file and the pixel is encoded with 16 bits signed) in one file which its extension becomes .raw and the pixel is now 16 bit unsigned. Then I convert the file .raw to interfile by xmedcon.
I couldn't see why it couldn't open the data file ? and why it wrote
first " 'nrecognised type name 'unsigned integer" while my macro runs
very well with the interfile gived in the example gate_v5.0.0 (hof3.h33
and hof3.i33).
Could anyone help me to resolve this problem?
Thanks a lot
Nouria
More information about the Gate-users
mailing list