Skip to content

Commit

Permalink
Merge pull request #1469 from KrisThielemans/NormFromAttenThrowError
Browse files Browse the repository at this point in the history
BinNormalisationFromAttenuationImage: throw error for TOF data
  • Loading branch information
KrisThielemans authored Jul 9, 2024
2 parents b153fda + a9b18e0 commit 09638a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/recon_buildblock/BinNormalisationFromAttenuationImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ Succeeded
BinNormalisationFromAttenuationImage::set_up(const shared_ptr<const ExamInfo>& exam_info_sptr,
const shared_ptr<const ProjDataInfo>& proj_data_info_ptr)
{
if (proj_data_info_ptr->get_num_tof_poss() > 1)
error("BinNormalisationFromAttenuationImage limitation: currently can only handle non_TOF data.\n"
"You currently have to follow a 2 step procedure:\n"
" 1) compute ACF factors without TOF\n"
" 2) use this as input for BinNormalisationFromProjData");
base_type::set_up(exam_info_sptr, proj_data_info_ptr);
forward_projector_ptr->set_up(proj_data_info_ptr, attenuation_image_ptr);
forward_projector_ptr->set_input(*attenuation_image_ptr);
Expand Down

0 comments on commit 09638a9

Please sign in to comment.