114 if (
m_verbose>=4)
Cout(
"oDeformationManager::CheckParameters() -> Check parameters before initialization"<< endl);
118 Cerr(
"***** oDeformationManager::CheckParameters() -> No image dimensions provided !" << endl);
124 Cerr(
"***** oDeformationManager::CheckParameters() -> Wrong number of respiratory gates !" << endl);
130 Cerr(
"***** oDeformationManager::CheckParameters() -> Wrong verbosity level provided !" << endl);
136 Cerr(
"***** oDeformationManager::CheckParameters() -> Wrong data mode provided ! (should be =0 (list-mode) or =1 (histogram)" << endl);
160 Cerr(
"***** oDeformationManager::Initialize() -> Must call CheckParameters() before Initialize() !" << endl);
175 if (
m_verbose>=1)
Cout(
"oDeformationManager::Initialize() -> Initialize deformations" << endl);
180 Cerr(
"***** oDeformationManager::Initialize() -> A problem occured while parsing deformation options and initializing them !" << endl);
207 if (
m_verbose>=2)
Cout(
"oDeformationManager::ParseOptionsAndInitializeDeformations ..."<< endl);
209 string deformation =
"";
210 string list_options =
"";
211 string file_options =
"";
234 if (colon!=string::npos)
239 file_options =
m_options.substr(colon+1);
244 else if (comma!=string::npos)
249 list_options =
m_options.substr(comma+1);
268 Cerr(
"***** oDeformationManager::ParseOptionsAndInitializeDeformations() -> Deformation '" << deformation <<
"' does not exist !" << endl);
280 Cerr(
"***** oDeformationManager::ParseOptionsAndInitializeDeformations() -> A problem occured while reading and checking respiratory deformation's configuration file !" << endl);
286 Cerr(
"***** oDeformationManager::ParseOptionsAndInitializeDeformations() -> A problem occured while parsing and reading respiratory deformation's options !" << endl);
293 Cerr(
"***** oDeformationManager::ParseOptionsAndInitializeDeformations() -> A problem occured while checking respiratory deformation parameters !" << endl);
299 Cerr(
"***** oDeformationManager::ParseOptionsAndInitializeDeformations() -> A problem occured while initializing respiratory deformation !" << endl);
327 if(
m_verbose>=2)
Cout(
"oDeformationManager::InstantiateImageForDeformation() -> Instantiate buffer images"<< endl);
350 if(
m_verbose>=2)
Cout(
"oDeformationManager::DeallocateImageForDeformation() -> Deallocate buffer images"<< endl);
372 if(
m_verbose>=2)
Cout(
"oDeformationManager::InitImageForDeformation() -> Initialize buffer images"<< endl);
403 Cerr(
"***** oDeformationManager::ApplyDeformationForSensitivityGeneration() -> Called while not initialized !" << endl);
428 Cout(
"oDeformationManager::ApplyDeformationForSensitivityGeneration()-> '" << endl);
431 Cout(
"BACKWARD Deformation for respiratory motion, for resp gate "<<rg <<
" and card gate " <<cg<<
"." <<endl);
433 Cout(
"FORWARD Deformation for respiratory motion, for resp gate "<<rg <<
" and card gate " <<cg<<
"." <<endl);
438 Cerr(
"***** oDeformationManager::ApplyDeformationForSensitivityGeneration()-> An error occured while performing deformation for respiratory motion correction for the sensitivity image generation !" << endl);
465 Cerr(
"***** oDeformationManager::PerformDeformation() -> Called while not initialized !" << endl);
493 if(
m_verbose >=3)
Cout(
"oDeformationManager::PerformDeformation-> Gate/motion subset # " << idx
494 <<
", for resp image " <<rimg
495 <<
" and card image " <<cimg<<
"."
496 <<
" Frame # " << fr << endl);
499 Cerr(
"***** oDeformationManager::PerformDeformation()-> An error occured while performing image deformation during the reconstruction !" << endl);
507 Cerr(
"***** oDeformationManager::PerformDeformation()-> An error occured while performing sensitivity image deformation (histogram mode) during the reconstruction !" << endl);
537 Cerr(
"***** oDeformationManager::ApplyDeformationsToBackwardImage() -> Called while not initialized !" << endl);
559 if(
m_verbose >=3)
Cout(
"oDeformationManager::ApplyDeformationsToBackwardImage-> Deformation for gate #" << idx<<
"." <<endl);
562 Cerr(
"***** oDeformationManager::ApplyDeformationsToBackwardImage()-> An error occured while performing final backward image deformation !" << endl);
570 Cerr(
"***** oDeformationManager::ApplyDeformationsToBackwardImage()-> An error occured while performing final backward image deformation of the sensitivity image !" << endl);
int GetCurrentCardImage(int a_th)
call the eponym function from the oDynamicDataManager object
void DeallocateBwdImageForDeformation()
Free memory for the buffer backward image required for image-based deformation.
int GetCurrentCardGate(int a_th)
call the eponym function from the oDynamicDataManager object
int GetCurrentPMotionIndex(int a_th)
call the eponym function from the oDynamicDataManager object
void ShowHelpDeformation()
Show help about all implemented deformations.
void InitSensImageForDeformation()
Initialize the buffer sensitivity image dedicated to image-based deformation, if required (histogram ...
int GetCurrentRespGate(int a_th)
call the eponym function from the oDynamicDataManager object
static sAddonManager * GetInstance()
void InitBwdImageForDeformation()
Initialize the buffer backward image dedicated to image-based deformation.
void InstantiateBwdImageForDeformation()
Memory allocation for the buffer backward image required for image-based deformation.
std::map< string, maker_deformation > mp_listOfDeformations
This class holds all the matrices in the image domain that can be used in the algorithm: image...
void DeallocateSensImageForDeformation()
void InstantiateSensImageForDeformation()
Memory allocation for the buffer sensitivity image required for image-based deformation (only for PET...
int GetCurrentRespImage(int a_th)
call the eponym function from the oDynamicDataManager object
Declaration of class sAddonManager.
int GetCurrentTimeFrame(int a_th)
call the eponym function from the oDynamicDataManager object