[Gate-users] output CT with extension .dat
강한규
lovehangulp at naver.com
Thu Feb 25 05:10:08 CET 2021
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-0001.html>
More information about the Gate-users
mailing list