gschramm / parallelproj

code for parallel TOF and NONTOF projections
MIT License
30 stars 9 forks source link

non-TOF sino back-projections omit projecting 0, while TOF sino back-projections don't #91

Open NicoleJurjew opened 1 month ago

NicoleJurjew commented 1 month ago

The back-projecter for non-TOF sinogram data checks for LORs with 0 counts and skips back-projecting for those: https://github.com/gschramm/parallelproj/blob/0bd27aae5b0d7a39eadabbde00046c84465eaa93/cuda/src/projector_kernels.cu#L129

This prevents overhead as LORs with 0 counts back-project to 0 activity. This could also be useful for TOF sinogram projections. There, however, it would be necessary to check if the SUM over all TOF bins is 0.

https://github.com/gschramm/parallelproj/blob/0bd27aae5b0d7a39eadabbde00046c84465eaa93/cuda/src/projector_kernels.cu#L819