Skip to content

Conversation

@KrisThielemans
Copy link
Collaborator

@KrisThielemans KrisThielemans commented Mar 16, 2025

  • make wmh and some other arguments to functions const
  • remove some functions that are not used in STIR
  • replace boost::constants::pi with STIR's _PI
  • remove unused include files
  • replace math.h with cmath (needing some extra care, as gcc seems to miss std::cosf etc)
  • remove some commented-out code

There should be no functionality change here.

Note though that as the SPECTUB code contains structs with pointers, having a const struct isn't very definite (as whatever is being pointed to can still be changed).

@KrisThielemans KrisThielemans self-assigned this Mar 16, 2025
- make wmh and some other arguments to functions const
- remove some functions that are not used in STIR
- replace boost::constants::pi with STIR's _PI
- remove unused include files
- replace math.h with cmath etc
- removed unused headers
- add Apache 2.0 license to Pinhole code
@KrisThielemans
Copy link
Collaborator Author

@mastergari @danieldeidda There are a bit too many changes here, but if you ignore all the "eliminate dead code" stuff, it should be harmless....

@KrisThielemans
Copy link
Collaborator Author

@jchan192, feel like doing a recon with this PR and see if it changes anything? (it shouldn't!)

@KrisThielemans
Copy link
Collaborator Author

I'm going to merge this as nobody seems to have time for further testing.

@KrisThielemans KrisThielemans merged commit fd6c5c1 into UCL:master Mar 29, 2025
10 of 11 checks passed
@KrisThielemans KrisThielemans deleted the SPECTUB_clean branch March 29, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant