[Gate-users] Σχετ: Metaimage (.mhd/.raw) as voxilized source
Konstantinos P. Chatzipapas, MSc
konhat88 at yahoo.gr
Thu Jul 27 09:52:47 CEST 2017
Hello,
You have one error and I have one guess for your problem.
The error that you have made is that GATE does not accept the value: 1.781E-08. It can only accept values in this format: 0.000001 and probably not smaller.Moreover in the new guide that arb command is not proposed. In contrast, it has this type of commands:
http://wiki.opengatecollaboration.org/index.php/Users_Guide_V8.0:Source#Defining_the_type_of_source ###################### Mode 1: Discrete Spectrum ###################
/gate/source/addsource spectrumLine gps
/gate/source/spectrumLine/gps/particle gamma
/gate/source/spectrumLine/gps/energytype UserSpectrum
/gate/source/spectrumLine/gps/setSpectrumFile ../data/DiscreteSpectrum.txt
/gate/source/spectrumLine/setIntensity 1
#################### Mode 1: Discrete Spectrum ####################etc.
About the guess, I would like to ask you, where in your code is the command:/gate/run/initialize
Kind regards,Konstantinos ----------------------------------------------------- Konstantinos Chatzipapas
Medical Physicist, MSc
University of Patras
web page: Physics Magazine
Στις 10:28 π.μ. Πέμπτη, 27 Ιουλίου 2017, ο/η Niels van der Werf <nrvdwerf at gmail.com> έγραψε:
Hello all,
A couple of days ago I asked a question about voxilized phantoms. I am now one step further in my search. The voxilized phantom is accepted by GATE as an input. However, I cannot get it working as a voxilized source. On the wiki page an example is given for an interfile, but not for a meta image.
My code is as follows (the main change in comparison with the wiki page is in the image declaration after /gate/source/positron/reader/insert):
/gate/source/addSource positron voxel
#/gate/source/positron/reader/insert interfile
/gate/source/positron/reader/insert image
/gate/source/positron/imageReader/translator/insert range
/gate/source/positron/imageReader/rangeTranslator/readTable data/range_source.dat
/gate/source/positron/imageReader/rangeTranslator/describe 1
# THE FOLLOWING LINE ALLOWS YOU TO INSERT THE IMAGE DATA USING THE APPROPRIATE EXTENSION FILE
/gate/source/positron/imageReader/readFile data/mouse_200microns_134x501x127.mhd
/gate/source/positron/imageReader/verbose 1
/gate/source/positron/setPosition -13.4 -50.1 -12.7 mm
/gate/source/positron/gps/particle e+
/gate/source/positron/gps/angtype iso
/gate/source/positron/gps/energytype Arb
#/gate/source/positron/setIntensity 9.673E-01
/gate/source/positron/gps/histname arb
# Warning : probability density (or point wise) and not bin values
/gate/source/positron/gps/histpoint 0.0001 1.781E-08
/gate/source/positron/gps/histpoint 0.00011 4.220E-08
Etc etc etc.
When I run this code, I get no errors, but also no sources. Can anyone see what I’m doing incorrectly?
Thanks for your help in advance!
Best,
Niels van der Werf
_______________________________________________
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/20170727/527b0845/attachment.html>
More information about the Gate-users
mailing list