You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting the intercept to zero (which is irrealistic, but can be useful), @varzakis and I see segfaults when the detector is "inside" the image (e.g. for small detector radius). The calc_psf_bin code doesn't seem to handle the case of a very narrow (or zero width) PSF. Relevant code:
When setting the intercept to zero (which is irrealistic, but can be useful), @varzakis and I see segfaults when the detector is "inside" the image (e.g. for small detector radius). The
calc_psf_bin
code doesn't seem to handle the case of a very narrow (or zero width) PSF. Relevant code:STIR/src/recon_buildblock/SPECTUB_Weight3d.cxx
Lines 681 to 687 in b754fa7
(
di
could be very large/infinite)STIR/src/recon_buildblock/SPECTUB_Weight3d.cxx
Lines 805 to 810 in b754fa7
(
i1
would be undefined but was in our case a very negative number,Ncb
should then be 0, but isn't necessarily)STIR/src/recon_buildblock/SPECTUB_Weight3d.cxx
Line 817 in b754fa7
crashes as
i1
is out-of-rangeI think this needs 2 modifications:
psref
is very small, just setassert
thati1>=0
@varzakis @danieldeidda ok?
The text was updated successfully, but these errors were encountered: