13 #ifndef MODEL_FIT_FUNCTOR_BASE_H 14 #define MODEL_FIT_FUNCTOR_BASE_H 16 #include <itkObject.h> 54 OutputPixelArrayType Compute(
const InputPixelArrayType& value,
const ModelBase* model,
60 unsigned int GetNumberOfOutputs(
const ModelBase* model)
const;
65 ParameterNamesType GetEvaluationParameterNames()
const;
66 void ResetEvaluationParameters();
67 void RegisterEvaluationParameter(
const std::string& parameterName,
73 virtual ParameterNamesType GetCriterionNames()
const = 0 ;
77 ParameterNamesType GetDebugParameterNames()
const;
79 itkBooleanMacro(DebugParameterMaps);
80 itkSetMacro(DebugParameterMaps,
bool);
81 itkGetConstMacro(DebugParameterMaps,
bool);
94 virtual OutputPixelArrayType GetCriteria(
const ModelBase* model,
const ParametersType& parameters,
95 const SignalType& sample)
const = 0;
99 OutputPixelArrayType GetDerivedParameters(
const ModelBase* model,
100 const ParametersType& parameters)
const;
105 OutputPixelArrayType GetEvaluationParameters(
const ModelBase* model,
106 const ParametersType& parameters,
const SignalType& sample)
const;
118 virtual ParametersType DoModelFit(
const SignalType& value,
const ModelBase* model,
120 DebugParameterMapType& debugParameters)
const = 0;
124 virtual ParameterNamesType DefineDebugParameterNames()
const = 0;
128 typedef std::map<std::string, SVModelFitCostFunction::Pointer> CostFunctionMapType;
129 CostFunctionMapType m_CostFunctionMap;
130 bool m_DebugParameterMaps;
131 ::itk::SimpleFastMutexLock m_Mutex;
137 #endif // MODEL_FIT_FUNCTOR_BASE_H
Base class for (dynamic) models. A model can be used to calculate its signal given the discrete time ...
ModelTraitsInterface::ParametersType ParametersType
std::vector< ParameterImagePixelType > InputPixelArrayType
std::map< std::string, ParameterImagePixelType > DebugParameterMapType
DataCollection - Class to facilitate loading/accessing structured data.
ModelBase::ParameterNamesType ParameterNamesType
#define MITKMODELFIT_EXPORT
itk::SmartPointer< const Self > ConstPointer
ModelFitCostFunctionInterface::SignalType SignalType
ModelBase::ParametersType ParametersType
itk::Array< double > SignalType
std::vector< ParameterImagePixelType > OutputPixelArrayType
itk::SmartPointer< Self > Pointer
ModelTraitsInterface::ParameterNamesType ParameterNamesType
ScalarType ParameterImagePixelType