CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
src/image/vImageProcessingModule.cc
Go to the documentation of this file.
1 
8 #include "vImageProcessingModule.hh"
9 
10 // =====================================================================
11 // ---------------------------------------------------------------------
12 // ---------------------------------------------------------------------
13 // =====================================================================
14 
16 {
17  // Affect default values
19  m_verbose = 0;
23  m_checked = false;
24  m_initialized = false;
25 }
26 
27 // =====================================================================
28 // ---------------------------------------------------------------------
29 // ---------------------------------------------------------------------
30 // =====================================================================
31 
33 {
34 }
35 
36 // =====================================================================
37 // ---------------------------------------------------------------------
38 // ---------------------------------------------------------------------
39 // =====================================================================
40 
42 {
43  // Check image dimensions
45  {
46  Cerr("***** vImageProcessingModule::CheckParameters() -> oImageDimensionsAndQuantification is null !" << endl);
47  return 1;
48  }
49  // Check verbose level
50  if (m_verbose<0)
51  {
52  Cerr("***** vImageProcessingModule::CheckParameters() -> Verbose level is negative !" << endl);
53  return 1;
54  }
55  // Call the CheckSpecificParameters function of the child
57  {
58  Cerr("***** vImageProcessingModule::CheckParameters() -> A problem occurred while checking parameters specific to the image processing module !" << endl);
59  return 1;
60  }
61  // All set
62  m_checked = true;
63  // Normal end
64  return 0;
65 }
66 
67 // =====================================================================
68 // ---------------------------------------------------------------------
69 // ---------------------------------------------------------------------
70 // =====================================================================
71 
73 {
74  // Call the specific initialization function of the child
75  if (InitializeSpecific())
76  {
77  Cerr("***** vImageProcessingModule::Initialize() -> A problem occurred while initializing stuff specific to the image processing module !" << endl);
78  return 1;
79  }
80  // All set
81  m_initialized = true;
82  // Normal end
83  return 0;
84 }
85 
86 // =====================================================================
87 // ---------------------------------------------------------------------
88 // ---------------------------------------------------------------------
89 // =====================================================================
#define Cerr(MESSAGE)
oImageDimensionsAndQuantification * mp_ImageDimensionsAndQuantification
virtual ~vImageProcessingModule()
The destructor of vImageProcessingModule.
virtual int InitializeSpecific()=0
A private function used to initialize everything specific to the child module.
int Initialize()
A public function used to initialize the module.
virtual int CheckSpecificParameters()=0
A private function used to check the parameters settings specific to the child module.
vImageProcessingModule()
The constructor of vImageProcessingModule.
int CheckParameters()
A public function used to check the parameters settings.