13 #ifndef mitkLevenbergMarquardtModelFitFunctor_h
14 #define mitkLevenbergMarquardtModelFitFunctor_h
16 #include <itkObject.h>
17 #include <itkLevenbergMarquardtOptimizer.h>
53 itkSetMacro(Epsilon,
double);
54 itkSetMacro(GradientTolerance,
double);
55 itkSetMacro(ValueTolerance,
double);
56 itkSetMacro(DerivativeStepLength,
double);
57 itkSetMacro(Iterations,
unsigned int);
58 itkSetMacro(Scales, ::itk::LevenbergMarquardtOptimizer::ScalesType);
60 itkGetMacro(Epsilon,
double);
61 itkGetMacro(GradientTolerance,
double);
62 itkGetMacro(ValueTolerance,
double);
63 itkGetMacro(DerivativeStepLength,
double);
64 itkGetMacro(Iterations,
unsigned int);
65 itkGetMacro(Scales, ::itk::LevenbergMarquardtOptimizer::ScalesType);
69 itkSetMacro(ActivateFailureThreshold,
bool);
70 itkGetConstMacro(ActivateFailureThreshold,
bool);
98 double m_GradientTolerance;
99 double m_ValueTolerance;
100 unsigned int m_Iterations;
101 double m_DerivativeStepLength;
102 ::itk::LevenbergMarquardtOptimizer::ScalesType m_Scales;
109 bool m_ActivateFailureThreshold;
#define MITKMODELFIT_EXPORT
Base class for constraint checkers used in model fitting.
Model fit functor that uses the Levenberg-Marquardt optimization algorithm.
LevenbergMarquardtModelFitFunctor Self
Superclass::ParametersType ParametersType
ParametersType DoModelFit(const SignalType &value, const ModelBase *model, const ModelBase::ParametersType &initialParameters, DebugParameterMapType &debugParameters) const override
Internal method that performs the actual model fitting.
virtual MVModelFitCostFunction::Pointer GenerateCostFunction(const SignalType &value, const ModelBase *model) const
Superclass::InputPixelArrayType InputPixelArrayType
Superclass::SignalType SignalType
~LevenbergMarquardtModelFitFunctor() override
ModelFitFunctorBase Superclass
ParameterNamesType DefineDebugParameterNames() const override
Returns names of the debug parameters generated by the functor.
LevenbergMarquardtModelFitFunctor()
Superclass::OutputPixelArrayType OutputPixelArrayType
itk::SmartPointer< const Self > ConstPointer
OutputPixelArrayType GetCriteria(const ModelBase *model, const ParametersType ¶meters, const SignalType &sample) const override
Internal method called by Compute() to get the final criterion values that drove the fit.
ParameterNamesType GetCriterionNames() const override
Returns names of the criteria used to fit the model.
itk::SmartPointer< Self > Pointer
Base class for (dynamic) models.
ModelTraitsInterface::ParametersType ParametersType
Abstract base class for functors that perform model fitting.
ModelFitCostFunctionInterface::SignalType SignalType
std::map< std::string, ParameterImagePixelType > DebugParameterMapType
std::vector< ParameterImagePixelType > InputPixelArrayType
ModelBase::ParametersType ParametersType
ModelBase::ParameterNamesType ParameterNamesType
std::vector< ParameterImagePixelType > OutputPixelArrayType
Find image slices visible on a given plane.