![]() |
CASToR
3.2
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) |
void | SetVerbose (int a_verboseLevel) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetOptions (const string &a_options) |
bool | GetUseModel () |
Indicate if the use of a dynamic model is enabled. More... | |
void | SetUseModelInReconstruction (bool a_useModelInReconstruction) |
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... | |
oDynamicModelManager () | |
~oDynamicModelManager () | |
int | CheckParameters () |
int | Initialize () |
int | ApplyDynamicModel (oImageSpace *ap_ImageS, int a_iteration, int a_subset) |
int | SaveParametricImages (int a_iteration, int a_subset=-1) |
void | SetVerbose (int a_verboseLevel) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetOptions (const string &a_options) |
bool | GetUseModel () |
void | SetUseModelInReconstruction (bool a_useModelInReconstruction) |
int | SetDiagonalTimeBasisFunctions () |
int | SetDiagonalRespBasisFunctions () |
int | SetDiagonalCardBasisFunctions () |
Private Member Functions | |
int | ParseOptionsAndInitializeModel () |
Parse dynamic model options contained in the previously provided strings. This function is called inside the Initialize() function. More... | |
int | ParseOptionsAndInitializeModel () |
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 |
bool | m_useModelInReconstruction |
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 23 of file code/include/dynamic/oDynamicModelManager.hh.
oDynamicModelManager::oDynamicModelManager | ( | ) |
Constructor of oDynamicModelManager. Simply set all data members to default values.
Definition at line 19 of file code/src/dynamic/oDynamicModelManager.cc.
oDynamicModelManager::~oDynamicModelManager | ( | ) |
Destructor of oDynamicModelManager. Free memory from all allocated tabs.
Definition at line 54 of file code/src/dynamic/oDynamicModelManager.cc.
oDynamicModelManager::oDynamicModelManager | ( | ) |
oDynamicModelManager::~oDynamicModelManager | ( | ) |
int oDynamicModelManager::ApplyDynamicModel | ( | oImageSpace * | ap_ImageS, |
int | a_iteration, | ||
int | a_subset | ||
) |
Definition at line 313 of file code/src/dynamic/oDynamicModelManager.cc.
int oDynamicModelManager::ApplyDynamicModel | ( | oImageSpace * | ap_ImageS, |
int | a_iteration, | ||
int | a_subset | ||
) |
int oDynamicModelManager::CheckParameters | ( | ) |
This function is used to check parameters after the latter have been all set using Set functions.
Definition at line 70 of file code/src/dynamic/oDynamicModelManager.cc.
int oDynamicModelManager::CheckParameters | ( | ) |
|
inline |
Indicate if the use of a dynamic model is enabled.
Definition at line 112 of file code/include/dynamic/oDynamicModelManager.hh.
|
inline |
Definition at line 112 of file include/dynamic/oDynamicModelManager.hh.
int oDynamicModelManager::Initialize | ( | ) |
Set the dynamic model flag and instanciate/initialize model objects through the ParseOptionsAndInitializeDeformations() private function.
Definition at line 108 of file code/src/dynamic/oDynamicModelManager.cc.
int oDynamicModelManager::Initialize | ( | ) |
|
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 165 of file code/src/dynamic/oDynamicModelManager.cc.
|
private |
int oDynamicModelManager::SaveParametricImages | ( | int | a_iteration, |
int | a_subset = -1 |
||
) |
Definition at line 358 of file code/src/dynamic/oDynamicModelManager.cc.
int oDynamicModelManager::SaveParametricImages | ( | int | a_iteration, |
int | a_subset = -1 |
||
) |
int oDynamicModelManager::SetDiagonalCardBasisFunctions | ( | ) |
Set diagonal Cardiac Basis Functions for regular gated reconstruction.
Definition at line 432 of file code/src/dynamic/oDynamicModelManager.cc.
int oDynamicModelManager::SetDiagonalCardBasisFunctions | ( | ) |
int oDynamicModelManager::SetDiagonalRespBasisFunctions | ( | ) |
Set diagonal Respiratory Basis Functions for regular gated reconstruction.
Definition at line 407 of file code/src/dynamic/oDynamicModelManager.cc.
int oDynamicModelManager::SetDiagonalRespBasisFunctions | ( | ) |
int oDynamicModelManager::SetDiagonalTimeBasisFunctions | ( | ) |
int oDynamicModelManager::SetDiagonalTimeBasisFunctions | ( | ) |
Set diagonal Time Basis Functions for regular frame-by-frame reconstruction.
Definition at line 385 of file code/src/dynamic/oDynamicModelManager.cc.
|
inline |
Definition at line 98 of file include/dynamic/oDynamicModelManager.hh.
|
inline |
Definition at line 98 of file code/include/dynamic/oDynamicModelManager.hh.
|
inline |
Definition at line 105 of file include/dynamic/oDynamicModelManager.hh.
|
inline |
Definition at line 105 of file code/include/dynamic/oDynamicModelManager.hh.
|
inline |
Definition at line 120 of file include/dynamic/oDynamicModelManager.hh.
|
inline |
Definition at line 120 of file code/include/dynamic/oDynamicModelManager.hh.
|
inline |
Definition at line 91 of file code/include/dynamic/oDynamicModelManager.hh.
|
inline |
Definition at line 91 of file include/dynamic/oDynamicModelManager.hh.
|
private |
The table of cardiac basis functions coefficients
Definition at line 171 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
The table of respiratory basis functions coefficients
Definition at line 170 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
The table of time basis functions coefficients
Definition at line 169 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
Boolean indicating whether the parameters were checked or not
Definition at line 177 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
Boolean indicating whether the manager was initialized or not
Definition at line 178 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
Number of Cardiac Basis Functions
Definition at line 168 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
Number of Respiratory Basis Functions
Definition at line 167 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
Number of Time Basis Functions
Definition at line 166 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
The string containing options for the dynamic model
Definition at line 163 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
Flag indicating that use of a dynamic model is enabled or not
Definition at line 174 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
Flag indicating if the model is used with castor-recon or with imageDynamicTools
Definition at line 175 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
The verbose level
Definition at line 176 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
Dynamic model object
Definition at line 164 of file code/include/dynamic/oDynamicModelManager.hh.
|
private |
Pointer to the oImageDimensionsAndQuantification object in use
Definition at line 162 of file code/include/dynamic/oDynamicModelManager.hh.