STIR  6.2.0
BinNormalisationFromML2D.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2004- 2005, Hammersmith Imanet Ltd
5  This file is part of STIR.
6 
7  SPDX-License-Identifier: Apache-2.0
8 
9  See STIR/LICENSE.txt for details
10 */
20 #ifndef __stir_recon_buildblock_BinNormalisationFromML2D_H__
21 #define __stir_recon_buildblock_BinNormalisationFromML2D_H__
22 
25 #include "stir/ProjData.h"
26 #include "stir/shared_ptr.h"
27 #include "stir/ProjDataInMemory.h"
28 #include <string>
29 
30 START_NAMESPACE_STIR
31 
57 class BinNormalisationFromML2D : public RegisteredParsingObject<BinNormalisationFromML2D, BinNormalisation>
58 {
59 public:
61  static const char* const registered_name;
62 
64 
70 
72  virtual Succeeded set_up(const shared_ptr<const ProjDataInfo>&);
73 
75 
79  void apply(RelatedViewgrams<float>& viewgrams) const override;
80 
82 
86  void undo(RelatedViewgrams<float>& viewgrams) const override;
87 
88 private:
89  void set_defaults() override;
90  void initialise_keymap() override;
91  bool post_processing() override;
92 
93  std::string normalisation_filename_prefix;
94  bool do_block;
95  bool do_geo;
96  bool do_eff;
97  int eff_iter_num;
98  int iter_num;
99  // use shared pointer to avoid calling default constructor
100  shared_ptr<ProjDataInMemory> norm_factors_ptr;
101 };
102 
103 END_NAMESPACE_STIR
104 
105 #endif
Declaration of class stir::ProjDataInMemory.
static const char *const registered_name
Name which will be used when parsing a BinNormalisation object.
Definition: BinNormalisationFromML2D.h:61
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast (or corresponding b...
Declaration of class stir::ProjData.
Declaration of class stir::BinNormalisation.
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
A BinNormalisation class that gets the normalisation factors from the files output by find_ML_normfac...
Definition: BinNormalisationFromML2D.h:57
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
Declaration of class stir::RegisteredParsingObject.