-
Notifications
You must be signed in to change notification settings - Fork 100
MLEstimateComponentBasedNormalisation refactor #1499
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
base: master
Are you sure you want to change the base?
Changes from all commits
3035db8
bc58f39
0dca08e
9fed40f
2579f81
5d89071
86f6a82
880e530
dd711b1
2bcdc80
0fa8455
90ea81b
f0c788b
e5e2cc7
8adb620
9ff77fe
5c1a0f7
a114d14
b0e05c9
1d6ca9b
0aae32e
ca1140c
2935b99
3c11502
7c18bc7
42340f2
f424ca8
a5f4b91
1eefeff
dcee251
63f8560
3d7e9ff
55e5f1a
55897ee
cbe81ec
fd194fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -34,7 +34,7 @@ START_NAMESPACE_STIR | |||||
| Components currently supported are crystal efficiencies, geometric factors | ||||||
| (constrained by symmetry) and block data. The latter were introduced to | ||||||
| cope with timing alignment issues between blocks, but are generally | ||||||
| not recommended in the current estimation process (by ML_estimate_component_based_normalisation) | ||||||
| not recommended in the current estimation process (by MLEstimateComponentBasedNormalisation) | ||||||
| as the model allows for too much freedom. | ||||||
|
|
||||||
| The detection efficiency of a crystal pair is modelled as | ||||||
|
|
@@ -126,15 +126,33 @@ class BinNormalisationPETFromComponents : public BinNormalisation | |||||
| void | ||||||
| allocate(shared_ptr<const ProjDataInfo>, bool do_eff, bool do_geo, bool do_block = false, bool do_symmetry_per_block = false); | ||||||
|
|
||||||
| DetectorEfficiencies& crystal_efficiencies() | ||||||
|
|
||||||
| void set_crystal_efficiencies(const DetectorEfficiencies& eff) | ||||||
| { | ||||||
| efficiencies = eff; | ||||||
| } | ||||||
|
|
||||||
| DetectorEfficiencies& get_crystal_efficiencies() | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok for changing to
Suggested change
or would this break something? However, cannot change backwards compatibility in a minor version update, so keep #if STIR_VERSION < 070000
STIR_DEPRECATED DetectorEfficiencies& crystal_efficiencies()
...
#endif
Obviously the same for the others. |
||||||
| { | ||||||
| return efficiencies; | ||||||
| } | ||||||
| GeoData3D& geometric_factors() | ||||||
|
|
||||||
| void set_geometric_factors(const GeoData3D& geo) | ||||||
| { | ||||||
| geo_data = geo; | ||||||
| } | ||||||
|
|
||||||
| GeoData3D& get_geometric_factors() | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also |
||||||
| { | ||||||
| return geo_data; | ||||||
| } | ||||||
| BlockData3D& block_factors() | ||||||
|
|
||||||
| void set_block_factors(const BlockData3D& block) | ||||||
| { | ||||||
| block_data = block; | ||||||
| } | ||||||
|
|
||||||
| BlockData3D& get_block_factors() | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also |
||||||
| { | ||||||
| return block_data; | ||||||
| } | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.