Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkConstraintCheckerInterface.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 mitkConstraintCheckerInterface_h
14 #define mitkConstraintCheckerInterface_h
15 
16 #include <mitkModelBase.h>
17 
18 #include <MitkModelFitExports.h>
19 
20 namespace mitk
21 {
36  {
37  public:
38 
40 
41  typedef double PenaltyValueType;
42  typedef itk::Array<PenaltyValueType> PenaltyArrayType;
43  typedef itk::Array<double> SignalType;
45 
50  virtual PenaltyArrayType GetPenalties(const ParametersType &parameters) const = 0;
51 
55  virtual PenaltyValueType GetPenaltySum(const ParametersType &parameters) const = 0;
56 
58  virtual unsigned int GetNumberOfConstraints() const = 0;
59 
62 
63  protected:
64 
66  {}
67 
69  {}
70 
71  private:
73  void operator=(const ConstraintCheckerInterface&); //purposely not implemented
74  };
75 
76 }
77 
78 #endif
#define MITKMODELFIT_EXPORT
Interface for all constraint checkers used in model fitting.
virtual PenaltyValueType GetPenaltySum(const ParametersType &parameters) const =0
virtual unsigned int GetNumberOfConstraints() const =0
virtual PenaltyValueType GetFailedConstraintValue() const =0
virtual PenaltyArrayType GetPenalties(const ParametersType &parameters) const =0
itk::Array< PenaltyValueType > PenaltyArrayType
ModelTraitsInterface::ParametersType ParametersType
Definition: mitkModelBase.h:67
Find image slices visible on a given plane.