Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkDummyModelFitFunctor.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkDummyModelFitFunctor_h
14 #define mitkDummyModelFitFunctor_h
15 
16 #include <itkObject.h>
17 
18 #include <mitkModelBase.h>
21 
22 #include <MitkModelFitExports.h>
23 
24 namespace mitk
25 {
26 
38  {
39  public:
44 
45  itkNewMacro(Self);
47 
50 
51  itkSetMacro(DerivativeStepLength, double);
52  itkGetMacro(DerivativeStepLength, double);
53 
55 
56  protected:
57 
60 
62 
64 
65  ParametersType DoModelFit(const SignalType& value, const ModelBase* model,
66  const ModelBase::ParametersType& initialParameters,
67  DebugParameterMapType& debugParameters) const override;
68 
69  OutputPixelArrayType GetCriteria(const ModelBase* model, const ParametersType& parameters,
70  const SignalType& sample) const override;
71 
74  const ModelBase* model) const;
75 
77 
78  private:
79  double m_DerivativeStepLength;
80 
81  };
82 
83 }
84 
85 
86 #endif
#define MITKMODELFIT_EXPORT
A no-op model fit functor that returns initial parameters without optimization.
Superclass::SignalType SignalType
ParameterNamesType DefineDebugParameterNames() const override
Returns names of the debug parameters generated by the functor.
Superclass::InputPixelArrayType InputPixelArrayType
Superclass::OutputPixelArrayType OutputPixelArrayType
Superclass::ParametersType ParametersType
virtual MVModelFitCostFunction::Pointer GenerateCostFunction(const SignalType &value, const ModelBase *model) const
itk::SmartPointer< const Self > ConstPointer
OutputPixelArrayType GetCriteria(const ModelBase *model, const ParametersType &parameters, const SignalType &sample) const override
Internal method called by Compute() to get the final criterion values that drove the fit.
itk::SmartPointer< Self > Pointer
ParametersType DoModelFit(const SignalType &value, const ModelBase *model, const ModelBase::ParametersType &initialParameters, DebugParameterMapType &debugParameters) const override
Internal method that performs the actual model fitting.
ParameterNamesType GetCriterionNames() const override
Returns names of the criteria used to fit the model.
Base class for (dynamic) models.
Definition: mitkModelBase.h:56
ModelTraitsInterface::ParametersType ParametersType
Definition: mitkModelBase.h:67
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.