13 #ifndef mitkSVModelFitCostFunction_h
14 #define mitkSVModelFitCostFunction_h
16 #include <itkSingleValuedCostFunction.h>
78 itkSetMacro(DerivativeStepLength,
double);
79 itkGetConstMacro(DerivativeStepLength,
double);
97 double m_DerivativeStepLength;
#define MITKMODELFIT_EXPORT
Base class for (dynamic) models.
Interface class that is implemented by all cost functions used in model fitting.
itk::Array< double > SignalType
Type representing the observed signal values.
Base class for all model fit cost functions that return a single scalar cost value.
SVModelFitCostFunction Self
mitkOverrideGetConstObjectMacro(Model, ModelBase)
~SVModelFitCostFunction() override
Superclass::DerivativeType DerivativeType
mitkOverrideSetConstObjectMacro(Model, ModelBase)
Superclass::MeasureType MeasureType
virtual MeasureType CalcMeasure(const ParametersType ¶meters, const SignalType &signal) const =0
itk::SingleValuedCostFunction Superclass
unsigned int GetNumberOfParameters(void) const override
Returns the number of model parameters.
MeasureType GetValue(const ParametersType ¶meter) const override
Computes the scalar cost value for the given parameters.
itk::SmartPointer< const Self > ConstPointer
ModelFitCostFunctionInterface::SignalType SignalType
itk::SmartPointer< Self > Pointer
void SetSample(const SignalType &sampleSet) override
Sets the observed sample signal.
void GetDerivative(const ParametersType ¶meters, DerivativeType &derivative) const override
Computes the derivative of the cost function numerically via finite differences.
Find image slices visible on a given plane.