ToF with Whitespace #3
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
Open
ashgillman
wants to merge
226
commits into
clean-master
Choose a base branch
from
clean-tof_sino_UCL
base: clean-master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code from the old work transfered.
image and I am working to be able to apply the normalisation factors. I had problems with the RelatedBins class, therefore I created several fucntion which take as input a vector<Bin> and a DataSymmetriesFromBin, which essentially is the same thing ( at least for this application).
… normalisation Currently I am using only the new bin-wise normalisation. After the tests run I will try the old viewgram-wise method. And report the results.
image as the sinogram objective function.
But I would like to remove the bin-wise functions.
My tests showed that the results are not exactly the same as in the viewgram-wise calculations. So I retreat it for now.
[x]. Crash when segment of measured bin was larger than the max segment in par file. FIXED [x]. Zero stored counts if either total_number_of_events or time_frames were not specified.
[x]. ProjDataFromStream: Only get_bin_value(Bin) left. [x]. ProjData.h get_bin_value was removed [x]. ProjDataGEAdvance.h get_bin_value() was removed [x]. CListModeDataECAT8_32.h reverted. [x]. ProjMatrixByBinSPECTUB reverted. [x]. ProjData.cxx : get_related_bin_values commented out [x].
Not really usefull.
The test script computes a background sinogram. The lm-objective function checks if the additive projdata are compatible.
I added fake normalisation and additive components. In addition, In the run_root_GATE test I changed a bit the way the script detects GATE support, after some complains by users. I hope that is better now. I cleaned up the code in the ProjData FromStream but didn't edit the way get_offsets_bin() works because I see no improvement if it depend or other offset function, or if another offset function depends on that. FInally, I uncomment the use of get_bin_value() in the ProjDataInMemory.
Found that the last fi was commented and the test was failling.
Trying to narrow the error from Travis.
The lm objective function takes the pro_data_info from CListModeData. New keywords for CListrModeROOT to set the sizes of the proj_data_info. Better tests on ranges.
After some more complains about the grep in the run_root_GATE.sh, I changed to an awk.
Use of backquotes in the test script. Other minor imrpovements.
The branch compiles with additional ROOT functionality. However, I have not tested anything and I have 2 commented-out commands. Conflicts: recon_test_pack/run_test_simulate_and_recon.sh src/IO/GEHDF5Wrapper.cxx src/IO/InputStreamFromROOTFile.cxx src/IO/InterfileHeader.cxx src/IO/InterfilePDFSHeaderSPECT.cxx src/IO/interfile.cxx src/buildblock/ML_norm.cxx src/buildblock/ProjData.cxx src/buildblock/ProjDataFromStream.cxx src/buildblock/ProjDataInMemory.cxx src/buildblock/SSRB.cxx src/buildblock/Scanner.cxx src/buildblock/SegmentBySinogram.cxx src/buildblock/SegmentByView.cxx src/include/stir/IO/InputStreamFromROOTFile.h src/include/stir/ProjData.h src/include/stir/ProjDataFromStream.h src/include/stir/Scanner.h src/include/stir/Segment.h src/include/stir/Segment.inl src/include/stir/SegmentBySinogram.h src/include/stir/SegmentBySinogram.inl src/include/stir/SegmentByView.h src/include/stir/SegmentByView.inl src/include/stir/Sinogram.h src/include/stir/Sinogram.inl src/include/stir/Viewgram.h src/include/stir/Viewgram.inl src/include/stir/listmode/CListEventCylindricalScannerWithDiscreteDetectors.h src/include/stir/listmode/CListRecordGEHDF5.h src/include/stir/listmode/CListRecordGESigna.h src/include/stir/recon_buildblock/ProjMatrixByBinUsingRayTracing.h src/listmode_buildblock/CListModeDataGEHDF5.cxx src/listmode_buildblock/CListModeDataGESigna.cxx src/listmode_buildblock/CListRecordECAT8_32bit.cxx src/listmode_buildblock/LmToProjData.cxx src/recon_buildblock/BinNormalisationFromGEHDF5.cxx src/recon_buildblock/ForwardProjectorByBinUsingRayTracing.cxx src/recon_buildblock/PoissonLogLikelihoodWithLinearModelForMeanAndProjData.cxx src/recon_buildblock/ProjMatrixByBinUsingRayTracing.cxx src/swig/stir.i src/test/test_proj_data_in_memory.cxx src/utilities/calculate_attenuation_coefficients.cxx src/utilities/correct_projdata.cxx src/utilities/list_projdata_info.cxx
…etectors.inl Uncommented the two commands I had left out.
* run_tests.sh * run_root_GATE.sh * run_scatter_tests.sh Update bcktest.cxx, ListModeData.cxx, and 4 more files...
Update stir.i, CListModeDataGEHDF5.cxx, and 3 more files...
This reverts commit b3f91c0.
…stability with Signa.
actual proj-data not done yet (will call error())
Co-authored-by: Casper da Costa-Luis <[email protected]>
Only use the non-default ones for the style, as otherwise it causes problems with different versions of clang-format
cce9706 to
59ab3ea
Compare
ashgillman
pushed a commit
that referenced
this pull request
Nov 24, 2021
* fix pre-commit * add CI test
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test merge of UCL#304 using UCL#724