[Gate-users] GDCMImageIO

Simon Rit simon.rit at creatis.insa-lyon.fr
Mon Sep 21 08:47:17 CEST 2020


Hi,
Please stay on the mailing list. I quickly checked and the extension hdr is
actually understood by ITK so I don't know what's going on. There is
actually an issue on this topic
https://github.com/OpenGATE/Gate/issues/329#issuecomment-627354530
please check if something in the conversation can help you. But I think
this actor is not functional and needs to be debugged.
Best regards,
Simon

On Fri, Sep 18, 2020 at 6:57 PM hassan ouhadda <ouhaddahassan at gmail.com>
wrote:

> hi dear Simon Rit this is my mac:/control/execute verbose.mac
>
> # VISUALIZATION PARAMETERS #
> ############################
> /vis/enable
> /control/execute visu.mac
>
>
> /gate/geometry/setMaterialDatabase GateMaterials.db
>
> # W O R L D
> /gate/world/geometry/setXLength 100. cm
> /gate/world/geometry/setYLength 100. cm
> /gate/world/geometry/setZLength 100. cm
>
> /gate/world/daughters/name tubec
> /gate/world/daughters/insert cone
> /gate/tubec/geometry/setRmin1 10. cm
> /gate/tubec/geometry/setRmax1 12. cm
> /gate/tubec/geometry/setRmin2 15. cm
> /gate/tubec/geometry/setRmax2 17. cm
> /gate/tubec/geometry/setHeight 20. cm
> /gate/tubec/geometry/setPhiStart 90. deg
> /gate/tubec/geometry/setDeltaPhi 360. deg
> /gate/tubec/setMaterial Aluminium
> /gate/tubec/vis/forceWireframe
> /gate/tubec/vis/setColor yellow
> /gate/tubec/placement/setTranslation 0. 0. 0. cm
> /gate/tubec/placement/setRotationAxis 1 0 0
> /gate/tubec/placement/setRotationAngle 90. deg
>
> # tube a rx
> /gate/tubec/daughters/name tube
> /gate/tubec/daughters/insert box
> /gate/tube/geometry/setXLength 15. cm
> /gate/tube/geometry/setYLength 15. cm
> /gate/tube/geometry/setZLength 15. cm
> /gate/tube/placement/setTranslation 0. 0. 0. cm
> /gate/tube/setMaterial Vacuum
> /gate/tube/vis/forceWireframe
> /gate/tube/vis/setColor white
>
>
> # collimateur primaire
> /gate/world/daughters/name coll1
> /gate/world/daughters/insert box
> /gate/coll1/geometry/setXLength 20. cm
> /gate/coll1/geometry/setYLength 10. mm
> /gate/coll1/geometry/setZLength 20. cm
> /gate/coll1/placement/setTranslation 0.  10.5  0. cm
> /gate/coll1/setMaterial Lead
> /gate/coll1/vis/setColor red
> /gate/coll1/vis/forceWireframe
> # collimateur primaire
> /gate/world/daughters/name col1
> /gate/world/daughters/insert box
> /gate/col1/geometry/setXLength 15. cm
> /gate/col1/geometry/setYLength 10. mm
> /gate/col1/geometry/setZLength 20. cm
> /gate/col1/placement/setTranslation -12.  -9.  0. cm
> /gate/col1/setMaterial Lead
> /gate/col1/vis/setColor red
> #/gate/col1/vis/forceWireframe
>
> /gate/world/daughters/name col2
> /gate/world/daughters/insert box
> /gate/col2/geometry/setXLength 15. cm
> /gate/col2/geometry/setYLength 10. mm
> /gate/col2/geometry/setZLength 20. cm
> /gate/col2/placement/setTranslation 12. -9. 0. cm
> /gate/col2/setMaterial Lead
> /gate/col2/vis/setColor red
> #/gate/col2/vis/forceWireframe
>
> /gate/world/daughters/name col3
> /gate/world/daughters/insert box
> /gate/col3/geometry/setXLength 20. cm
> /gate/col3/geometry/setYLength 10. mm
> /gate/col3/geometry/setZLength 15. cm
> /gate/col3/placement/setTranslation 0. -9. -10. cm
> /gate/col3/setMaterial Lead
> /gate/col3/vis/setColor red
> #/gate/col3/vis/forceWireframe
>
> /gate/world/daughters/name col4
> /gate/world/daughters/insert box
> /gate/col4/geometry/setXLength 20. cm
> /gate/col4/geometry/setYLength 10. mm
> /gate/col4/geometry/setZLength 15. cm
> /gate/col4/placement/setTranslation 0. -9. 10. cm
> /gate/col4/setMaterial Lead
> /gate/col4/vis/setColor red
> #/gate/col4/vis/forceWireframe
>
>
> /gate/world/daughters/name FILTRE
> /gate/world/daughters/insert box
> /gate/FILTRE/geometry/setXLength 20. cm
> /gate/FILTRE/geometry/setYLength 4.8 mm
> /gate/FILTRE/geometry/setZLength 20. cm
> /gate/FILTRE/setMaterial Aluminium
> #/gate/FILTRE/vis/forceWireframe
> /gate/FILTRE/vis/setColor yellow
> /gate/FILTRE/placement/setTranslation 0. -11. 0. cm
> /gate/FILTRE/placement/setRotationAxis 1 0 0
> /gate/FILTRE/placement/setRotationAngle 0. deg
>
>
>
>
>
>
>
>
>
> /control/execute tubo.mac
>
> /control/execute phantm.mac
>
>
> /control/execute physics.mac
> /gate/physics/processes/Bremsstrahlung/activateSplitting e- 100
> /gate/physics/processes/Bremsstrahlung/addFilter angleFilter secondaries
> /gate/physics/processes/Bremsstrahlung/secondaries/angleFilter/setAngle 5
> /gate/physics/processes/Bremsstrahlung/secondaries/angleFilter/setDirection
> 0 1 0
>
> /gate/actor/addActor KillActor MyActor
> /gate/actor/MyActor/save MyOutputFile.txt
> /gate/actor/MyActor/attachTo tubec
> /gate/actor/MyActor/addFilter particleFilter
> /gate/actor/MyActor/particleFilter/addParticle e-
> /gate/actor/MyActor/particleFilter/addParticle gamma
>
> #/gate/actor/addActor KillActor MyActor2
> #/gate/actor/MyActor2/save MyOutputFile2.txt
> #/gate/actor/MyActor2/attachTo waterCylinder
> #/gate/actor/MyActor2/addFilter particleFilter
> #/gate/actor/MyActor2/particleFilter/addParticle gamma
>
> /gate/actor/addActor ThermalActor tomp
> /gate/actor/tomp/save  termo/3DMapi.hdr
> /gate/actor/tomp/attachTo tubo
> /gate/actor/tomp/stepHitType random
> /gate/actor/tomp/setPosition 0. 0. 0. cm
> /gate/actor/tomp/setVoxelSize 1. 1. 1. mm
> /gate/actor/tomp/setThermalDiffusivity  0.32 mm2/s
>
> /control/execute spectre.mac
>
> /gate/run/initialize
>
>
>
>
> /control/execute srce.mac
>
> /control/execute digitizer.mac
>
> ###############
> # ACQUISITION #
> ###############
> #/control/execute acquisition.mac
>
>
> /gate/random/setEngineName MersenneTwister
> /gate/application/setTotalNumberOfPrimaries 100000
>
> /gate/application/start
> /vis/drawVolume
> if yoy can help me please?
>
> Le ven. 18 sept. 2020 à 03:30, Simon Rit <simon.rit at creatis.insa-lyon.fr>
> a écrit :
>
>> Hi,
>> This looks like an I/O error thrown by ITK. ITK does not know the hdr
>> file type so probably you're trying to use this file format in a wrong
>> place. It would be easier if you'd shared the macro file but if it's an
>> output, then change hdr to, e.g., mha. If it's an input, Gate should handle
>> it so the problem is difficult to explain. In any case, this has nothing to
>> do with GDCMImageIO.
>> Simon
>>
>> On Fri, Sep 18, 2020 at 9:17 AM hassan ouhadda <ouhaddahassan at gmail.com>
>> wrote:
>>
>>>
>>> hi Gaters;
>>> please i have this problem in the end of my simulation Gate ( i try to
>>> use
>>> the ACTOR of termo):
>>> WARNING: G4VisManager::EndOfEvent: Automatic event keeping suspended.
>>>   The number of events exceeds the maximum, 100, that may be kept by
>>>   the vis manager.
>>> terminate called after throwing an instance of
>>> 'itk::ImageFileReaderException'
>>>   what():  /usr/local/include/ITK-5.0/itkImageFileReader.hxx:136:
>>>  Could not create IO object for reading file
>>> termo/3DMap-AbsorptionMap.hdr
>>>   Tried to create one of the following:
>>>     GDCMImageIO
>>>   You probably failed to set a file suffix, or
>>>     set the suffix to an unsupported type.
>>>
>>> Abandon (core dumped)
>>> thanks
>>> _______________________________________________
>>> Gate-users mailing list
>>> Gate-users at lists.opengatecollaboration.org
>>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200921/6a0121cb/attachment.html>


More information about the Gate-users mailing list