![]() |
CASToR
3.2
Tomographic Reconstruction (PET/SPECT/CT)
|
This class is designed to manage the image-based deformation part of the reconstruction. More...
#include <oDeformationManager.hh>
Public Member Functions | |
oDeformationManager () | |
Constructor of oDeformationManager. Simply set all data members to default values. More... | |
~oDeformationManager () | |
Destructor of oDeformationManager. 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 flags for the different motion types and instanciate/initialize deformation objects through the ParseOptionsAndInitializeDeformations() private function. More... | |
void | InstantiateImageForDeformation (oImageSpace *ap_Image) |
void | DeallocateImageForDeformation (oImageSpace *ap_Image) |
int | InitImageForDeformation (oImageSpace *ap_Image) |
void | SetVerbose (int a_verboseLevel) |
void | SetDataMode (int a_dataMode) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetOptions (const string &a_options) |
void | SetNbTransformations (int a_nbTransformations) |
void | SetMotionType (int a_motionType) |
bool | UseDeformationResp () |
Indicate if the respiratory motion deformation is enabled. More... | |
bool | UseDeformationCard () |
Indicate if the cardiac motion deformation is enabled. More... | |
bool | UseDeformationInv () |
Indicate if the involuntary patient motion deformation is enabled. More... | |
int | GetNbSensImagesRespDeformation (int a_value) |
int | GetNbSensImagesCardDeformation (int a_value) |
int | ApplyDeformationForSensitivityGeneration (oImageSpace *ap_Image, int a_defDirection, int idx, int fr, int rg, int cg) |
int | ApplyDeformationsToBackwardImage (oImageSpace *ap_Image) |
int | PerformDeformation (oImageSpace *ap_Image) |
int | TestDeformationOnImage (FLTNB *ap_inputImage, FLTNB *ap_outputImage, int a_direction, int a_defIdx) |
oDeformationManager () | |
~oDeformationManager () | |
int | CheckParameters () |
int | Initialize () |
void | InstantiateImageForDeformation (oImageSpace *ap_Image) |
void | DeallocateImageForDeformation (oImageSpace *ap_Image) |
int | InitImageForDeformation (oImageSpace *ap_Image) |
void | SetVerbose (int a_verboseLevel) |
void | SetDataMode (int a_dataMode) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetOptions (const string &a_options) |
void | SetNbTransformations (int a_nbTransformations) |
void | SetMotionType (int a_motionType) |
bool | UseDeformationResp () |
bool | UseDeformationCard () |
bool | UseDeformationInv () |
int | GetNbSensImagesRespDeformation (int a_value) |
int | GetNbSensImagesCardDeformation (int a_value) |
int | ApplyDeformationForSensitivityGeneration (oImageSpace *ap_Image, int a_defDirection, int idx, int fr, int rg, int cg) |
int | ApplyDeformationsToBackwardImage (oImageSpace *ap_Image) |
int | PerformDeformation (oImageSpace *ap_Image) |
int | TestDeformationOnImage (FLTNB *ap_inputImage, FLTNB *ap_outputImage, int a_direction, int a_defIdx) |
Private Member Functions | |
int | ParseOptionsAndInitializeDeformations () |
Parse respiratory/cardiac/involuntary patient motion options contained in the previously provided strings. This function is called inside the Initialize() function. More... | |
int | ParseOptionsAndInitializeDeformations () |
Private Attributes | |
oImageDimensionsAndQuantification * | mp_ID |
string | m_options |
vDeformation * | mp_Deformation |
bool | m_UseDeformationResp |
bool | m_UseDeformationCard |
bool | m_UseDeformationIPat |
int | m_curMotIdx |
int | m_nbTransformations |
int | m_verbose |
int | m_dataMode |
bool | m_checked |
bool | m_initialized |
This class is designed to manage the image-based deformation part of 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 PerformDeformation() is called each time the data belongs to a new "gate".
The deformation functions are not multithreaded, therefore the threads are synchronized (inside the main loop of the main algorithm) before performing any image transformation.
Definition at line 50 of file code/include/image/oDeformationManager.hh.
oDeformationManager::oDeformationManager | ( | ) |
Constructor of oDeformationManager. Simply set all data members to default values.
Definition at line 19 of file code/src/image/oDeformationManager.cc.
oDeformationManager::~oDeformationManager | ( | ) |
Destructor of oDeformationManager. Free memory from all allocated tabs.
Definition at line 59 of file code/src/image/oDeformationManager.cc.
oDeformationManager::oDeformationManager | ( | ) |
oDeformationManager::~oDeformationManager | ( | ) |
int oDeformationManager::ApplyDeformationForSensitivityGeneration | ( | oImageSpace * | ap_Image, |
int | a_defDirection, | ||
int | idx, | ||
int | fr, | ||
int | rg, | ||
int | cg | ||
) |
Definition at line 432 of file code/src/image/oDeformationManager.cc.
int oDeformationManager::ApplyDeformationForSensitivityGeneration | ( | oImageSpace * | ap_Image, |
int | a_defDirection, | ||
int | idx, | ||
int | fr, | ||
int | rg, | ||
int | cg | ||
) |
int oDeformationManager::ApplyDeformationsToBackwardImage | ( | oImageSpace * | ap_Image | ) |
Definition at line 571 of file code/src/image/oDeformationManager.cc.
int oDeformationManager::ApplyDeformationsToBackwardImage | ( | oImageSpace * | ap_Image | ) |
int oDeformationManager::CheckParameters | ( | ) |
This function is used to check parameters after the latter have been all set using Set functions.
Definition at line 108 of file code/src/image/oDeformationManager.cc.
int oDeformationManager::CheckParameters | ( | ) |
void oDeformationManager::DeallocateImageForDeformation | ( | oImageSpace * | ap_Image | ) |
Definition at line 348 of file code/src/image/oDeformationManager.cc.
void oDeformationManager::DeallocateImageForDeformation | ( | oImageSpace * | ap_Image | ) |
|
inline |
Definition at line 194 of file code/include/image/oDeformationManager.hh.
|
inline |
Definition at line 194 of file include/image/oDeformationManager.hh.
|
inline |
Definition at line 184 of file include/image/oDeformationManager.hh.
|
inline |
Definition at line 184 of file code/include/image/oDeformationManager.hh.
int oDeformationManager::Initialize | ( | ) |
Set the flags for the different motion types and instanciate/initialize deformation objects through the ParseOptionsAndInitializeDeformations() private function.
Definition at line 152 of file code/src/image/oDeformationManager.cc.
int oDeformationManager::Initialize | ( | ) |
int oDeformationManager::InitImageForDeformation | ( | oImageSpace * | ap_Image | ) |
Definition at line 370 of file code/src/image/oDeformationManager.cc.
int oDeformationManager::InitImageForDeformation | ( | oImageSpace * | ap_Image | ) |
void oDeformationManager::InstantiateImageForDeformation | ( | oImageSpace * | ap_Image | ) |
void oDeformationManager::InstantiateImageForDeformation | ( | oImageSpace * | ap_Image | ) |
Definition at line 325 of file code/src/image/oDeformationManager.cc.
|
private |
Parse respiratory/cardiac/involuntary patient motion options contained in the previously provided strings. This function is called inside the Initialize() function.
Manage the options reading and initialize specific vDeformation
Options are a string containing first the name of the deformation, then either a ':' and a configuration file specific to the deformation
Definition at line 208 of file code/src/image/oDeformationManager.cc.
|
private |
int oDeformationManager::PerformDeformation | ( | oImageSpace * | ap_Image | ) |
Definition at line 488 of file code/src/image/oDeformationManager.cc.
int oDeformationManager::PerformDeformation | ( | oImageSpace * | ap_Image | ) |
|
inline |
Definition at line 124 of file include/image/oDeformationManager.hh.
|
inline |
Definition at line 124 of file code/include/image/oDeformationManager.hh.
|
inline |
Definition at line 131 of file code/include/image/oDeformationManager.hh.
|
inline |
Definition at line 131 of file include/image/oDeformationManager.hh.
void oDeformationManager::SetMotionType | ( | int | a_motionType | ) |
void oDeformationManager::SetMotionType | ( | int | a_motionType | ) |
Definition at line 81 of file code/src/image/oDeformationManager.cc.
|
inline |
Definition at line 147 of file include/image/oDeformationManager.hh.
|
inline |
Definition at line 147 of file code/include/image/oDeformationManager.hh.
|
inline |
Definition at line 139 of file code/include/image/oDeformationManager.hh.
|
inline |
Definition at line 139 of file include/image/oDeformationManager.hh.
|
inline |
Definition at line 116 of file include/image/oDeformationManager.hh.
|
inline |
Definition at line 116 of file code/include/image/oDeformationManager.hh.
int oDeformationManager::TestDeformationOnImage | ( | FLTNB * | ap_inputImage, |
FLTNB * | ap_outputImage, | ||
int | a_direction, | ||
int | a_defIdx | ||
) |
int oDeformationManager::TestDeformationOnImage | ( | FLTNB * | ap_inputImage, |
FLTNB * | ap_outputImage, | ||
int | a_direction, | ||
int | a_defIdx | ||
) |
Definition at line 637 of file code/src/image/oDeformationManager.cc.
|
inline |
Indicate if the cardiac motion deformation is enabled.
Definition at line 169 of file code/include/image/oDeformationManager.hh.
|
inline |
Definition at line 169 of file include/image/oDeformationManager.hh.
|
inline |
Definition at line 176 of file include/image/oDeformationManager.hh.
|
inline |
Indicate if the involuntary patient motion deformation is enabled.
Definition at line 176 of file code/include/image/oDeformationManager.hh.
|
inline |
Definition at line 162 of file include/image/oDeformationManager.hh.
|
inline |
Indicate if the respiratory motion deformation is enabled.
Definition at line 162 of file code/include/image/oDeformationManager.hh.
|
private |
Boolean indicating whether the parameters were checked or not
Definition at line 318 of file code/include/image/oDeformationManager.hh.
|
private |
Current gate for the motion
Definition at line 308 of file code/include/image/oDeformationManager.hh.
|
private |
Data mode (list-mode (=0), histogram (=1)). Recovered from the datafile
Definition at line 316 of file code/include/image/oDeformationManager.hh.
|
private |
Boolean indicating whether the manager was initialized or not
Definition at line 320 of file code/include/image/oDeformationManager.hh.
|
private |
Number of image-based transformations/deformations
Definition at line 311 of file code/include/image/oDeformationManager.hh.
|
private |
The string containing options for the motion correction
Definition at line 299 of file code/include/image/oDeformationManager.hh.
|
private |
Flag indicating that transformation for cardiac motion is enabled
Definition at line 304 of file code/include/image/oDeformationManager.hh.
|
private |
Flag indicating that transformation for involuntary patient motion is enabled
Definition at line 305 of file code/include/image/oDeformationManager.hh.
|
private |
Flag indicating that transformation for respiratory motion is enabled
Definition at line 303 of file code/include/image/oDeformationManager.hh.
|
private |
The verbose level
Definition at line 314 of file code/include/image/oDeformationManager.hh.
|
private |
Deformation object for image-based motion
Definition at line 302 of file code/include/image/oDeformationManager.hh.
|
private |
Pointer to the oImageDimensionsAndQuantification object in use
Definition at line 297 of file code/include/image/oDeformationManager.hh.