get sinogram

Dear CASToR users and develop

How to get the sinogram from img/hdr output? or directly from the ROOT file?
I’ll be grateful if I receive your experience in this issue.
Best wishes
Hadi

Please find attached a code to convert castor histogram file into michelogram. You need to modify the scanner parameters to fit your geometry.

Regards,

Sadek

Castor-Hist-to-Michelogram_v1.0.cc (4.84 KB)

Dear Sadek,

I learned your C file about converting listmode to sinogram or sinogram to listmode. It works with sinlge layer, but it confused me when the scanner are double offset layers. It is difficult for me to config out how to set views and bins. When single layer, views can set to crystal_numbers_per_ring / 2 and bins can be crystal_numbers_per_ring-1. I tried to set a virtual crystal in Top layer(Top block has 17 crystals while Botton block has 18 crystals with 12 sectors), then views=108 and bins=215, but it looks bad. Is there method to make sinogram looks beatiful?
I’m looking forward your reply. Thanks for a lot!

Hannah