CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
oDynamicModelManager.hh
Go to the documentation of this file.
1 
11 #ifndef ODYNAMICMODELMANAGER_HH
12 #define ODYNAMICMODELMANAGER_HH 1
13 
14 #include "gVariables.hh"
15 #include "vDynamicModel.hh"
16 #include "vDataFile.hh"
17 
18 
19 
29 {
30  // -----------------------------------------------------------------------------------------
31  // Constructor & Destructor
32  public:
43 
44  // -----------------------------------------------------------------------------------------
45  // Public member functions
46  public:
53  int CheckParameters();
60  int Initialize();
70  int ApplyDynamicModel(oImageSpace* ap_ImageS, int a_ite, int a_sset);
78  int SaveParametricImages(int a_ite);
79 
80 
81  // -----------------------------------------------------------------------------------------
82  // Public Get & Set functions
83  public:
89  inline void SetVerbose(int a_verboseLevel)
90  {m_verbose = a_verboseLevel;}
96  inline void SetImageDimensionsAndQuantification(oImageDimensionsAndQuantification* ap_ImageDimensionsAndQuantification)
97  {mp_ID = ap_ImageDimensionsAndQuantification;}
103  inline void SetOptions(const string& a_options)
104  {m_options = a_options;}
110  inline bool UseModel()
111  {return m_UseModel;}
112 
113 
114  // -----------------------------------------------------------------------------------------
115  // Private member functions
116  private:
129 
130 
131  // -----------------------------------------------------------------------------------------
132  // Data members
133  private:
134 
136  string m_options;
138  bool m_UseModel;
139  int m_verbose;
140  bool m_checked;
142 };
143 
144 
145 #endif
This header file is mainly used to declare some macro definitions and all includes needed from the st...
int ApplyDynamicModel(oImageSpace *ap_ImageS, int a_ite, int a_sset)
void SetOptions(const string &a_options)
Set the respiratory motion options contained in the provided string.
This is the mother class of dynamic model classes.
void SetImageDimensionsAndQuantification(oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification)
Set the image dimensions in use.
oDynamicModelManager()
Constructor of oDynamicModelManager. Simply set all data members to default values.
int Initialize()
Set the dynamic model flag and instanciate/initialize model objects through the ParseOptionsAndInitia...
void SetVerbose(int a_verboseLevel)
Set the verbose level.
int ParseOptionsAndInitializeModel()
Parse dynamic model options contained in the previously provided strings. This function is called ins...
This class is designed to manage the use of dynamic model in the reconstruction.
Declaration of class vDataFile.
bool UseModel()
Indicate if the use of a dynamic model is enabled.
oImageDimensionsAndQuantification * mp_ID
vDynamicModel * mp_DynamicModel
int CheckParameters()
This function is used to check parameters after the latter have been all set using Set functions...
This class holds all the matrices in the image domain that can be used in the algorithm: image...
Definition: oImageSpace.hh:41
int SaveParametricImages(int a_ite)
Call SaveParametricImages() function of the dynamic model object is 'm_UseModel' is on...
This class is designed to manage all dimensions and quantification related stuff. ...
Declaration of class vDynamicModel.
~oDynamicModelManager()
Destructor of oDynamicModelManager. Free memory from all allocated tabs.