![]() |
CASToR
3.0
Tomographic Reconstruction (PET/SPECT/CT)
|
This class is designed to manage the use of dynamic model in the reconstruction. More...
#include <oDynamicModelManager.hh>
Public Member Functions | |
oDynamicModelManager () | |
Constructor of oDynamicModelManager. Simply set all data members to default values. More... | |
~oDynamicModelManager () | |
Destructor of oDynamicModelManager. Free memory from all allocated tabs. More... | |
int | CheckParameters () |
This function is used to check parameters after the latter have been all set using Set functions. More... | |
int | Initialize () |
Set the dynamic model flag and instanciate/initialize model objects through the ParseOptionsAndInitializeDeformations() private function. More... | |
int | ApplyDynamicModel (oImageSpace *ap_ImageS, int a_iteration, int a_subset) |
int | SaveParametricImages (int a_iteration, int a_subset=-1) |
Call SaveParametricImages() function of the dynamic model object is 'm_UseModel' is on, in order to save any parameter image. More... | |
void | SetVerbose (int a_verboseLevel) |
Set the verbose level. More... | |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
Set the image dimensions in use. More... | |
void | SetOptions (const string &a_options) |
Set the respiratory motion options contained in the provided string. More... | |
bool | UseModel () |
Indicate if the use of a dynamic model is enabled. More... | |
int | SetDiagonalTimeBasisFunctions () |
Set diagonal Time Basis Functions for regular frame-by-frame reconstruction. More... | |
int | SetDiagonalRespBasisFunctions () |
Set diagonal Respiratory Basis Functions for regular gated reconstruction. More... | |
int | SetDiagonalCardBasisFunctions () |
Set diagonal Cardiac Basis Functions for regular gated reconstruction. More... | |
Private Member Functions | |
int | ParseOptionsAndInitializeModel () |
Parse dynamic model options contained in the previously provided strings. This function is called inside the Initialize() function. More... | |
Private Attributes | |
oImageDimensionsAndQuantification * | mp_ID |
string | m_options |
vDynamicModel * | mp_DynamicModel |
int | m_nbTimeBasisFunctions |
int | m_nbRespBasisFunctions |
int | m_nbCardBasisFunctions |
FLTNB ** | m2p_timeBasisFunctions |
FLTNB ** | m2p_respBasisFunctions |
FLTNB ** | m2p_cardBasisFunctions |
bool | m_UseModel |
int | m_verbose |
bool | m_checked |
bool | m_initialized |
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 45 of file oDynamicModelManager.hh.
oDynamicModelManager::oDynamicModelManager | ( | ) |
Constructor of oDynamicModelManager. Simply set all data members to default values.
Definition at line 41 of file oDynamicModelManager.cc.
oDynamicModelManager::~oDynamicModelManager | ( | ) |
Destructor of oDynamicModelManager. Free memory from all allocated tabs.
Definition at line 75 of file oDynamicModelManager.cc.
int oDynamicModelManager::ApplyDynamicModel | ( | oImageSpace * | ap_ImageS, |
int | a_iteration, | ||
int | a_subset | ||
) |
Definition at line 332 of file oDynamicModelManager.cc.
int oDynamicModelManager::CheckParameters | ( | ) |
This function is used to check parameters after the latter have been all set using Set functions.
Definition at line 91 of file oDynamicModelManager.cc.
int oDynamicModelManager::Initialize | ( | ) |
Set the dynamic model flag and instanciate/initialize model objects through the ParseOptionsAndInitializeDeformations() private function.
Definition at line 129 of file oDynamicModelManager.cc.
|
private |
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
Definition at line 186 of file oDynamicModelManager.cc.
int oDynamicModelManager::SaveParametricImages | ( | int | a_iteration, |
int | a_subset = -1 |
||
) |
Call SaveParametricImages() function of the dynamic model object is 'm_UseModel' is on, in order to save any parameter image.
a_iteration | : current iteration index |
a_subset | : current number of subsets (or -1 by default) |
Definition at line 377 of file oDynamicModelManager.cc.
int oDynamicModelManager::SetDiagonalCardBasisFunctions | ( | ) |
Set diagonal Cardiac Basis Functions for regular gated reconstruction.
Definition at line 451 of file oDynamicModelManager.cc.
int oDynamicModelManager::SetDiagonalRespBasisFunctions | ( | ) |
Set diagonal Respiratory Basis Functions for regular gated reconstruction.
Definition at line 426 of file oDynamicModelManager.cc.
int oDynamicModelManager::SetDiagonalTimeBasisFunctions | ( | ) |
Set diagonal Time Basis Functions for regular frame-by-frame reconstruction.
Definition at line 404 of file oDynamicModelManager.cc.
|
inline |
Set the image dimensions in use.
ap_ImageDimensionsAndQuantification |
Definition at line 120 of file oDynamicModelManager.hh.
|
inline |
Set the respiratory motion options contained in the provided string.
a_options |
Definition at line 127 of file oDynamicModelManager.hh.
|
inline |
Set the verbose level.
a_verboseLevel |
Definition at line 113 of file oDynamicModelManager.hh.
|
inline |
Indicate if the use of a dynamic model is enabled.
Definition at line 134 of file oDynamicModelManager.hh.
|
private |
The table of cardiac basis functions coefficients
Definition at line 185 of file oDynamicModelManager.hh.
|
private |
The table of respiratory basis functions coefficients
Definition at line 184 of file oDynamicModelManager.hh.
|
private |
The table of time basis functions coefficients
Definition at line 183 of file oDynamicModelManager.hh.
|
private |
Boolean indicating whether the parameters were checked or not
Definition at line 190 of file oDynamicModelManager.hh.
|
private |
Boolean indicating whether the manager was initialized or not
Definition at line 191 of file oDynamicModelManager.hh.
|
private |
Number of Cardiac Basis Functions
Definition at line 182 of file oDynamicModelManager.hh.
|
private |
Number of Respiratory Basis Functions
Definition at line 181 of file oDynamicModelManager.hh.
|
private |
Number of Time Basis Functions
Definition at line 180 of file oDynamicModelManager.hh.
|
private |
The string containing options for the dynamic model
Definition at line 177 of file oDynamicModelManager.hh.
|
private |
Flag indicating that use of a dynamic model is enabled or not
Definition at line 188 of file oDynamicModelManager.hh.
|
private |
The verbose level
Definition at line 189 of file oDynamicModelManager.hh.
|
private |
Dynamic model object
Definition at line 178 of file oDynamicModelManager.hh.
|
private |
Pointer to the oImageDimensionsAndQuantification object in use
Definition at line 176 of file oDynamicModelManager.hh.