Skip to content

Commit

Permalink
Merge pull request UCL#1471 from KrisThielemans/exposeMaskMethodsForS…
Browse files Browse the repository at this point in the history
…catter

added ScatterEstimation::set_recompute_mask_*()
  • Loading branch information
KrisThielemans authored Jul 10, 2024
2 parents f60a09e + 5518abf commit 01d5648
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/include/stir/scatter/ScatterEstimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ class ScatterEstimation : public ParsingObject
/*! \c arg will not be modified */
inline void set_mask_proj_data_sptr(const shared_ptr<ProjData> arg);

void set_recompute_mask_image(bool arg);
void set_recompute_mask_projdata(bool arg);

inline void set_scatter_simulation_method_sptr(const shared_ptr<ScatterSimulation>);

inline void set_num_iterations(int);
Expand Down
2 changes: 2 additions & 0 deletions src/include/stir/scatter/ScatterEstimation.inl
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ ScatterEstimation::set_mask_image_sptr(const shared_ptr<const DiscretisedDensity
{
this->_already_setup = false;
this->mask_image_sptr = arg;
this->set_recompute_mask_image(false);
}

void
ScatterEstimation::set_mask_proj_data_sptr(const shared_ptr<ProjData> arg)
{
this->_already_setup = false;
this->mask_projdata_sptr = arg;
this->set_recompute_mask_projdata(false);
}

void
Expand Down
12 changes: 12 additions & 0 deletions src/scatter_buildblock/ScatterEstimation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,18 @@ ScatterEstimation::set_normalisation_sptr(const shared_ptr<BinNormalisation> arg
this->multiplicative_binnorm_sptr.reset();
}

void
ScatterEstimation::set_recompute_mask_image(bool arg)
{
this->recompute_mask_image = arg;
}

void
ScatterEstimation::set_recompute_mask_projdata(bool arg)
{
this->recompute_mask_projdata = arg;
}

bool
ScatterEstimation::already_setup() const
{
Expand Down

0 comments on commit 01d5648

Please sign in to comment.