[Gate-users] Alternative usage of voxelized geometry
sacolas57 at aol.com
sacolas57 at aol.com
Mon May 17 10:13:37 CEST 2010
Hello all,
I would like to insert a CT image for radiotherapie as it's specified in the user's guide :
Another way to use 3D images is available in GATE. To insert an image you may use the following commands:
/gate/world/daughters/name patient
/gate/world/daughters/insert ImageNestedParametrisedVolume
/gate/patient/geometry/SetImage data/myImage.hdr
/gate/geometry/setMaterialDatabase data/myFiles.db
/gate/patient/geometry/SetHUToMaterialFile data/myFiles.txt
I have generated the files .db and .txt with using the following commands :
To generate a correspondence between HU (voxel values) and material, you may use the following commands:
/gate/HounsfieldMaterialGenerator/SetMaterialTable data/Schneider2000MaterialsTable.txt
/gate/HounsfieldMaterialGenerator/SetDensityTable data/mySchneider2000DensitiesTable.txt
/gate/HounsfieldMaterialGenerator/SetDensityTolerance 0.1 g/cm3
/gate/HounsfieldMaterialGenerator/SetOutputMaterialDatabaseFilename data/myFiles.db
/gate/HounsfieldMaterialGenerator/SetOutputHUMaterialFilename data/myFile.txt
/gate/HounsfieldMaterialGenerator/Generate
Moreover I've check up that the format of my image was well in "analyze" (I hope this is the right format).
However, when I run GATE, I've got this kind of error :
[Core-0] Initialization of geometry
src/GateHounsfieldMaterialTable.cc (l.125): Current H1=-1050 is different from previous H2=-950. Abort.
It's seems this error comes from to "myfile.txt" but I don't understand why.
Have you got any idea to solve this problem ?
Thanks.
Best regards,
Nicolas SAS
-------------- section suivante --------------
Un texte encapsulé et encodé dans un jeu de caractères inconnu a été nettoyé...
Nom : myFiles.txt
URL : <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20100517/6d460def/attachment.txt>
More information about the Gate-users
mailing list