CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
code/include/dynamic/oDynamicModelManager.hh
Go to the documentation of this file.
1 
8 #ifndef ODYNAMICMODELMANAGER_HH
9 #define ODYNAMICMODELMANAGER_HH 1
10 
11 #include "gVariables.hh"
12 #include "vDynamicModel.hh"
13 #include "vDataFile.hh"
14 
24 {
25  // -----------------------------------------------------------------------------------------
26  // Constructor & Destructor
27  public:
38 
39  // -----------------------------------------------------------------------------------------
40  // Public member functions
41  public:
48  int CheckParameters();
55  int Initialize();
65  int ApplyDynamicModel(oImageSpace* ap_ImageS, int a_iteration, int a_subset);
74  int SaveParametricImages(int a_iteration, int a_subset = -1);
83  // -----------------------------------------------------------------------------------------
84  // Public Get & Set functions
85  public:
91  inline void SetVerbose(int a_verboseLevel)
92  {m_verbose = a_verboseLevel;}
98  inline void SetImageDimensionsAndQuantification(oImageDimensionsAndQuantification* ap_ImageDimensionsAndQuantification)
99  {mp_ID = ap_ImageDimensionsAndQuantification;}
105  inline void SetOptions(const string& a_options)
106  {m_options = a_options;}
112  inline bool GetUseModel()
113  {return m_useModel;}
120  inline void SetUseModelInReconstruction(bool a_useModelInReconstruction)
121  {m_useModelInReconstruction=a_useModelInReconstruction;}
140 
141  // -----------------------------------------------------------------------------------------
142  // Private member functions
143  private:
156 
157 
158  // -----------------------------------------------------------------------------------------
159  // Data members
160  private:
161 
163  string m_options;
165  // Variables related to basis functions for the ImageDimensionsAndQuantification object
174  bool m_useModel;
176  int m_verbose;
177  bool m_checked;
179 };
180 
181 
182 #endif
int SetDiagonalCardBasisFunctions()
Set diagonal Cardiac Basis Functions for regular gated reconstruction.
This is the mother class of dynamic model classes.
oImageDimensionsAndQuantification * mp_ID
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...
int ParseOptionsAndInitializeModel()
Parse dynamic model options contained in the previously provided strings. This function is called ins...
bool GetUseModel()
Indicate if the use of a dynamic model is enabled.
This class is designed to manage the use of dynamic model in the reconstruction.
int SaveParametricImages(int a_iteration, int a_subset=-1)
void SetUseModelInReconstruction(bool a_useModelInReconstruction)
int CheckParameters()
This function is used to check parameters after the latter have been all set using Set functions...
int SetDiagonalRespBasisFunctions()
Set diagonal Respiratory Basis Functions for regular gated reconstruction.
This class holds all the matrices in the image domain that can be used in the algorithm: image...
Declaration of class vDynamicModel.
This class is designed to manage all dimensions and quantification related stuff. ...
~oDynamicModelManager()
Destructor of oDynamicModelManager. Free memory from all allocated tabs.
void SetImageDimensionsAndQuantification(oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification)
int SetDiagonalTimeBasisFunctions()
Set diagonal Time Basis Functions for regular frame-by-frame reconstruction.
int ApplyDynamicModel(oImageSpace *ap_ImageS, int a_iteration, int a_subset)