STIR  6.2.0
TrivialBinNormalisation.h
Go to the documentation of this file.
1 //
2 //
11 /*
12  Copyright (C) 2000- 2011, Hammersmith Imanet Ltd
13  This file is part of STIR.
14 
15  SPDX-License-Identifier: Apache-2.0
16 
17  See STIR/LICENSE.txt for details
18 */
19 
20 #ifndef __stir_recon_buildblock_TrivialBinNormalisation_H__
21 #define __stir_recon_buildblock_TrivialBinNormalisation_H__
22 
25 
26 START_NAMESPACE_STIR
27 
34 class TrivialBinNormalisation : public RegisteredParsingObject<TrivialBinNormalisation, BinNormalisation>
35 {
36 public:
38  static const char* const registered_name;
39 
40  inline void apply(RelatedViewgrams<float>&) const override {}
41  inline void undo(RelatedViewgrams<float>&) const override {}
42 
43  inline float get_bin_efficiency(const Bin& bin) const override { return 1.F; }
44 
45  inline bool is_trivial() const override { return true; }
46 
47 private:
48  inline void set_defaults() override {}
49  inline void initialise_keymap() override {}
50 };
51 
52 END_NAMESPACE_STIR
53 
54 #endif
void apply(RelatedViewgrams< float > &) const override
normalise some data
Definition: TrivialBinNormalisation.h:40
bool is_trivial() const override
check if we would be multiplying with 1 (i.e. do nothing)
Definition: TrivialBinNormalisation.h:45
static const char *const registered_name
Name which will be used when parsing a BinNormalisation object.
Definition: TrivialBinNormalisation.h:38
void undo(RelatedViewgrams< float > &) const override
undo the normalisation of some data
Definition: TrivialBinNormalisation.h:41
Declaration of class stir::BinNormalisation.
A class for storing coordinates and value of a single projection bin.
Definition: Bin.h:48
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
Trivial class which does not do any normalisation whatsoever.
Definition: TrivialBinNormalisation.h:34
float get_bin_efficiency(const Bin &bin) const override
Return the &#39;efficiency&#39; factor for a single bin.
Definition: TrivialBinNormalisation.h:43
Declaration of class stir::RegisteredParsingObject.