[Gate-users] Output imageCT
Mahdjoub Hamdi
mahdjoub.hamdi at hotmail.fr
Thu Aug 22 16:03:18 CEST 2019
Hi Tom,
The CTscanner output (*.dat) are raw data files coded as float (32 bits) and here is a way you can read it using matlab:
fid = fopen('CTscannerProjection.dat','r');
p = fread(fid,'float32') ;
fclose(fid);
p1 = reshape(p,[N M]); % N,M are the sizes of your detector panel (in number of pixels)
You can read them also using ImageJ software by navigating to: File->Import->raw then select your *.dat file, a new window will appear, go to Image type and scroll down to 32-bit Real, and specify the image width and height (in pixels), check Little-endian byte order case and clique OK :)
I hope it helps :)
Mahdjoub,
Postdoc research Associate,
Washington University in St. Louis,
Phone number: +1 314 362 8315
Campus box: 8225
Stl, MO, USA
From: Gate-users [mailto:gate-users-bounces at lists.opengatecollaboration.org] On Behalf Of Russ, Tom
Sent: Thursday, August 22, 2019 8:23 AM
To: gate-users at lists.opengatecollaboration.org
Subject: [Gate-users] Output imageCT
Dear Gate-community,
at the moment, I am starting with simulations of simple cone-beam CT images.
For starters, I am running the example in the GateContrib folder, classic mode.
The problem I am having is regarding the output 'imageCT'.
I am assuming (more like hoping) that this output can provide me with direct CT projections, i.e. a matrix (with the size of the number of pixels) with the number of Singles in each pixel.
Is that correct or a misconception?
Because when I am trying to import the resulting '.dat'-file into MATLAB it is giving me a matrix with far more elements than pixels in my detector.
Thank you very much in advance for your help!
Best regards,
Tom
=============================================
Tom Russ, M.Sc.
Projektgruppe "Image Guided Interventions"
Computerunterstützte Klinische Medizin
Medizinische Fakultät Mannheim
Ruprecht-Karls-Universität Heidelberg
Theodor-Kutzer-Ufer 1 - 3
68167 Mannheim
Tel. +49 621 383-6552
E-Mail: Tom.Russ at MedMa.Uni-Heidelberg.de<mailto:Tom.Russ at MedMa.Uni-Heidelberg.de>
http://www.umm.uni-heidelberg.de/inst/cbtm/ckm/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20190822/70bcb704/attachment.html>
More information about the Gate-users
mailing list