markus-jehl

Results 45 comments of markus-jehl

If you don't mind, I'll change this as part of https://github.com/UCL/STIR/pull/1291 where I'm already changing various things in the scatter estimation.

original scatter: ![image](https://github.com/UCL/STIR/assets/87262701/c8bcd614-7373-4514-85de-b73633363c61) below are plots of the differences between downsampled scatter and original scatter, relative to mean(abs(original_scatter))=11.5 downsampling factor 1.066667 (from 32 to 30 detectors per module) ![image](https://github.com/UCL/STIR/assets/87262701/058be4b5-794d-4618-9d10-b097cf6101fa) downsampling...

![image](https://github.com/UCL/STIR/assets/87262701/6dc1043d-2116-4b38-b21a-7e819d452fa0) relative difference between original scatter and downsampled scatter with factor 2 (divided by mean intensity of areas with intensity > 0.1 => 0.5) ![image](https://github.com/UCL/STIR/assets/87262701/b70d0243-95af-41cf-ba1c-65abedb2116b)

Therefore it looks like choosing integer factors for the downsampling isn't required, and the intersections between the modules remain problematic (sometimes over 10% errors in the scatter estimate). However, on...

As part of this investigation, a bug was found: https://github.com/UCL/STIR/issues/1396 This should be fixed on the ProjData side, but it raises another problem with the scatter estimation code itself: for...

> I'm hoping that once this is done, we can avoid the almost repeated code for the blocks and cylindrical case, but maybe do that in stages. Do you mean...

On a simulated cylinder, the scatter estimation has much smaller errors when we use linear interpolation instead of quadratic interpolation. I strongly suspect that this is because we quite aggressively...

Does building SWIG work for you? I get some errors, e.g.: ``` In file included from /workspace/python-reconstruction-pipeline/libs/build/stir/Stir-prefix/src/Stir-build/src/swig/CMakeFiles/_stir.dir/stirPYTHON_wrap.cxx:3964: In file included from /workspace/python-reconstruction-pipeline/libs/build/stir/Stir-prefix/src/Stir/src/include/stir/ProjDataInfoBlocksOnCylindricalNoArcCorr.h:27: In file included from /workspace/python-reconstruction-pipeline/libs/build/stir/Stir-prefix/src/Stir/src/include/stir/ProjDataInfoGenericNoArcCorr.h:27: In file included...