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
that seems incorrect, as the interpolated_direct_scatter_proj_data_info_sptr is reduced in size after creating interpolated_direct_scatter. This happened at 1b128f2 part of #1006. @danieldeidda we had a conversation in that PR about it, but in the end left it as-is.
In fact, I think we should reduce the segment range to 0,0 also for blocks. Currently, we are calling interpolate_projdata (whcih handles segment 0 only), and inverse_SSRB in all cases. Therefore, allocating interpolated_direct_scatter with only the 0 segment is clearer and will save memory.
(TBH, it is not clear to me why @NicoleJurjew 's modification of putting a TOF-loop in interpolate_projdata caused a crash if we don't fix this issue, as it first sight it should just create a "too large" interpolated_direct_scatter, but still work I guess. In any case, the current code is inefficient).
As interpolate_projdata only handles segment 0 at present, we only need
to create an appropriately sized direct_scatter projdata.
Also minor clean-up of this function (localise variable, remove unused
variable, extra comments)
FixesUCL#1224
Current code reads
STIR/src/scatter_buildblock/upsample_and_fit_scatter_estimate.cxx
Lines 62 to 73 in 11b7c9b
that seems incorrect, as the
interpolated_direct_scatter_proj_data_info_sptr
is reduced in size after creatinginterpolated_direct_scatter
. This happened at1b128f2 part of #1006. @danieldeidda we had a conversation in that PR about it, but in the end left it as-is.
Original code was
STIR/src/scatter_buildblock/upsample_and_fit_scatter_estimate.cxx
Lines 55 to 61 in aaa0f8e
Found while debugging the TOF branch with @NicoleJurjew
The text was updated successfully, but these errors were encountered: