74 cout <<
"This penalty is only a squeleton template to explain how to add a penalty into CASToR. If you" << endl;
75 cout <<
"want to implement your own penalty, start from here and look at the specific documentation." << endl;
132 if (
m_verbose>=2)
Cout(
"iOptimizerTemplate::InitializeSpecific() -> Use the template optimizer" << endl);
167 FLTNB first_derivative = 0.;
168 return first_derivative;
184 FLTNB second_derivative = 0.;
185 return second_derivative;
int ReadOptionsList(const string &a_optionsList)
A function used to read options from a list of options.
int m_penaltyDerivativesOrder
int ReadConfigurationFile(const string &a_configurationFile)
A function used to read options from a configuration file.
FLTNB ComputePenaltyValue(int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th)
Implementation of the pure virtual vPenalty::ComputePenaltyValue()
void ShowHelpSpecific()
A function used to show help about the child penalty.
int InitializeSpecific()
This function is used to initialize specific stuff to the child penalty.
int CheckSpecificParameters()
A private function used to check the parameters settings specific to the child penalty.
~iPenaltyTemplate()
The destructor of iPenaltyTemplate.
FLTNB ComputeFirstDerivative(int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th)
Implementation of the pure virtual vPenalty::ComputeFirstDerivative()
This class is designed to generically described any penalty applied to MAP algorithms.
Declaration of class iPenaltyTemplate.
FLTNB ComputeSecondDerivative(int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th)
Implementation of the pure virtual vPenalty::ComputeSecondDerivative()
iPenaltyTemplate()
The constructor of iPenaltyTemplate.