Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added ScatterEstimation::set_recompute_mask_*() #1471

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading