-
Notifications
You must be signed in to change notification settings - Fork 100
Merge release 4 to master #552
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
Conversation
When setting up without a subsampled image and not subsampling then setup would fail More info on the progress
This was a very weird merge from my point of view. :S
fix_read_file_and_iterative_loop
Summary: The tangential coordinate downsampling is not specified and currently set to the same value as the number of views.
Currently tests downsampling of the scanner and the image for scatter points. This commit might break the Scatter Estimation, as I made some changes in the input args of some functions. I made the changes having in mind the test flow and usability at SIRF. I will fix everything when re-working on the Scatter Estimation.
A test introduced for scatter simulation using only one voxel for the activity and attenuation. The results looks reasonable however, I do not know how to automate the check.
I tried to write a mini scatter estimation, but I feel that it is getting longer than I thought. It might not worth it.
From SIRF is hard to know whether a parameter was successfully set. Therefore I introduce this type of functions.
+ More has* functions
- More get_* functions
It is a reasonable energy window
- New function for default downsampling - Test for default downsampling - Test in recon_test_pack for scatter simulation - Comparison between new scatter simulation and old - Re-ordering the ScatterSimulation header and improvement of general organisation - set_up() moved to public in order to be accessible from SIRF -
We just returned Succeeded::no without feedback before. also corrected some small typos etc
- remove restriction that unscaled_proj_data is ProjDataInMemory - check return value of ScatterSimulation::process_data() - minor typos and grammar fixes
Co-Authored-By: Kris Thielemans <KrisThielemans@users.noreply.github.com>
Co-Authored-By: Kris Thielemans <KrisThielemans@users.noreply.github.com>
Co-Authored-By: Kris Thielemans <KrisThielemans@users.noreply.github.com>
Co-Authored-By: Kris Thielemans <KrisThielemans@users.noreply.github.com>
- revert to use anatomical_prior_sptrs.size() as using an_size could lead to uninitialised values possibly - avoid calling set_anatomical_prior_sptr(anatomical_prior_sptr[i],i) which seemed to lead to undefined behaviour on some systems - using unsigned int i for loops over anatomical_priors_sptrs.size() to avoid warnings. (had to use i<size() then to avoid wrap-around)
This means that the reconstruction will check if set_up() is after one of the set_*() functions has changed any parameters
fix argument parsing
Triple-energy window scatter correction with different window widths. fixes UCL#524
various fixes to KOSMAPOSL to make it safe to be called without parsing (e.g. from Python or SIRF). Also enable using only the functional kernel (without anatomical priors) - moved non-parsing related checks from post_processing to set_up(). - set_defaults() clears all vectors that are not set in set_up(), such that it's safe to re-use the same object. - change set_anatomical_image_filenames to set_anatomical_image_filename as it's setting only a single filename. - change name of vector members from singular to plural, ex: anatamical_prior_sptr -> anatomical prior_sptrs, - safer assignment of vector elements in set functions, - set_up() checks that every anatomical image has been set - using unsigned int i for loops over anatomical_priors_sptrs.size() to avoid warnings. (had to use i<size() then to avoid wrap-around) - set _already_set_up=false in all set() functions. This means that the reconstruction will check if set_up() is called after one of the set_*() functions has changed any parameters related to SyneRBI/SIRF#654 Co-authored-by: Kris Thielemans <k.thielemans@ucl.ac.uk>
This sets Compiler Id for Apple Clang to AppleClang Fixes UCL#531
merge Release 4.0 updates to release_4
Had to make some changes in scatter related to `shared_ptr<const ...>`
moved lines on shared_ptr<const...> from release_4.0 to 5.0, restoring the 4.0 release notes.
|
Everything builds fine (including NiftyPET). All ctests and recon test pack are fine! |
|
Linux clang-5 job failed due to log-file exceeded. https://travis-ci.org/github/UCL/STIR/jobs/691726126. Main culprit is This is because we still check STIR/src/include/stir/common.h Lines 172 to 174 in a6cfddc
I'll disable this check |
|
codacy failure is in the NiftyPET projector, but is minor so I'll ignore it. |
This should bring master up-to-date again.
@rijobro I have updated the scatter bits, but haven't checked the rest. In particular the NiftyPET code needs your attention.