[Gate-users] Gate-users Digest, Vol 177, Issue 38

hassan ouhadda ouhaddahassan at gmail.com
Sat Feb 27 00:56:38 CET 2021


Hi everybody;
Thank you 강한규 & Ashok Tiwari for your help
Have a great time

Le jeu. 25 févr. 2021 à 08:49, <
gate-users-request at lists.opengatecollaboration.org> a écrit :

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


More information about the Gate-users mailing list