CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
iPatlakModel.hh
Go to the documentation of this file.
1 
9 #ifndef IPATLAKMODEL_HH
10 #define IPATLAKMODEL_HH 1
11 
12 #include "vDynamicModel.hh"
13 #include "sAddonManager.hh"
14 
15 
16 
22 {
23  // -----------------------------------------------------------------------------------------
24  // Constructor & Destructor
25  public:
30  iPatlakModel();
35  ~iPatlakModel();
36 
37 
38  // -----------------------------------------------------------------------------------------
39  // Public member functions related to the initialization of the model
40  public:
41  // Function for automatic insertion (put the class name as the parameters and do not add semi-colon at the end of the line)
56  int ReadAndCheckConfigurationFile(string a_fileOptions);
63  int ReadAndCheckOptionsList(string a_listOptions);
70  int Initialize();
76  void ShowHelp();
77 
78 
79  // -----------------------------------------------------------------------------------------
80  // Public member functions called by the main iterative algorithm class
89  int EstimateModelParameters(oImageSpace* ap_Image, int a_ite, int a_sset);
98  int FitModel(oImageSpace* ap_Image, int a_ite, int a_sset);
107  int SaveParametricImages(int a_iteration);
108 
109 
110  // -----------------------------------------------------------------------------------------
111  // Data members
112  protected:
121  string m_fileOptions;
122  string m_listOptions;
124 };
125 
126 // Class for automatic insertion (set here the visible dynamic model's name, put the class name as the parameters and do not add semi-colon at the end of the line)
127 CLASS_DYNAMICMODEL(PatlakModel,iPatlakModel)
128 
129 #endif
int ReadAndCheckOptionsList(string a_listOptions)
This function is used to read parameters from a string.
#define FLTNB
Definition: gVariables.hh:55
void ShowHelp()
Print out specific help about the implementation of the Patlak model and its initialization.
Definition: iPatlakModel.cc:80
int EstimateModelParameters(oImageSpace *ap_Image, int a_ite, int a_sset)
Estimate Patlak parametric images.
int FitModel(oImageSpace *ap_Image, int a_ite, int a_sset)
Estimate image using Patlak parametric images and basis functions.
This is the mother class of dynamic model classes.
int Initialize()
This function is used to initialize Patlak parametric images and basis functions. ...
int CheckSpecificParameters()
This function is used to check whether all member variables have been correctly initialized or not...
iPatlakModel()
Constructor of iPatlakModel. Simply set all data members to default values.
Definition: iPatlakModel.cc:30
string m_fileOptions
#define FUNCTION_DYNAMICMODEL(CLASS)
string m_listOptions
FLTNB ** m2p_patlakTACs
int ReadAndCheckConfigurationFile(string a_fileOptions)
This function is used to read options from a configuration file.
int SaveParametricImages(int a_iteration)
Write parametric images on disk if 'm_savePImgFlag' is enabled.
This class implements the Patlak model, to model kinetics of irreversible radiotracers.
Definition: iPatlakModel.hh:21
#define CLASS_DYNAMICMODEL(NAME, CLASS)
This class holds all the matrices in the image domain that can be used in the algorithm: image...
Definition: oImageSpace.hh:41
FLTNB ** m2p_parametricImages
~iPatlakModel()
Destructor of iPatlakModel.
Definition: iPatlakModel.cc:53
Declaration of class vDynamicModel.
Declaration of class sAddonManager.