CASToR  2.0
Tomographic Reconstruction (PET/SPECT/CT)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
iOptimizerOriginalAML.hh
Go to the documentation of this file.
1 /*
2 This file is part of CASToR.
3 
4  CASToR is free software: you can redistribute it and/or modify it under the
5  terms of the GNU General Public License as published by the Free Software
6  Foundation, either version 3 of the License, or (at your option) any later
7  version.
8 
9  CASToR is distributed in the hope that it will be useful, but WITHOUT ANY
10  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12  details.
13 
14  You should have received a copy of the GNU General Public License along with
15  CASToR (in file GNU_GPL.TXT). If not, see <http://www.gnu.org/licenses/>.
16 
17 Copyright 2017-2018 all CASToR contributors listed below:
18 
19  --> current contributors: Thibaut MERLIN, Simon STUTE, Didier BENOIT, Claude COMTAT, Marina FILIPOVIC, Mael MILLARDET
20  --> past contributors: Valentin VIELZEUF
21 
22 This is CASToR version 2.0.
23 */
24 
31 #ifndef IOPTIMIZERORIGINALAML_HH
32 #define IOPTIMIZERORIGINALAML_HH 1
33 
34 #include "gVariables.hh"
35 #include "sAddonManager.hh"
36 #include "vOptimizer.hh"
37 
48 {
49  // -------------------------------------------------------------------
50  // Constructor & Destructor
51  public:
66 
67 
68  // -------------------------------------------------------------------
69  // Public member functions
70  public:
71  // Function for automatic insertion (put the class name as the parameter and do not add semi-column at the end of the line)
83  int ReadConfigurationFile(const string& a_configurationFile);
94  int ReadOptionsList(const string& a_optionsList);
95 
96 
97  // -------------------------------------------------------------------
98  // Private member functions (pure virtual in vOptimizer)
99  private:
109  void ShowHelpSpecific();
126  int InitializeSpecific();
142  int SensitivitySpecificOperations( FLTNB a_data, FLTNB a_forwardModel, FLTNB* ap_weight,
143  FLTNB a_multiplicativeCorrections, FLTNB a_additiveCorrections, FLTNB a_blankValue,
144  FLTNB a_quantificationFactor, oProjectionLine* ap_Line );
161  int DataSpaceSpecificOperations( FLTNB a_data, FLTNB a_forwardModel, FLTNB* ap_backwardValues,
162  FLTNB a_multiplicativeCorrections, FLTNB a_additiveCorrections, FLTNB a_blankValue,
163  FLTNB a_quantificationFactor, oProjectionLine* ap_Line );
175  int ImageSpaceSpecificOperations( FLTNB a_currentImageValue, FLTNB* ap_newImageValue,
176  FLTNB a_sensitivity, FLTNB* ap_correctionValues, INTNB a_voxel );
177 
178  // -------------------------------------------------------------------
179  // Data members
180  private:
183 };
184 
185 
186 // Class for automatic insertion (set here the visible optimizer's name as the first parameter,
187 // put the class name as the second parameter and do NOT add semi-colon at the end of the line)
189 
190 #endif
191 
This header file is mainly used to declare some macro definitions and all includes needed from the st...
#define FLTNB
Definition: gVariables.hh:81
iOptimizerOriginalAML()
The constructor of iOptimizerOriginalAML.
int ImageSpaceSpecificOperations(FLTNB a_currentImageValue, FLTNB *ap_newImageValue, FLTNB a_sensitivity, FLTNB *ap_correctionValues, INTNB a_voxel)
This function perform the image update step specific to the optimizer.
This class implements the original AML algorithm (AB-EMML with B to infinity)
int ReadConfigurationFile(const string &a_configurationFile)
A function used to read options from a configuration file.
void ShowHelpSpecific()
A function used to show help about the child optimizer.
Declaration of class vOptimizer.
#define FUNCTION_OPTIMIZER(CLASS)
Definition: vOptimizer.hh:655
#define CLASS_OPTIMIZER(NAME, CLASS)
Definition: vOptimizer.hh:659
int CheckSpecificParameters()
A private function used to check the parameters settings specific to the child optimizer.
#define INTNB
Definition: gVariables.hh:92
This class is designed to generically described any iterative optimizer.
Definition: vOptimizer.hh:59
This class is designed to manage and store system matrix elements associated to a vEvent...
~iOptimizerOriginalAML()
The destructor of iOptimizerOriginalAML.
int InitializeSpecific()
This function is used to initialize specific stuff to the child optimizer.
int ReadOptionsList(const string &a_optionsList)
A function used to read options from a list of options.
int SensitivitySpecificOperations(FLTNB a_data, FLTNB a_forwardModel, FLTNB *ap_weight, FLTNB a_multiplicativeCorrections, FLTNB a_additiveCorrections, FLTNB a_blankValue, FLTNB a_quantificationFactor, oProjectionLine *ap_Line)
This function compute the weight associated to the provided event (for sensitivity computation) ...
int DataSpaceSpecificOperations(FLTNB a_data, FLTNB a_forwardModel, FLTNB *ap_backwardValues, FLTNB a_multiplicativeCorrections, FLTNB a_additiveCorrections, FLTNB a_blankValue, FLTNB a_quantificationFactor, oProjectionLine *ap_Line)
This function performs the data space operations specific to the optimizer (computes the values to be...
Declaration of class sAddonManager.