![]() |
CASToR
3.2
Tomographic Reconstruction (PET/SPECT/CT)
|
This class is designed to manage the different image processing modules and to apply them. More...
#include <oImageProcessingManager.hh>
Public Member Functions | |
oImageProcessingManager () | |
The constructor of oImageProcessingManager. More... | |
~oImageProcessingManager () | |
The destructor of oImageProcessingManager. More... | |
int | CheckParameters () |
A function used to check the parameters settings. More... | |
int | Initialize () |
A function used to initialize the manager and all image processing modules it manages. More... | |
int | ApplyProcessingForward (oImageSpace *ap_ImageSpace) |
int | ApplyProcessingIntra (oImageSpace *ap_ImageSpace) |
int | ApplyProcessingPost (oImageSpace *ap_ImageSpace) |
void | SetVerbose (int a_verboseLevel) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetOptions (vector< string > a_options) |
oImageProcessingManager () | |
~oImageProcessingManager () | |
int | CheckParameters () |
int | Initialize () |
int | ApplyProcessingForward (oImageSpace *ap_ImageSpace) |
int | ApplyProcessingIntra (oImageSpace *ap_ImageSpace) |
int | ApplyProcessingPost (oImageSpace *ap_ImageSpace) |
void | SetVerbose (int a_verboseLevel) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetOptions (vector< string > a_options) |
Static Public Member Functions | |
static void | ShowCommonHelp () |
This function does not take any parameter and is used to display some help about the syntax of the options describing the image processing module that should be used. It is static so that it can be called without any object initialization. More... | |
static void | ShowCommonHelp () |
Private Member Functions | |
int | ParseOptionsAndInitializeImageProcessingModules () |
A function used to parse options and initialize image processing modules. More... | |
int | ParseOptionsAndInitializeImageProcessingModules () |
Private Attributes | |
oImageDimensionsAndQuantification * | mp_ImageDimensionsAndQuantification |
vector< string > | m_options |
int | m_nbImageProcessingModules |
vImageProcessingModule ** | m2p_ImageProcessingModules |
bool * | mp_applyForward |
bool * | mp_applyIntra |
bool * | mp_applyPost |
bool | m_checked |
bool | m_initialized |
int | m_verbose |
This class is designed to manage the different image processing modules and to apply them.
This manager class is supposed to be created and initialized in the main program. To do so, the following steps must be used: (i) The empty constructor is called which affect all members with default values. (ii) All parameters are set through the use of SetXXX() functions. (iii) The CheckParameters() function is called to check that everything mandatory has been set. (iv) The Initialize() function is called to initialize everything. (v) Now the action functions of the manager can be called to apply the different image processing modules. In a few words, based on supplied options, the manager will create children of the abstract vImageProcessingModule class which are specific image processing modules. As an example, see the iImageProcessingTemplate child class that illustrates how a specific image processing module should be implemented.
Definition at line 29 of file code/include/image/oImageProcessingManager.hh.
oImageProcessingManager::oImageProcessingManager | ( | ) |
The constructor of oImageProcessingManager.
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 16 of file code/src/image/oImageProcessingManager.cc.
oImageProcessingManager::~oImageProcessingManager | ( | ) |
The destructor of oImageProcessingManager.
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.
Definition at line 40 of file code/src/image/oImageProcessingManager.cc.
oImageProcessingManager::oImageProcessingManager | ( | ) |
oImageProcessingManager::~oImageProcessingManager | ( | ) |
int oImageProcessingManager::ApplyProcessingForward | ( | oImageSpace * | ap_ImageSpace | ) |
Definition at line 330 of file code/src/image/oImageProcessingManager.cc.
int oImageProcessingManager::ApplyProcessingForward | ( | oImageSpace * | ap_ImageSpace | ) |
int oImageProcessingManager::ApplyProcessingIntra | ( | oImageSpace * | ap_ImageSpace | ) |
Definition at line 363 of file code/src/image/oImageProcessingManager.cc.
int oImageProcessingManager::ApplyProcessingIntra | ( | oImageSpace * | ap_ImageSpace | ) |
int oImageProcessingManager::ApplyProcessingPost | ( | oImageSpace * | ap_ImageSpace | ) |
int oImageProcessingManager::ApplyProcessingPost | ( | oImageSpace * | ap_ImageSpace | ) |
Definition at line 396 of file code/src/image/oImageProcessingManager.cc.
int oImageProcessingManager::CheckParameters | ( | ) |
A 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.
Definition at line 55 of file code/src/image/oImageProcessingManager.cc.
int oImageProcessingManager::CheckParameters | ( | ) |
int oImageProcessingManager::Initialize | ( | ) |
A function used to initialize the manager and all image processing modules it manages.
This function does not take any parameter and is used to initialize everything that should be initialized. In a few words, it parses the options, then creates and initializes all image processing modules based on the provided options.
Definition at line 113 of file code/src/image/oImageProcessingManager.cc.
int oImageProcessingManager::Initialize | ( | ) |
|
private |
A function used to parse options and initialize image processing modules.
This function first parses the options contained in the member m_options. Each string of the vector describes an image processing module to be used. Based on a specific syntax, the options are parsed to get the name of the processing module, its associated parameters and the steps of application. Based on this, the image processing modules are initialized. This function is private because it is called by the Initialize() function.
Definition at line 146 of file code/src/image/oImageProcessingManager.cc.
|
private |
|
inline |
Definition at line 135 of file code/include/image/oImageProcessingManager.hh.
|
inline |
Definition at line 135 of file include/image/oImageProcessingManager.hh.
|
inline |
Definition at line 142 of file code/include/image/oImageProcessingManager.hh.
|
inline |
Definition at line 142 of file include/image/oImageProcessingManager.hh.
|
inline |
Definition at line 128 of file code/include/image/oImageProcessingManager.hh.
|
inline |
Definition at line 128 of file include/image/oImageProcessingManager.hh.
|
static |
|
static |
This function does not take any parameter and is used to display some help about the syntax of the options describing the image processing module that should be used. It is static so that it can be called without any object initialization.
Definition at line 80 of file code/src/image/oImageProcessingManager.cc.
|
private |
The actual image processing modules (as many as m_nbImageProcessingModules)
Definition at line 172 of file code/include/image/oImageProcessingManager.hh.
|
private |
A boolean that says if the function CheckParameters() has been called
Definition at line 176 of file code/include/image/oImageProcessingManager.hh.
|
private |
A boolean that says if the function Initialize() has been called
Definition at line 177 of file code/include/image/oImageProcessingManager.hh.
|
private |
The number of image processing modules managed by this manager
Definition at line 170 of file code/include/image/oImageProcessingManager.hh.
|
private |
A vector containing strings of options, each string is associated to an image processing module
Definition at line 169 of file code/include/image/oImageProcessingManager.hh.
|
private |
The verbose level associated to this class
Definition at line 178 of file code/include/image/oImageProcessingManager.hh.
|
private |
As many booleans as m_nbImageProcessingModules specifying if each module should be apply within the ConvolveForward function
Definition at line 173 of file code/include/image/oImageProcessingManager.hh.
|
private |
As many booleans as m_nbImageProcessingModules specifying if each module should be apply within the ConvolveIntra function
Definition at line 174 of file code/include/image/oImageProcessingManager.hh.
|
private |
As many booleans as m_nbImageProcessingModules specifying if each module should be apply within the ConvolvePost function
Definition at line 175 of file code/include/image/oImageProcessingManager.hh.
|
private |
The image dimensions
Definition at line 168 of file code/include/image/oImageProcessingManager.hh.