<div dir="auto">Hi everybody;<div dir="auto">Thank you <span style="font-family:sans-serif;font-size:12.8px">강한규 & </span><span style="font-family:sans-serif;font-size:12.8px">Ashok Tiwari for your help</span></div><div dir="auto"><font face="sans-serif"><span style="font-size:12.8px">Have a great time </span></font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 25 févr. 2021 à 08:49, <<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Gate-users mailing list submissions to<br>
<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">gate-users@lists.opengatecollaboration.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gate-users-request@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">gate-users-request@lists.opengatecollaboration.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gate-users-owner@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">gate-users-owner@lists.opengatecollaboration.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Gate-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. output CT with extension .dat (hassan ouhadda)<br>
2. Re: output CT with extension .dat (Ashok Tiwari)<br>
3. Re: output CT with extension .dat (강한규)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 24 Feb 2021 10:15:27 -0500<br>
From: hassan ouhadda <<a href="mailto:ouhaddahassan@gmail.com" target="_blank" rel="noreferrer">ouhaddahassan@gmail.com</a>><br>
To: <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">gate-users@lists.opengatecollaboration.org</a><br>
Subject: [Gate-users] output CT with extension .dat<br>
Message-ID:<br>
<CANSj0m+tLKyqEZfb28yEuSWzNpHJE5-DwZobzs5yrW6buw=<a href="mailto:JRA@mail.gmail.com" target="_blank" rel="noreferrer">JRA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
hi Gaters;<br>
after my simulation of CT-scan finished, i get the output benchmark.dat by<br>
this output code :<br>
############<br>
# CT Image #<br>
############<br>
/gate/output/imageCT/verbose 0<br>
/gate/output/imageCT/enable<br>
/gate/output/imageCT/setFileName output/benchmarkCT<br>
<br>
/gate/random/setEngineName MersenneTwister<br>
/gate/output/imageCT/setStartSeed 567489<br>
but i can't open this file output: benchmark.dat ?<br>
any help please ?<br>
and how can i obtain a sinogram as output?<br>
thank you<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210224/687832e7/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210224/687832e7/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 25 Feb 2021 01:58:12 +0000 (UTC)<br>
From: Ashok Tiwari <<a href="mailto:tiwarias@yahoo.com" target="_blank" rel="noreferrer">tiwarias@yahoo.com</a>><br>
To: "<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">gate-users@lists.opengatecollaboration.org</a>"<br>
<<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">gate-users@lists.opengatecollaboration.org</a>>, hassan ouhadda<br>
<<a href="mailto:ouhaddahassan@gmail.com" target="_blank" rel="noreferrer">ouhaddahassan@gmail.com</a>><br>
Subject: Re: [Gate-users] output CT with extension .dat<br>
Message-ID: <<a href="mailto:475321167.1189540.1614218292897@mail.yahoo.com" target="_blank" rel="noreferrer">475321167.1189540.1614218292897@mail.yahoo.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Hassan, <br>
I would use MATLAB to load and read the .dat files. I have never done the CT simulation in GATE, so not sure what variables were written in your file, but you can easily read it in MATLAB and make the necessary plots, including the sinograms.<br>
Regards,Ashok On Wednesday, 24 February 2021, 09:15:44 am GMT-6, hassan ouhadda <<a href="mailto:ouhaddahassan@gmail.com" target="_blank" rel="noreferrer">ouhaddahassan@gmail.com</a>> wrote: <br>
<br>
hi Gaters;after my simulation of CT-scan finished, i get the output benchmark.dat by this output code : <br>
############<br>
# CT Image #<br>
############<br>
/gate/output/imageCT/verbose 0<br>
/gate/output/imageCT/enable<br>
/gate/output/imageCT/setFileName output/benchmarkCT<br>
<br>
/gate/random/setEngineName MersenneTwister<br>
/gate/output/imageCT/setStartSeed 567489but i can't open this file output: benchmark.dat ?any help please ?and how can i obtain a sinogram as output? thank you <br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a> <br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210225/158bad45/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210225/158bad45/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 25 Feb 2021 13:10:08 +0900<br>
From: 강한규 <<a href="mailto:lovehangulp@naver.com" target="_blank" rel="noreferrer">lovehangulp@naver.com</a>><br>
To: hassan ouhadda <<a href="mailto:ouhaddahassan@gmail.com" target="_blank" rel="noreferrer">ouhaddahassan@gmail.com</a>>,<br>
<<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">gate-users@lists.opengatecollaboration.org</a>><br>
Subject: Re: [Gate-users] output CT with extension .dat<br>
Message-ID: <<a href="mailto:4e6e1c95a870db2520b2a1bdc4eebd3@cweb013.nm.nfra.io" target="_blank" rel="noreferrer">4e6e1c95a870db2520b2a1bdc4eebd3@cweb013.nm.nfra.io</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear Hassan,<br>
<br>
The CT projection output file is binary and data type is float32.<br>
<br>
Thus, you can read the CT projection output file by using the following command in MATLAB.<br>
-----------------------------------------------------------------------------<br>
fname = 'benchmarkCT_001.dat'<br>
NumOfPix_Y = 100;<br>
NumOfPix_X = 100;<br>
<br>
A = fread(fid,[NumOfPix_X NumOfPix_Y],'float32');<br>
-----------------------------------------------------------------------------<br>
Here the matrix size is 100 x 100. But you can use the appropriate matrix size for your GATE simulation.<br>
The 2D matrix (i.e. projection image) is assigned on the variable "A".<br>
<br>
In order to obtain the sinogram, the projection images for each angle should be merged together as follow.<br>
<br>
<br>
Hopefully, my answer would be helpful for your CT simulation.<br>
<br>
Best regards,<br>
<br>
Han Gyu Kang<br>
<br>
--------Han Gyu Kang, Ph.D, Researcher<br>
<br>
National Institute of Radiological Sciences (NIRS)<br>
National Institutes for Quantum and Radiological Science and Technology (QST)<br>
4-9-1 Anagawa, Inage-ku, Chiba 263-8555, JAPAN<br>
<br>
-----Original Message-----<br>
From: "hassan ouhadda"<<a href="mailto:ouhaddahassan@gmail.com" target="_blank" rel="noreferrer">ouhaddahassan@gmail.com</a>><br>
To: <<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">gate-users@lists.opengatecollaboration.org</a>>;<br>
Cc:<br>
Sent: 2021-02-25 (목) 00:15:27 (GMT+09:00)<br>
Subject: [Gate-users] output CT with extension .dat<br>
<br>
hi Gaters;<br>
after my simulation of CT-scan finished, i get the output benchmark.dat by this output code : <br>
############<br>
# CT Image #<br>
############<br>
/gate/output/imageCT/verbose 0<br>
/gate/output/imageCT/enable<br>
/gate/output/imageCT/setFileName output/benchmarkCT<br>
<br>
/gate/random/setEngineName MersenneTwister<br>
/gate/output/imageCT/setStartSeed 567489<br>
but i can't open this file output: benchmark.dat ?<br>
any help please ?<br>
and how can i obtain a sinogram as output?<br>
thank you <br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210225/e3b6674e/attachment.html" rel="noreferrer noreferrer" target="_blank">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210225/e3b6674e/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" rel="noreferrer">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
<br>
------------------------------<br>
<br>
End of Gate-users Digest, Vol 177, Issue 38<br>
*******************************************<br>
</blockquote></div>