<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi Simon,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Do we need to read the raw projections or the sinogram images? Currently, we are reading the sinogram images and the air is at 0. Can you confirm which one we are supposed to load in? We have only tried loading in the sinogram images.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
If this is not the problem, any other suggestions to reconstruct the images?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Are there also other projections readers in RTK that we could use instead of ProjectionsReader?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Raw projection:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<img style="max-width:100%" class="ContentPasted1 w-512 h-512" size="352863" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:cb2c9fb4-772c-4a11-bc86-02cfffdcbd5f"><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Sinogram</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<img style="max-width:100%" class="ContentPasted0 w-2722 h-2704" size="2030291" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:060efe66-4246-4d75-9427-0c0bbf1b519f"><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Keven</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Simon Rit <simon.rit@creatis.insa-lyon.fr><br>
<b>Sent:</b> Tuesday, January 24, 2023 12:14 AM<br>
<b>To:</b> Keven Qiu <keven.qiu@ucalgary.ca><br>
<b>Cc:</b> Tadiwa Waungana <tadiwa.waungana@ucalgary.ca>; rtk-users@openrtk.org <rtk-users@openrtk.org><br>
<b>Subject:</b> Re: Cone Beam Reconstruction using Open RTK</font>
<div> </div>
</div>
<div>
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:10px">
<tbody>
<tr>
<td style="color:#FF0000">[$B"$(BEXTERNAL]</td>
</tr>
</tbody>
</table>
<br>
<br>
<div>
<div dir="ltr">
<div>Hi,</div>
<div>At first glance, no! The first step is indeed to check that you correctly read the projections, i.e. that your images are converted to line integrals (if needed). I would write to disk what you pass to FDK (with itk.imwrite) and check, e.g., that air is
 at 0.</div>
<div>Simon<br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Tue, Jan 24, 2023 at 12:58 AM Keven Qiu <<a href="mailto:keven.qiu@ucalgary.ca">keven.qiu@ucalgary.ca</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg-7973956459539223703">
<div dir="ltr">
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">Hello Simon,</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)"><br>
</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">We are trying to use OpenRTK to reconstruct some knee images from cone beam CT. We have managed to run the example script
 in Python but haven't been able to reconstruct our knee images. We have all the geometry parameters but are still struggling to get it to work. Here is our pseudocode below:</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">```</span></div>
<div><span style="font-family:monospace; font-size:12pt">Load projection images from DICOM series using </span></div>
<div><span style="font-family:monospace; font-size:12pt">rtk.ProjectionsReader[ImageType] where ImageType = itk.Image[itk.F, 3]</span><br>
</div>
<div><span style="font-family:monospace; font-size:12pt"><br>
</span></div>
<div><span style="font-family:monospace; font-size:12pt">We construct geometry object with SID, SDD, and gantry angle, and source offset X/Y, <span style="color:rgb(0,0,0); background-color:rgb(255,255,255); display:inline">as well as the number of projections</span></span></div>
<div><span style="font-family:monospace; font-size:12pt"><br>
</span></div>
<div><span style="font-family:monospace; font-size:12pt">We create a blank image</span></div>
<div><span style="font-family:monospace; font-size:12pt"><br>
</span></div>
<div><span style="font-family:monospace; font-size:12pt">We pass the <span style="color:rgb(0,0,0); background-color:rgb(255,255,255); display:inline">
projections</span>, blank image, and geometry into the FDK reconstruction method</span></div>
<div><span style="font-family:monospace; font-size:12pt"><br>
</span></div>
<div><span style="font-family:monospace; font-size:12pt">We then pass the projections, FDK return value from previous step and geometry into the field of view mask</span></div>
<div><span style="font-family:monospace; font-size:12pt"><br>
</span></div>
<div><span style="font-family:monospace; font-size:12pt">Finally, we write the reconstructed image to file in NIfTI using rtk.ImageFileWriter[ImageType]</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
```</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
We seem to be having a problem when we load any projection images instead of generating them like the FirstReconstruction example with the sphere. We get a blank image of 0's, or a grey image with a circle outline.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
At first glance, is there anything we are missing?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Look forward to your response,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Keven Q</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>