[Gate-users] Output imageCT
Mahdjoub Hamdi
mahdjoub.hamdi at hotmail.fr
Thu Aug 22 16:15:45 CEST 2019
Great! Have a great day.
Mahdjoub
From: Russ, Tom [mailto:Tom.Russ at medma.uni-heidelberg.de]
Sent: Thursday, August 22, 2019 9:12 AM
To: Mahdjoub Hamdi <mahdjoub.hamdi at hotmail.fr>
Subject: AW: Output imageCT
Hi Mahdjoub,
thank you so much for your fast reply.
With your help I could read in the data!
Thank you so much, I was missing the 'float32', instead, I just typed 'float'.
I wish you a beautiful Thursday!
Tom
=============================================
Tom Russ, M.Sc.
Project Group 'Image Guided Interventions'
Computer Assisted Clinical Medicine
Medical Faculty 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/
Von: Mahdjoub Hamdi <mahdjoub.hamdi at hotmail.fr<mailto:mahdjoub.hamdi at hotmail.fr>>
Gesendet: Donnerstag, 22. August 2019 16:03
An: Russ, Tom <Tom.Russ at medma.uni-heidelberg.de<mailto:Tom.Russ at medma.uni-heidelberg.de>>; gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>
Betreff: RE: Output imageCT
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<mailto: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/1827b43c/attachment-0001.html>
More information about the Gate-users
mailing list