Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkModelFitCostFunctionInterface.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 mitkModelFitCostFunctionInterface_h
14 #define mitkModelFitCostFunctionInterface_h
15 
16 #include <mitkModelBase.h>
17 
18 #include <MitkModelFitExports.h>
19 
20 namespace mitk
21 {
33 {
34 public:
35 
37 
39  typedef itk::Array<double> SignalType;
40 
45  virtual void SetSample(const SignalType &sampleSet) = 0;
46 
51  virtual void SetModel(const ModelBase* model) = 0;
52 
57  virtual const ModelBase* GetModel() const = 0;
58 
59 protected:
60 
62  {
63  }
64 
66  {}
67 
68 private:
69 
71  void operator=(const ModelFitCostFunctionInterface&); //purposely not implemented
72 
73 };
74 
75 }
76 
77 #endif
#define MITKMODELFIT_EXPORT
Base class for (dynamic) models.
Definition: mitkModelBase.h:56
Interface class that is implemented by all cost functions used in model fitting.
virtual void SetSample(const SignalType &sampleSet)=0
Sets the observed sample signal that the model will be fitted against.
itk::Array< double > SignalType
Type representing the observed signal values.
virtual void SetModel(const ModelBase *model)=0
Sets the model instance to be used for cost evaluation.
virtual const ModelBase * GetModel() const =0
Returns the model instance currently used for cost evaluation.
Find image slices visible on a given plane.