CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
include/dynamic/oArterialInputCurve.hh
Go to the documentation of this file.
1 
8 #ifndef OARTERIALINPUTCURVE_HH
9 #define OARTERIALINPUTCURVE_HH 1
10 
11 
12 #include "gVariables.hh"
13 
20 {
21  // -----------------------------------------------------------------------------------------
22  // Constructor & Destructor
23  public:
29 
35 
36  // -----------------------------------------------------------------------------------------
37  // Public member functions
38  public:
45  int CheckParameters();
52  int InitializeInputData();
59  int InterpolateAIC();
66  int Downsample();
67 
68 
69  // -----------------------------------------------------------------------------------------
70  // Public Get&Set functions
75  inline void SetInputFilePath(const string& a_pathToAICfile) { m_pathToAICfile = a_pathToAICfile; }
76 
81  inline void SetVerbose(int a_verbose) { m_verbose = a_verbose; }
82 
87  void SetFrames(int a_nbTimeFrames,uint32_t* a_frameTimeStartInMs, uint32_t* a_frameTimeStopInMs);
97  inline HPFLTNB* GetInterpolatedAIC () { return mp_AICIntrpY; }
98 
99 
100  // -----------------------------------------------------------------------------------------
101  // Private member functions
102 
103  // -----------------------------------------------------------------------------------------
104  // Data members
105  private:
106  string m_pathToAICfile;
108  int m_nbinputDataPoints ;
110  uint32_t* mp_AICDataPointsTimes;
116  int m_nbTimeFrames;
117  uint32_t* mp_frameTimeStartInMs;
118  uint32_t* mp_frameTimeStopInMs;
120  // Verbose
121  int m_verbose;
122 };
123 
124 #endif
int Downsample()
This function downsamples the interpolated arterial input function Currently needed to speed up convo...
oArterialInputCurve()
Constructor of oArterialInputCurve. Simply set all data members to default values.
int InterpolateAIC()
This function performs a linear interpolation within the provided AIC range for every discrete unit o...
void SetInputFilePath(const string &a_pathToAICfile)
~oArterialInputCurve()
Destructor of oArterialInputCurve. Free memory from all allocated tabs.
int InitializeInputData()
This function is used to initialize the input arterial curve samples from the file provided by the us...
void SetFrames(int a_nbTimeFrames, uint32_t *a_frameTimeStartInMs, uint32_t *a_frameTimeStopInMs)
int CheckParameters()
This function is used to check that the required input parameters are provided from the file provided...
This class is designed to manage the Arterial Input Curve provided by the user.