CASToR  1.0
Tomographic Reconstruction (PET/SPECT)
Public Member Functions | Private Member Functions | Private Attributes
oDynamicModelManager Class Reference

This class is designed to manage the use of dynamic model in the reconstruction. More...

#include <oDynamicModelManager.hh>

Collaboration diagram for oDynamicModelManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 oDynamicModelManager ()
 Constructor of oDynamicModelManager. Simply set all data members to default values.
 ~oDynamicModelManager ()
 Destructor of oDynamicModelManager. Free memory from all allocated tabs.
int CheckParameters ()
 This function is used to check parameters after the latter have been all set using Set functions.
int Initialize ()
 Set the dynamic model flag and instanciate/initialize model objects through the ParseOptionsAndInitializeDeformations() private function.
int ApplyDynamicModel (oImageSpace *ap_ImageS, int a_ite, int a_sset)
int SaveParametricImages (int a_ite)
 Call SaveParametricImages() function of the dynamic model object is 'm_UseModel' is on, in order to save any parameter image.
void SetVerbose (int a_verboseLevel)
 Set the verbose level.
void SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification)
 Set the image dimensions in use.
void SetOptions (const string &a_options)
 Set the respiratory motion options contained in the provided string.
bool UseModel ()
 Indicate if the use of a dynamic model is enabled.

Private Member Functions

int ParseOptionsAndInitializeModel ()
 Parse dynamic model options contained in the previously provided strings. This function is called inside the Initialize() function.

Private Attributes

oImageDimensionsAndQuantificationmp_ID
string m_options
vDynamicModelmp_DynamicModel
bool m_UseModel
int m_verbose
bool m_checked
bool m_initialized

Detailed Description

This class is designed to manage the use of dynamic model in the reconstruction.

As each manager class, it is created in the main program, all parameters are then set, checked, and the manager is initialized.
The manager is then used by the algorithm itself, where the function ApplyDynamicModel() is called at the end of the subset loop

Definition at line 28 of file oDynamicModelManager.hh.


Constructor & Destructor Documentation

Constructor of oDynamicModelManager. Simply set all data members to default values.

Definition at line 30 of file oDynamicModelManager.cc.

Destructor of oDynamicModelManager. Free memory from all allocated tabs.

Definition at line 55 of file oDynamicModelManager.cc.


Member Function Documentation

int oDynamicModelManager::ApplyDynamicModel ( oImageSpace ap_ImageS,
int  a_ite,
int  a_sset 
)

Definition at line 276 of file oDynamicModelManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

This function is used to check parameters after the latter have been all set using Set functions.

Returns:
0 if success, positive value otherwise.

Definition at line 71 of file oDynamicModelManager.cc.

Here is the caller graph for this function:

Set the dynamic model flag and instanciate/initialize model objects through the ParseOptionsAndInitializeDeformations() private function.

Returns:
0 if success, positive value otherwise.

Definition at line 105 of file oDynamicModelManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Parse dynamic model options contained in the previously provided strings. This function is called inside the Initialize() function.

Manage the options reading and initialize specific vDynamicModel
Options are a string containing first the name of the model, then either a ':' and a configuration file specific to the model

  • or - as many ',' as needed parameters for this model.
    Specific pure virtual functions of the vDynamicModel are used to read parameters and initialize them.
    Returns:
    0 if success, positive value otherwise

Definition at line 155 of file oDynamicModelManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Call SaveParametricImages() function of the dynamic model object is 'm_UseModel' is on, in order to save any parameter image.

Parameters:
a_ite
Returns:
0 if success, positive value otherwise

Definition at line 320 of file oDynamicModelManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Set the image dimensions in use.

Parameters:
ap_ImageDimensionsAndQuantification

Definition at line 96 of file oDynamicModelManager.hh.

Here is the caller graph for this function:

oDynamicModelManager::SetOptions ( const string &  a_options) [inline]

Set the respiratory motion options contained in the provided string.

Parameters:
a_options

Definition at line 103 of file oDynamicModelManager.hh.

Here is the caller graph for this function:

oDynamicModelManager::SetVerbose ( int  a_verboseLevel) [inline]

Set the verbose level.

Parameters:
a_verboseLevel

Definition at line 89 of file oDynamicModelManager.hh.

Here is the caller graph for this function:

Indicate if the use of a dynamic model is enabled.

Returns:
true if enabled, false otherwise

Definition at line 110 of file oDynamicModelManager.hh.


Member Data Documentation

Boolean indicating whether the parameters were checked or not

Definition at line 140 of file oDynamicModelManager.hh.

Boolean indicating whether the manager was initialized or not

Definition at line 141 of file oDynamicModelManager.hh.

The string containing options for the dynamic model

Definition at line 136 of file oDynamicModelManager.hh.

Flag indicating that use of a dynamic model is enabled or not

Definition at line 138 of file oDynamicModelManager.hh.

The verbose level

Definition at line 139 of file oDynamicModelManager.hh.

Dynamic model object

Definition at line 137 of file oDynamicModelManager.hh.

Pointer to the oImageDimensionsAndQuantification object in use

Definition at line 135 of file oDynamicModelManager.hh.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Defines