![]() |
CASToR
3.2
Tomographic Reconstruction (PET/SPECT/CT)
|
This abstract class is the generic image processing module class used by the oImageProcessingManager. More...
#include <vImageProcessingModule.hh>
Public Member Functions | |
vImageProcessingModule () | |
The constructor of vImageProcessingModule. More... | |
virtual | ~vImageProcessingModule () |
The destructor of vImageProcessingModule. More... | |
int | CheckParameters () |
A public function used to check the parameters settings. More... | |
int | Initialize () |
A public function used to initialize the module. More... | |
virtual int | ReadConfigurationFile (const string &a_configurationFile)=0 |
virtual int | ReadOptionsList (const string &a_optionsList)=0 |
virtual void | ShowHelp ()=0 |
A function used to show help about the child module. More... | |
virtual int | Process (FLTNB ****a4p_image)=0 |
void | SetVerbose (int a_verbose) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
bool | GetAffectTimeDimensionFlag () |
Return the boolean value of m_affectTimeDimensionFlag member. More... | |
bool | GetAffectRespDimensionFlag () |
Return the boolean value of m_affectRespDimensionFlag member. More... | |
bool | GetAffectCardDimensionFlag () |
Return the boolean value of m_affectCardDimensionFlag member. More... | |
vImageProcessingModule () | |
virtual | ~vImageProcessingModule () |
int | CheckParameters () |
int | Initialize () |
virtual int | ReadConfigurationFile (const string &a_configurationFile)=0 |
virtual int | ReadOptionsList (const string &a_optionsList)=0 |
virtual void | ShowHelp ()=0 |
virtual int | Process (FLTNB ****a4p_image)=0 |
void | SetVerbose (int a_verbose) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
bool | GetAffectTimeDimensionFlag () |
bool | GetAffectRespDimensionFlag () |
bool | GetAffectCardDimensionFlag () |
Protected Attributes | |
oImageDimensionsAndQuantification * | mp_ImageDimensionsAndQuantification |
bool | m_affectTimeDimensionFlag |
bool | m_affectRespDimensionFlag |
bool | m_affectCardDimensionFlag |
bool | m_checked |
bool | m_initialized |
int | m_verbose |
Private Member Functions | |
virtual int | CheckSpecificParameters ()=0 |
A private function used to check the parameters settings specific to the child module. More... | |
virtual int | InitializeSpecific ()=0 |
A private function used to initialize everything specific to the child module. More... | |
virtual int | CheckSpecificParameters ()=0 |
virtual int | InitializeSpecific ()=0 |
This abstract class is the generic image processing module class used by the oImageProcessingManager.
This abstract class is the base of all implemented image processing modules inheriting from it.
It is used by the oImageProcessingManager that instantiate a collection of children objects based on the provided options. It implements two public functions:
(i) CheckParameters() which checks the mandatory common parameters and calls the pure virtual CheckSpecificParameters() function implemented by each child;
(ii) Initialize() which initializes some common stuff and calls the pure virtual InitializeSpecific() function implemented by each child.
It also specifies other pure virtual functions dedicated to the reading of options and help associated to each child, and the main Process() function which actually implements the specific processing of each child module. As an example of a child module, see the iImageProcessingTemplate child class that illustrates how a specific image processing module should be implemented.
Definition at line 30 of file code/include/image/vImageProcessingModule.hh.
vImageProcessingModule::vImageProcessingModule | ( | ) |
The constructor of vImageProcessingModule.
This is the default and unique constructor. It does not take any parameter and its role is only to affect default values to each member of the class.
Definition at line 15 of file code/src/image/vImageProcessingModule.cc.
|
virtual |
The destructor of vImageProcessingModule.
This is the default and unique destructor. It does not take any parameter and its role is only to free or delete all structures that were build by this class.
It is virtual, so that it is automatically called when a child object is deleted.
Definition at line 32 of file code/src/image/vImageProcessingModule.cc.
vImageProcessingModule::vImageProcessingModule | ( | ) |
|
virtual |
int vImageProcessingModule::CheckParameters | ( | ) |
A public function used to check the parameters settings.
This function does not take any parameter and is used to check that all mandatory members were correctly parameterized. At the end, it calls the pure virtual CheckSpecificParameters() function implemented by children.
Definition at line 41 of file code/src/image/vImageProcessingModule.cc.
int vImageProcessingModule::CheckParameters | ( | ) |
|
privatepure virtual |
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
privatepure virtual |
A private function used to check the parameters settings specific to the child module.
This function is used to check that all parameters specific to the module are correctly set within allowed values. It is called by the CheckParameters() function. It is pure virtual so is implemented by children.
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
inline |
Return the boolean value of m_affectCardDimensionFlag member.
Definition at line 183 of file code/include/image/vImageProcessingModule.hh.
|
inline |
Definition at line 183 of file include/image/vImageProcessingModule.hh.
|
inline |
Definition at line 176 of file include/image/vImageProcessingModule.hh.
|
inline |
Return the boolean value of m_affectRespDimensionFlag member.
Definition at line 176 of file code/include/image/vImageProcessingModule.hh.
|
inline |
Definition at line 169 of file include/image/vImageProcessingModule.hh.
|
inline |
Return the boolean value of m_affectTimeDimensionFlag member.
Definition at line 169 of file code/include/image/vImageProcessingModule.hh.
int vImageProcessingModule::Initialize | ( | ) |
A public function used to initialize the module.
This function does not take any parameter and is used to initialize everything that should be initialized. At the end, it calls the pure virtual InitializeSpecific() function implemented by children.
Definition at line 72 of file code/src/image/vImageProcessingModule.cc.
int vImageProcessingModule::Initialize | ( | ) |
|
privatepure virtual |
A private function used to initialize everything specific to the child module.
This function is used to initialize everything specific to the module that should be initialized. It is called by the Initialize() function. It is pure virtual so is implemented by children.
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
privatepure virtual |
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
pure virtual |
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
pure virtual |
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
pure virtual |
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
pure virtual |
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
pure virtual |
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
pure virtual |
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
inline |
Definition at line 162 of file code/include/image/vImageProcessingModule.hh.
|
inline |
Definition at line 162 of file include/image/vImageProcessingModule.hh.
|
inline |
Definition at line 155 of file code/include/image/vImageProcessingModule.hh.
|
inline |
Definition at line 155 of file include/image/vImageProcessingModule.hh.
|
pure virtual |
A function used to show help about the child module.
This function must describe what the module does and how to use it. It describes in details the different parameters of the module, and how to set them through the use of a configuration file or a list of options. It is pure virtual so is implemented by children.
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
pure virtual |
Implemented in iImageProcessingTemplate, and iImageProcessingTemplate.
|
protected |
A boolean that specify if the module is affecting the cardiac dynamic dimension
Definition at line 194 of file code/include/image/vImageProcessingModule.hh.
|
protected |
A boolean that specify if the module is affecting the respiratory dynamic dimension
Definition at line 193 of file code/include/image/vImageProcessingModule.hh.
|
protected |
A boolean that specify if the module is affecting the time frame dynamic dimension
Definition at line 192 of file code/include/image/vImageProcessingModule.hh.
|
protected |
A boolean that says if the function CheckParameters() has been called
Definition at line 195 of file code/include/image/vImageProcessingModule.hh.
|
protected |
A boolean that says if the function Initialize() has been called
Definition at line 196 of file code/include/image/vImageProcessingModule.hh.
|
protected |
The verbose level associated to this class
Definition at line 197 of file code/include/image/vImageProcessingModule.hh.
|
protected |
The image dimensions
Definition at line 191 of file code/include/image/vImageProcessingModule.hh.