Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkNormalizedSumOfSquaredDifferencesFitCostFunction.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 mitkNormalizedSumOfSquaredDifferencesFitCostFunction_h
14 #define mitkNormalizedSumOfSquaredDifferencesFitCostFunction_h
15 
17 
18 #include <MitkModelFitExports.h>
19 
20 namespace mitk
21 {
22 
34 {
35 public:
36 
41 
42  itkNewMacro(Self);
43 
45 
46 protected:
47 
48  MeasureType CalcMeasure(const ParametersType &parameters, const SignalType& signal) const override;
49 
51  {
52  }
53 
55 };
56 
57 }
58 
59 #endif
#define MITKMODELFIT_EXPORT
Interface class that is implemented by all cost functions used in model fitting.
itk::Array< double > SignalType
Type representing the observed signal values.
Single-valued cost function computing the normalized sum of squared differences.
MeasureType CalcMeasure(const ParametersType &parameters, const SignalType &signal) const override
Base class for all model fit cost functions that return a single scalar cost value.
ModelFitCostFunctionInterface::SignalType SignalType
Find image slices visible on a given plane.