Some pointers to enable this.
The ProjDataInfo code:
- this would need be deleted
|
if (num_tof_bins_to_combine != 1) |
|
error("SSRB: num_tof_bins_to_combine (%d) currently needs to be 1", num_tof_bins_to_combine); |
- This looks fine
|
if (num_tof_bins_to_combine != 1) |
|
{ |
|
if (num_tof_bins_to_combine < 1) |
|
error("SSRB: num_tof_bins_to_combine needs to be at least 1"); |
|
const int new_tof_mash_factor = in_proj_data_info_sptr->get_tof_mash_factor() * num_tof_bins_to_combine; |
|
out_proj_data_info_sptr->set_tof_mash_factor(new_tof_mash_factor); |
|
} |
The actual rebinning code:
- compute
num_tof_bins_to_combine like for views
- add
in and out_timing_pos_num in various places when constructing the sinos
- loop over
out_timing_pos_num here
- loop over
in_timing_pos_num here
- add
num_tof_bins_to_combine in the normalisation step
|
out_sino /= static_cast<float>(num_in_ax_pos * num_views_to_combine); |
Some pointers to enable this.
The
ProjDataInfocode:STIR/src/buildblock/SSRB.cxx
Lines 50 to 51 in 8ced2d7
STIR/src/buildblock/SSRB.cxx
Lines 134 to 140 in 8ced2d7
The actual rebinning code:
num_tof_bins_to_combinelike for viewsinandout_timing_pos_numin various places when constructing the sinosout_timing_pos_numherein_timing_pos_numherenum_tof_bins_to_combinein the normalisation stepSTIR/src/buildblock/SSRB.cxx
Line 277 in 8ced2d7