8 #include "iOptimizerTemplate.hh" 9 #include "sOutputManager.hh" 65 cout <<
"This optimizer is only a squeleton template to explain how to add an optimizer into CASToR. If you" << endl;
66 cout <<
"want to implement your own optimizer, start from here and look at the specific documentation." << endl;
123 if (
m_verbose>=2)
Cout(
"iOptimizerTemplate::InitializeSpecific() -> Use the template optimizer" << endl);
159 FLTNB a_multiplicativeCorrections,
FLTNB a_additiveCorrections,
FLTNB a_blankValue,
193 FLTNB a_multiplicativeCorrections,
FLTNB a_additiveCorrections,
FLTNB a_blankValue,
214 *ap_backwardValues = 1.;
226 FLTNB a_sensitivity,
FLTNB* ap_correctionValues,
227 INTNB a_voxel,
int a_tbf,
int a_rbf,
int a_cbf )
234 *ap_newImageValue = a_currentImageValue;
int m_requiredPenaltyDerivativesOrder
bool m_listmodeCompatibility
~iOptimizerTemplate()
The destructor of iOptimizerTemplate.
bool m_needGlobalSensitivity
bool m_emissionCompatibility
iOptimizerTemplate()
The constructor of iOptimizerTemplate.
int CheckSpecificParameters()
A private function used to check the parameters settings specific to the child optimizer.
int ImageSpaceSpecificOperations(FLTNB a_currentImageValue, FLTNB *ap_newImageValue, FLTNB a_sensitivity, FLTNB *ap_correctionValues, INTNB a_voxel, int a_tbf=-1, int a_rbf=-1, int a_cbf=-1)
bool m_histogramCompatibility
int ReadOptionsList(const string &a_optionsList)
int InitializeSpecific()
This function is used to initialize specific stuff to the child optimizer.
int PreImageUpdateSpecificStep()
A private function used to compute the penalty term of the OneStepLate algorithm. ...
bool m_transmissionCompatibility
This class is designed to generically described any iterative optimizer.
This class is designed to manage and store system matrix elements associated to a vEvent...
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)
int ReadConfigurationFile(const string &a_configurationFile)
void ShowHelpSpecific()
A function used to show help about the child optimizer.
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)