8 #include "iPenaltyTemplate.hh" 52 cout <<
"This penalty is only a squeleton template to explain how to add a penalty into CASToR. If you" << endl;
53 cout <<
"want to implement your own penalty, start from here and look at the specific documentation." << endl;
110 if (
m_verbose>=2)
Cout(
"iOptimizerTemplate::InitializeSpecific() -> Use the template optimizer" << endl);
145 FLTNB first_derivative = 0.;
146 return first_derivative;
162 FLTNB second_derivative = 0.;
163 return second_derivative;
int ReadOptionsList(const string &a_optionsList)
int m_penaltyDerivativesOrder
int ReadConfigurationFile(const string &a_configurationFile)
FLTNB ComputePenaltyValue(int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th)
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)
This class is designed to generically described any penalty applied to MAP algorithms.
FLTNB ComputeSecondDerivative(int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th)
iPenaltyTemplate()
The constructor of iPenaltyTemplate.