-
Notifications
You must be signed in to change notification settings - Fork 95
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
SPECTUB matrix unitialised values #1232
Comments
so it seem wmh needs to be intialised, I will have a look |
I think this is relevant to this issue. Let me know if it needs its own: I'm having issues with improperly initialised values when setting up the projector after setting a resolution model
Failing scripts for sirf and stir are available at https://github.com/samdporter/SPECTissues, along with valgrind outputs. This error does not occur if no resolution model is set. |
Relevant (I think) part of the valgrind output
|
One of the possible reasons could be here: STIR/src/recon_buildblock/ProjMatrixByBinSPECTUB.cxx Lines 440 to 460 in 6124652
in each condition for mask type the relative do_msk is set to true but the others should also be set to false. |
looks like it. A few others
I think some of these don't matter too much, as in many places the logic will generally not use the variables that aren't set. (For instance, some of the It's a bit weird that we get this now, but possible when |
I guess we don't need this if statement then we can just print "No correction for PSF. Parallel geometry" if (!wmh.do_psf) |
also COL.num seem to be always zero when I debug but it's not intialised |
SPECTUB: initialising old global values: fixing #1232
@varzakis got some problems running the simplest forward projection of SPECT images with SIRF (python kernel crash). Skipping SIRF, we got an occasional crash with STIR directly. Trying to diagnose this by running the following
cd recon_test_pack/SPECT/SPECTUB valgrind OSMAPOSL OSEM_2DPSF.par
gives a lot of output on uninitialised values. Relevant lines seem to be
STIR/src/recon_buildblock/ProjMatrixByBinSPECTUB.cxx
Line 480 in 6124652
STIR/src/recon_buildblock/ProjMatrixByBinSPECTUB.cxx
Line 556 in 6124652
STIR/src/recon_buildblock/ProjMatrixByBinSPECTUB.cxx
Line 568 in 6124652
STIR/src/recon_buildblock/ProjMatrixByBinSPECTUB.cxx
Line 585 in 6124652
STIR/src/recon_buildblock/ProjMatrixByBinSPECTUB.cxx
Line 652 in 6124652
full output:
The text was updated successfully, but these errors were encountered: