![]() |
CASToR
3.1
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 | GetUseModel () |
Indicate if the use of a dynamic model is enabled. More... | |
void | SetUseModelInReconstruction (bool a_useModelInReconstruction) |
Set flag to indicate if the dynamic model is used in the tomographic reconstruction. 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 |
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 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 76 of file oDynamicModelManager.cc.
int oDynamicModelManager::ApplyDynamicModel | ( | oImageSpace * | ap_ImageS, |
int | a_iteration, | ||
int | a_subset | ||
) |
Definition at line 335 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 92 of file oDynamicModelManager.cc.
|
inline |
Indicate if the use of a dynamic model is enabled.
Definition at line 134 of file oDynamicModelManager.hh.
int oDynamicModelManager::Initialize | ( | ) |
Set the dynamic model flag and instanciate/initialize model objects through the ParseOptionsAndInitializeDeformations() private function.
Definition at line 130 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 187 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 380 of file oDynamicModelManager.cc.
int oDynamicModelManager::SetDiagonalCardBasisFunctions | ( | ) |
Set diagonal Cardiac Basis Functions for regular gated reconstruction.
Definition at line 454 of file oDynamicModelManager.cc.
int oDynamicModelManager::SetDiagonalRespBasisFunctions | ( | ) |
Set diagonal Respiratory Basis Functions for regular gated reconstruction.
Definition at line 429 of file oDynamicModelManager.cc.
int oDynamicModelManager::SetDiagonalTimeBasisFunctions | ( | ) |
Set diagonal Time Basis Functions for regular frame-by-frame reconstruction.
Definition at line 407 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 flag to indicate if the dynamic model is used in the tomographic reconstruction.
Definition at line 142 of file oDynamicModelManager.hh.
|
inline |
Set the verbose level.
a_verboseLevel |
Definition at line 113 of file oDynamicModelManager.hh.
|
private |
The table of cardiac basis functions coefficients
Definition at line 193 of file oDynamicModelManager.hh.
|
private |
The table of respiratory basis functions coefficients
Definition at line 192 of file oDynamicModelManager.hh.
|
private |
The table of time basis functions coefficients
Definition at line 191 of file oDynamicModelManager.hh.
|
private |
Boolean indicating whether the parameters were checked or not
Definition at line 199 of file oDynamicModelManager.hh.
|
private |
Boolean indicating whether the manager was initialized or not
Definition at line 200 of file oDynamicModelManager.hh.
|
private |
Number of Cardiac Basis Functions
Definition at line 190 of file oDynamicModelManager.hh.
|
private |
Number of Respiratory Basis Functions
Definition at line 189 of file oDynamicModelManager.hh.
|
private |
Number of Time Basis Functions
Definition at line 188 of file oDynamicModelManager.hh.
|
private |
The string containing options for the dynamic model
Definition at line 185 of file oDynamicModelManager.hh.
|
private |
Flag indicating that use of a dynamic model is enabled or not
Definition at line 196 of file oDynamicModelManager.hh.
|
private |
Flag indicating if the model is used with castor-recon or with imageDynamicTools
Definition at line 197 of file oDynamicModelManager.hh.
|
private |
The verbose level
Definition at line 198 of file oDynamicModelManager.hh.
|
private |
Dynamic model object
Definition at line 186 of file oDynamicModelManager.hh.
|
private |
Pointer to the oImageDimensionsAndQuantification object in use
Definition at line 184 of file oDynamicModelManager.hh.