# forward projection

**URL:** <https://castor-project.discourse.group/t/forward-projection/216>\
**Category:** General Discussions\
**Created:** [May 2, 2021, 8:59am UTC](https://castor-project.discourse.group/t/forward-projection/216 "2021-05-02T08:59:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hadi\_Rezaei](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@Hadi\_Rezaei](https://castor-project.discourse.group/u/Hadi_Rezaei)\
**Post date:** [May 2, 2021, 8:59am UTC](https://castor-project.discourse.group/t/forward-projection/216/1 "2021-05-02T08:59:54Z")

</div>

Dear CASTOR users and developers  
I need to forward project an image and I reed a previous email in the castor mailing list that there is a piece of code for this process. Does anyone work with this code and is it possible to receive this code?  
any help would be appreciated.  
Best  
Hadi

---

<div class="post-metadata">

**Author:** ![tmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/tmerlin/32/216_2.png) [@tmerlin](https://castor-project.discourse.group/u/tmerlin)\
**Post date:** [May 3, 2021, 10:20am UTC](https://castor-project.discourse.group/t/forward-projection/216/2 "2021-05-03T10:20:32Z")

</div>

Hi Hadi,

Sure, I’ll send it to you in a separate email.

Best,  
Thibaut

---

<div class="post-metadata">

**Author:** ![syedmo](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@syedmo](https://castor-project.discourse.group/u/syedmo)\
**Post date:** [December 11, 2023, 6:08pm UTC](https://castor-project.discourse.group/t/forward-projection/216/3 "2023-12-11T18:08:36Z")

</div>

Hi Thibaut,

Would it be possible for you to share the same code with me?  
I am working on forward projecting an image as well and would really appreciate it if you could share the code with me.

I have also requested access to the GitLab repo for “CASToR collaboration”. If you can grant me access to the repo I would highly appreciate it.

Thanks,  
Mohammad Syed

---

<div class="post-metadata">

**Author:** ![syedmo](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@syedmo](https://castor-project.discourse.group/u/syedmo)\
**Post date:** [December 19, 2023, 2:39pm UTC](https://castor-project.discourse.group/t/forward-projection/216/5 "2023-12-19T14:39:09Z")

</div>

Hi Thibaut,

Just wanted to follow up on my last post from last week.  
I would really appreciate it if you could share the code with me and provide me access to the CASToR GitLab repo. Looking forward to your response.

Thanks,  
Mohammad Syed

---

<div class="post-metadata">

**Author:** ![tmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/tmerlin/32/216_2.png) [@tmerlin](https://castor-project.discourse.group/u/tmerlin)\
**Post date:** [December 20, 2023, 8:35pm UTC](https://castor-project.discourse.group/t/forward-projection/216/6 "2023-12-20T20:35:56Z")

</div>

Hi Mohammad,  
Sorry for the delay, I granted you access.  
Regarding the forward projection tool, the branch _castor-proj-asim_ contains a way more improved version in comparison with the original code. It is still work-in-progress but most of the features are already available. You can have a look in its documentation or the embedded help (castor-proj -h) for more information.

Best,  
Thibaut

---

<div class="post-metadata">

**Author:** ![syedmo](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@syedmo](https://castor-project.discourse.group/u/syedmo)\
**Post date:** [December 21, 2023, 6:18pm UTC](https://castor-project.discourse.group/t/forward-projection/216/7 "2023-12-21T18:18:56Z")

</div>

Thank you for your help.  
I really appreciate it.

Thanks,  
Mohammad Syed

---

<div class="post-metadata">

**Author:** ![syedmo](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@syedmo](https://castor-project.discourse.group/u/syedmo)\
**Post date:** [February 8, 2024, 3:34pm UTC](https://castor-project.discourse.group/t/forward-projection/216/8 "2024-02-08T15:34:21Z")

</div>

Hi,

I tried the CASToR forward projection and I am running into a few issues. I am listing the process I used below please let me know if you find any issues here.  
I have a LM file from a Siemens mCT for a cardiac scan scanner that I converted into CASToR format using the data converter. Reconstruction was done using MLEM with 3 iterations and 21 subsets. I ignored the scatter, normalization, attenuation, and randoms correction during the reconstruction.  
This was followed by forward projection of the reconstructed image using the “castor-proj” from the “castor-proj-asim” branch. I used the following parameters for the forward projection  
-PET\_maxAxialDiffmm 196  
-PET\_isotope Rb-82  
-sc PET\_SIEMENS\_BIOGRAPH\_MCT  
-img list-mode\_OSEM\_it3.hdr

I think the “maxAxialDiffmm” is the max ring difference which for the mCT is 49x4mm please correct me if I am wrong here. I did not include TOF information for the forward projection. I performed a reconstruction for the forward projected image as well.

Comparing the two reconstructed images (1. from castor converter, 2. from forward projected data) I noticed there is alot of difference around the edges of the images in the intensity. For example the max intensity for the castor converted file is 6978778.5 while for the forward projected image max is 29940064.0. However if I only focus on the Left ventricle then the max is 2073318.5 for the castor converted image and its 2145377.5 for the forward projected image.

The images themselves look OK but the intensity is different. Please let me know if you have any insight into why this could be or if this is expected.

Thanks,  
Mohammad Syed

---

<div class="post-metadata">

**Author:** ![claude.comtat](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@claude.comtat](https://castor-project.discourse.group/u/claude.comtat)\
**Post date:** [February 9, 2024, 2:39pm UTC](https://castor-project.discourse.group/t/forward-projection/216/9 "2024-02-09T14:39:48Z")

</div>

Hi Mohammad,

Apparently, you are the very first to post a discussion about the “castor-proj-asim” branch, a work in progress branch not yet released.

First, I would not expect exactly the same images, even if you do not add Poisson noise. Then, it is difficult to perform a comparison based on the maximum intensity value. It would be easier if you can share both images as well as the full commands used for the reconstructions and the simulation.

Your PET\_maxAxialDiffmm looks correct.

Best,

**Claude COMTAT**  
BioMaps  
Service Hospitalier Frédéric Joliot  
91401 Orsay, France  
[www.biomaps.universite-paris-saclay.fr](http://www.biomaps.universite-paris-saclay.fr/)

---

<div class="post-metadata">

**Author:** ![fumio](https://avatars.discourse-cdn.com/v4/letter/f/eb8c5e/32.png) [@fumio](https://castor-project.discourse.group/u/fumio)\
**Post date:** [September 5, 2025, 7:43pm UTC](https://castor-project.discourse.group/t/forward-projection/216/10 "2025-09-05T19:43:12Z")

</div>

Hi Thibaut,

I want to use the projector to generate sinograms. Could you please grant me access to the castor-proj-asim branch?  
Looking forward to your response.

Best,  
Fumio Hashimoto

---

<div class="post-metadata">

**Author:** ![tmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/tmerlin/32/216_2.png) [@tmerlin](https://castor-project.discourse.group/u/tmerlin)\
**Post date:** [September 8, 2025, 6:42pm UTC](https://castor-project.discourse.group/t/forward-projection/216/11 "2025-09-08T18:42:16Z")

</div>

Hi Fumio,

You should have received an invitation by now, let me know if it is not the case.

Best,  
Thibaut

---

<div class="post-metadata">

**Author:** ![fumio](https://avatars.discourse-cdn.com/v4/letter/f/eb8c5e/32.png) [@fumio](https://castor-project.discourse.group/u/fumio)\
**Post date:** [September 8, 2025, 6:48pm UTC](https://castor-project.discourse.group/t/forward-projection/216/12 "2025-09-08T18:48:23Z")

</div>

Thanks a lot, I received it.

Best,  
Fumio Hashimoto
