67 cout <<
"This optimizer is the standard MLEM (for Maximum Likelihood Expectation Maximization)." << endl;
68 cout <<
"If subsets are used, it naturally becomes the OSEM optimizer." << endl;
69 cout <<
"The following options can be used (in this particular order when provided as a list):" << endl;
70 cout <<
" initial image value: to set the uniform voxel value for the initial image" << endl;
71 cout <<
" denominator threshold: to set the threshold of the data space denominator under which the ratio is set to 1" << endl;
72 cout <<
" minimum image update: to set the minimum of the image update factor under which it stays constant (0 or a negative value" << endl;
73 cout <<
" means no minimum thus allowing a 0 update)" << endl;
74 cout <<
" maximum image update: to set the maximum of the image update factor over which it stays constant (0 or a negative value means" << endl;
75 cout <<
" no maximum)" << endl;
87 key_word =
"initial image value";
90 Cerr(
"***** iOptimizerMLEM::ReadAndCheckConfigurationFile() -> Failed to get the '" << key_word <<
"' keyword !" << endl);
94 key_word =
"denominator threshold";
97 Cerr(
"***** iOptimizerMLEM::ReadAndCheckConfigurationFile() -> Failed to get the '" << key_word <<
"' keyword !" << endl);
101 key_word =
"minimum image update";
104 Cerr(
"***** iOptimizerMLEM::ReadAndCheckConfigurationFile() -> Failed to get the '" << key_word <<
"' keyword !" << endl);
108 key_word =
"maximum image update";
111 Cerr(
"***** iOptimizerMLEM::ReadAndCheckConfigurationFile() -> Failed to get the '" << key_word <<
"' keyword !" << endl);
131 Cerr(
"***** iOptimizerMLEM::ReadAndCheckConfigurationFile() -> Failed to correctly read the list of options !" << endl);
154 Cerr(
"***** iOptimizerMLEM->Initialize() -> Provided initial image value (" <<
m_initialValue <<
") must be strictly positive !" << endl);
183 Cout(
"iOptimizerMLEM::Initialize() -> Use the MLEM optimizer" << endl);
189 else Cerr(
"!!!!! The minimum update value is not set, if using subsets, voxels could be trapped in 0 value causing some negative bias !" << endl);
203 FLTNB a_multiplicativeCorrections,
FLTNB a_additiveCorrections,
218 FLTNB a_multiplicativeCorrections,
FLTNB a_additiveCorrections,
222 if (a_data<0.) a_data = 0.;
225 else *ap_backwardValues = 1.;
236 FLTNB a_sensitivity,
FLTNB* ap_correctionValues )
239 FLTNB image_update_factor = *ap_correctionValues / a_sensitivity;
245 *ap_newImageValue = a_currentImageValue * image_update_factor;
FLTNB m_dataSpaceDenominatorThreshold
bool m_listmodeCompatibility
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_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_quantificationFactor, oProjectionLine *ap_Line)
This function performs the data space operations specific to the optimizer (computes the values to be...
int CheckSpecificParameters()
A private function used to check the parameters settings specific to the child optimizer.
int InitializeSpecific()
This function is used to initialize specific stuff to the child optimizer.
int ReadDataASCIIFile(const string &a_file, const string &a_keyword, T *ap_return, int a_nbElts, bool a_mandatoryFlag)
Look for "a_nbElts" elts in the "a_file" file matching the "a_keyword" string passed as parameter a...
bool m_histogramCompatibility
iOptimizerMLEM()
The constructor of iOptimizerMLEM.
#define KEYWORD_MANDATORY
Declaration of class iOptimizerMLEM.
FLTNB m_maximumImageUpdateFactor
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 ImageSpaceSpecificOperations(FLTNB a_currentImageValue, FLTNB *ap_newImageValue, FLTNB a_sensitivity, FLTNB *ap_correctionValues)
This function perform the image update step specific to the optimizer.
~iOptimizerMLEM()
The destructor of iOptimizerMLEM.
int ReadConfigurationFile(const string &a_configurationFile)
A function used to read options from a configuration file.
FLTNB m_minimumImageUpdateFactor
Declaration of class sOutputManager.
void ShowHelpSpecific()
A function used to show help about the child optimizer.
int ReadStringOption(const string &a_input, T *ap_return, int a_nbElts, const string &sep, const string &a_option)
Parse the 'a_input' string corresponding to the 'a_option' into 'a_nbElts' elements, using the 'sep' separator. The results are returned in the templated 'ap_return' dynamic templated array. Call "ConvertFromString()" to perform the correct conversion depending on the type of the data to convert.