31 #ifndef VDYNAMICMODEL_HH
32 #define VDYNAMICMODEL_HH 1
88 {
mp_ID = ap_ImageDimensionsAndQuantification;}
221 #define FUNCTION_DYNAMICMODEL(CLASS) \
222 static vDynamicModel *make_dynamic_model() { return new CLASS(); };
225 #define CLASS_DYNAMICMODEL(NAME,CLASS) \
226 class NAME##DynamicModelCreator \
229 NAME##DynamicModelCreator() \
230 { sAddonManager::GetInstance()->mp_listOfDynamicModels[#NAME] = CLASS::make_dynamic_model; } \
232 static NAME##DynamicModelCreator DynamicModelCreator##NAME;
virtual int CheckSpecificParameters()=0
This function is used to check the parameters of the child functions before initialization if require...
This header file is mainly used to declare some macro definitions and all includes needed from the st...
Declaration of class oImageDimensionsAndQuantification.
virtual int CheckParameters()
This function is used to check parameters after the latter have been all set using Set functions...
void SetImageDimensionsAndQuantification(oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification)
Set the image dimensions in use.
oImageDimensionsAndQuantification * mp_ID
This is the mother class of dynamic model classes.
virtual int ApplyOutputFOVMaskingOnParametricImages()
Mask the outside of the transaxial FOV based on the m_fovOutPercent.
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...
virtual void ShowHelp()=0
This function is used to print out specific help about the deformation and its options. It is pure virtual so must be implemented by children.
virtual int Initialize()=0
This function is used to initialize specific data related to the child deformation model...
FLTNB ** m2p_outputParImages
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...
void SetVerbose(int a_verbose)
Set the verbose level.
virtual ~vDynamicModel()
Destructor of vDynamicModel.
vDynamicModel()
Constructor of vDynamicModel. Simply set all data members to default values.
FLTNB ** m2p_parametricImages
This class holds all the matrices in the image domain that can be used in the algorithm: image...
This class is designed to manage all dimensions and quantification related stuff. ...
virtual int EstimateImageWithModel(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...
Declaration of class oOptimizerManager.
virtual void ComputeOutputParImage()
Compute output image using the m2p_parametricImages matrix Store the result in the m2p_outputParImage...
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...
virtual int SaveParametricImages(int a_iteration, int a_subset=-1)
This function is pure virtual so must be implemented by children Call SaveParametricImages() functi...