Skip to content

Commit

Permalink
fix SPECTUB bug with collimator slope division by 10
Browse files Browse the repository at this point in the history
  • Loading branch information
samdporter committed Sep 14, 2023
1 parent b57dfd5 commit 355bfd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/include/stir/recon_buildblock/ProjMatrixByBinSPECTUB.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class ProjMatrixByBinSPECTUB :
*/

void
set_resolution_model(const float collimator_sigma_0_in_mm, const float collimator_slope_in_mm, const bool full_3D = true);
set_resolution_model(const float collimator_sigma_0_in_mm, const float collimator_slope, const bool full_3D = true);
private:

// parameters that will be parsed
Expand Down
5 changes: 3 additions & 2 deletions src/recon_buildblock/ProjMatrixByBinSPECTUB.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,11 @@ set_attenuation_image_sptr(const std::string& value)

void
ProjMatrixByBinSPECTUB::
set_resolution_model(const float collimator_sigma_0_in_mm, const float collimator_slope_in_mm, const bool full_3D)
set_resolution_model(const float collimator_sigma_0_in_mm, const float collimator_slope, const bool full_3D)
{
// convert sigma_0 to cm. slope is dimensionless
this->collimator_sigma_0 = collimator_sigma_0_in_mm / 10;
this->collimator_slope = collimator_slope_in_mm / 10;
this->collimator_slope = collimator_slope;
if (collimator_slope == 0.F && collimator_sigma_0 == 0.F)
{
this->psf_type = "geometrical";
Expand Down

0 comments on commit 355bfd9

Please sign in to comment.