changing SPECTUB global variables to class members#1169
changing SPECTUB global variables to class members#1169KrisThielemans merged 5 commits intoUCL:masterfrom
Conversation
KrisThielemans
left a comment
There was a problem hiding this comment.
remove comment in
remove extern declarations at
STIR/src/include/stir/recon_buildblock/SPECTUB_Weight3d.h
Lines 38 to 40 in 94efb22
Will need to disable the copy-constructor which is something like
// disable copy-constructor as currently unsafe to copy due to bare pointers
ProjMatrixSPECTUB(const &ProjMatrixSPECTUB) = delete;Ideally (in next step) make Rrad and std::vector such that we don't need to deallocate etc. Can then be passed to SPECTUB functions as &Rrad[0], which is of course a bit ugly... So we can leave that for later.
Where should this go I am guessing in the ProjMatrixByBinSPECTUB.h? |
|
notice a syntax error. that'll likely have to be ProjMatrixSPECTUB(const ProjMatrixSPECTUB&) = delete; |
removing unnecessary namespace;
|
let's try to make |
|
Linking errors so some functions are still expecting the global varaibles |
use const * Rrad where possible.
There was a problem hiding this comment.
Great! It is working fine.
Can you clean-up by removing comments, and adding something to release_5.2.htm? (along the lines of "removed global variables in the SPECTUB code, such that we can now have multiple SPECTUB projectors (PR #1169)"
|
@samdporter want to try this out? it should work now. |
|
@mastergari we'll have to do the same for the pinhole code presumably. can do that later. |
Looks good with the tests in here. I'll do something a bit more difficult and let you know Sam |
KrisThielemans
left a comment
There was a problem hiding this comment.
great. @samdporter let us know when you're happy.
Ok to squash-merge?
Looks good to me see updated repo |
No description provided.