[Gate-users] Error: one of the matrix dimensions is zero!

Miriam Dixon miriam.gatemc at gmail.com
Tue Apr 28 04:10:44 CEST 2020


Hi Gate Users,

I am trying to incorporate an XCAT phantom into my SPECT simulation. I have
converted the .bin XCAT file to interfile format using (X)MedCon. However,
when GATE reads the header there is a problem. The header states there are
500 images, 256 pixels by 256 pixels, but the output when the simulation is
run says the number of planes is 0, with 256 x 256 pixels per plane. I then
get the following:

 Header read from       'data/test_atn.h33'
 Data file name         'm000-out_test_atn_1.i33'
 Nb of planes:           0
 Nb of pixels per plane: 256 256
 Pixel size:             1 1
 Slice thickness:        0
 Matrix size:            256 256
 Data type:              UNSIGNED INTEGER
 Bytes per pixel:        4
 Data byte order:        LITTLEENDIAN
 Machine byte order:     LITTLEENDIAN

[G4-cerr]
[G4-cerr] Error: one of the matrix dimensions is zero!

-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : NoHeaderInformation
      issued by : GateInterfileHeader.cc:ReadData
call GateInterfileHeader::ReadHeader first!
*** Fatal Exception *** core dump ***
[G4-cerr]  **** Track information is not available at this moment
[G4-cerr]  **** Step information is not available at this moment
[G4-cerr]
-------- EEEE -------- G4Exception-END --------- EEEE -------

Is this due to the file converting incorrectly? If so, do you have a
suggestion on how to convert it correctly? And if not, do you have a
suggestion of what I can try to correct this error?

I have included more information from the header below, if that is of use.

Cheers,
Miriam

!INTERFILE :=
!imaging modality := nucmed
!originating system := (X)MedCon
!version of keys := 3.3
date of keys := 1996:09:24
conversion program := (X)MedCon
program author := Erik Nolf
program version := 0.14.1
program date := 2015:12:26
;
!GENERAL DATA :=
original institution := NucMed
!data offset in bytes := 0
!name of data file := m000-out_test_atn_1.i33
patient name := Unknown
!patient ID := Unknown
patient dob := 0000:00:00
patient sex := Unknown
!study ID := Unknown
exam type := Unknown
data compression := none
data encode := none
organ := Unknown
isotope := Unknown
dose := 0
NUD/Patient Weight [kg] := 0.00
NUD/imaging modality := NM
NUD/activity := 0
NUD/activity start time := 00:00:00
NUD/isotope half life [hours] := 0.000000
;
!GENERAL IMAGE DATA :=
!type of data := Static
!total number of images := 500
study date := 0000:00:00
study time := 00:00:00
imagedata byte order := LITTLEENDIAN
process label := Unknown
;
number of energy windows := 1
;
energy window [1] :=
energy window lower level [1] :=
energy window upper level [1] :=
flood corrected := N
decay corrected := N
;
!STATIC STUDY (General) :=
number of images/energy window := 500
;
!Static Study (each frame) :=
!image number := 1
!matrix size [1] := 256
!matrix size [2] := 256
!number format := unsigned integer
!number of bytes per pixel := 4
scaling factor (mm/pixel) [1] := +1.000000e+00
scaling factor (mm/pixel) [2] := +1.000000e+00
image duration (sec) := 0.000000e+00
image start time := 00:00:00
label := Unknown
!maximum pixel count := +0.000000e+00
!minimum pixel count := +0.000000e+00
total counts := 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200428/685e25ea/attachment-0001.html>


More information about the Gate-users mailing list