74 if (
m_verbose>=2)
Cout(
"oDynamicModelManager::CheckParameters() ..."<< endl);
80 Cerr(
"***** oDynamicModelManager::CheckParameters() -> No image dimensions provided !" << endl);
86 Cerr(
"***** oDynamicModelManager::CheckParameters() -> Wrong verbosity level provided !" << endl);
110 Cerr(
"***** oDynamicModelManager::Initialize() -> Must call CheckParameters() before Initialize() !" << endl);
126 if (
m_verbose>=1)
Cout(
"oDynamicModelManager::Initialize() -> Initialize models" << endl);
131 Cerr(
"***** oDynamicModelManager::Initialize() -> A problem occured while parsing model options and initializing them !" << endl);
157 #ifdef CASTOR_VERBOSE
158 if (
m_verbose>=3)
Cout(
"oDynamicModelManager::ParseOptionsAndInitializeModel ..."<< endl);
161 string dynamic_model =
"";
162 string list_options =
"";
163 string file_options =
"";
182 Cerr(
"***** oDynamicModelManager::CheckParameters() -> Dynamic model should be used with more than one time frame/dynamic gate !" << endl);
194 if (colon!=string::npos)
197 dynamic_model =
m_options.substr(0,colon);
199 file_options =
m_options.substr(colon+1);
204 else if (comma!=string::npos)
207 dynamic_model =
m_options.substr(0,comma);
209 list_options =
m_options.substr(comma+1);
228 Cerr(
"***** oDynamicModelManager::ParseOptionsAndInitializeModel() -> Model '" << dynamic_model <<
"' does not exist !" << endl);
237 Cerr(
"***** oDynamicModelManager::ParseOptionsAndInitializeModel() -> A problem occured while reading and checking frame dynamic model's configuration file !" << endl);
243 Cerr(
"***** oDynamicModelManager::ParseOptionsAndInitializeModel() -> A problem occured while parsing and reading frame dynamic model's options !" << endl);
249 Cerr(
"***** oDynamicModelManager::ParseOptionsAndInitializeModel() -> A problem occured while checking frame dynamic model parameters !" << endl);
255 Cerr(
"***** oDynamicModelManager::ParseOptionsAndInitializeModel() -> A problem occured while initializing frame dynamic model !" << endl);
281 Cerr(
"***** oDynamicModelManager::ApplyDynamicModel() -> Called while not initialized !" << endl);
289 if(
m_verbose>=2)
Cout(
"oDynamicModelManager::ApplyDynamicModel ..."<< endl);
294 Cerr(
"***** oDynamicModelManager::StepPostProcessInsideSubsetLoop() -> A problem occured while applying dynamic model to current estimate images !" << endl);
301 Cerr(
"***** oDynamicModelManager::StepPostProcessInsideSubsetLoop() -> A problem occured while applying dynamic model to current estimate images !" << endl);
325 if(
m_verbose>=2)
Cout(
"oDynamicModelManager::SaveParametricImages ..."<< endl);
329 Cerr(
"***** oDynamicModelManager::SaveParametricImages() -> A problem occured while trying to save image coefficients !" << endl);
Declaration of class oDynamicModelManager.
virtual int CheckParameters()
This function is used to check parameters after the latter have been all set using Set functions...
int ApplyDynamicModel(oImageSpace *ap_ImageS, int a_ite, int a_sset)
void ShowHelpDynamicModel()
Show help about all implemented dynamic models.
void SetImageDimensionsAndQuantification(oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification)
Set the image dimensions in use.
This is the mother class of dynamic model classes.
virtual int ReadAndCheckOptionsList(string a_listOptions)=0
This function is used to read parameters from a string. It is pure virtual so must be implemented b...
oDynamicModelManager()
Constructor of oDynamicModelManager. Simply set all data members to default values.
int Initialize()
Set the dynamic model flag and instanciate/initialize model objects through the ParseOptionsAndInitia...
virtual int Initialize()=0
This function is used to initialize specific data related to the child deformation model...
static sAddonManager * GetInstance()
int ParseOptionsAndInitializeModel()
Parse dynamic model options contained in the previously provided strings. This function is called ins...
virtual int FitModel(oImageSpace *ap_Image, int a_ite, int a_sset)=0
This function is pure virtual so must be implemented by children. It is used to fit the dynamic mod...
virtual int ReadAndCheckConfigurationFile(string a_fileOptions)=0
This function is used to read options from a configuration file. It is pure virtual so must be impl...
oImageDimensionsAndQuantification * mp_ID
void SetVerbose(int a_verbose)
Set the verbose level.
vDynamicModel * mp_DynamicModel
int CheckParameters()
This function is used to check parameters after the latter have been all set using Set functions...
int GetNbCardGates()
Get the number of cardiac gates.
std::map< string, maker_dynamic_model > mp_listOfDynamicModels
This class holds all the matrices in the image domain that can be used in the algorithm: image...
int SaveParametricImages(int a_ite)
Call SaveParametricImages() function of the dynamic model object is 'm_UseModel' is on...
int GetNbTimeFrames()
Get the number of time frames.
int GetNbRespGates()
Get the number of respiratory gates.
~oDynamicModelManager()
Destructor of oDynamicModelManager. Free memory from all allocated tabs.
virtual int EstimateModelParameters(oImageSpace *ap_Image, int a_ite, int a_sset)=0
This function is pure virtual so must be implemented by children. It can be used to estimate any te...
Declaration of class sAddonManager.
virtual int SaveParametricImages(int a_ite)=0
This function is pure virtual so must be implemented by children Call SaveParametricImages() functi...