[Gate-users] Interfile input

Järvinen Jukka Ilari Jukka.Ilari.Jarvinen at tyks.fi
Fri Oct 26 14:39:17 CEST 2012


Further, saving the data as .txt or .pgm with imagej and reading with imageReader results in
nx ny nz: 46 -1274561220 -1273342912
dx dy dz: -4.69221e-58 -2.44937e-57 -4.69221e-58
 
and too small dimensions for Solid:
hx, hy, hz = -1.07921e-56, -1.22468e-57, -2,3461e-58
 
Imagej itself says the file has 326 slices, which are 404x401 (161.60x160.40 mm).
 
Again, if you have any hints or suggestions, they are very much welcome.
 
Best Regards,
Jukka

________________________________

Lähettäjä: gate-users-bounces at lists.opengatecollaboration.org [mailto:gate-users-bounces at lists.opengatecollaboration.org] Puolesta Järvinen Jukka Ilari
Lähetetty: 26. lokakuuta 2012 12:00
Vastaanottaja: gate-users at lists.opengatecollaboration.org
Aihe: Re: [Gate-users] Interfile input


Hi,
 
I am trying to input an interfile (named m000-Testi) and Gate returns the error below. I have created the interfile with xmedcon and have tried all pixel types (default, uint8 and int16), both endians and writing to single file. 
 
Call VoxelParameterized::InsertReader
 Range Translator
', assuming default BIGENDIAN'LITTLEENDIAN


'nrecognised type name 'signed integer
 Header read from       'm000-Testi.h33'
'Data file name         'm000-Testi.i33
 Nb of planes:           326
 Nb of pixels per plane: 401 401
 Pixel size:             0.4 0.4
 Slice thickness:        1
 Matrix size:            160.4 160.4
 Data type:              
 Data byte order: BIGENDIAN




'!ror: Could not open header file 'm000-Testi.i33
 
Currently my code looks like this:
 
/gate/world/daughters/name Polovi 
/gate/world/daughters/insert parameterizedBoxMatrix
 
/gate/Polovi/geometry/insertReader interfile 
/gate/Polovi/interfileReader/insertTranslator range 
/gate/Polovi/interfileReader/rangeTranslator/readTable Range_atn.dat 
/gate/Polovi/interfileReader/rangeTranslator/describe 1 
/gate/Polovi/interfileReader/readFile m000-Testi.h33 
 
The Range_atn.dat looks like this:

4
1 Air false 0.0 0.0 0.0 1.0
2 Muscle true 0.5 0.1 0.0 0.5
3 RibBone true 1.0 1.0 1.0 1.0
4 Cartilage true 0.2 0.1 0.1 0.8
 
If you have any suggestions as to where the error originates from or can spot it in the code, please enlighten me.
 
Best Regards,
Jukka Järvinen

________________________________

Lähettäjä: Järvinen Jukka Ilari 
Lähetetty: 23. lokakuuta 2012 9:28
Vastaanottaja: 'gate-users at lists.opengatecollaboration.org'
Aihe: Interfile input


Hi,
 
How do I use interfile-reader in Gate? I am using vGate 6.2 and would like to import a DICOM ct-data set to use as world and daughters. If I understand correctly, that is possible after conversion with the reader.
 
Thanks a lot for your answers!
 
Best regards,
Jukka Järvinen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121026/c37f1568/attachment-0001.html>


More information about the Gate-users mailing list