Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkT2DecayModel.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 mitkT2DecayModel_h
14 #define mitkT2DecayModel_h
15 
16 #include "mitkModelBase.h"
17 
18 #include "MitkModelFitExports.h"
19 
20 namespace mitk
21 {
22 
29  {
30 
31  public:
32  typedef T2DecayModel Self;
36 
37  typedef Superclass::ParameterNameType ParameterNameType;
38  typedef Superclass::ParametersSizeType ParametersSizeType;
39 
41  itkFactorylessNewMacro(Self);
42  itkCloneMacro(Self);
43 
45  itkTypeMacro(T2DecayModel, ModelBase);
46 
47  std::string GetModelDisplayName() const override;
48 
49  std::string GetModelType() const override;
50 
51  FunctionStringType GetFunctionString() const override;
52 
53  std::string GetXName() const override;
54 
55  ParameterNamesType GetParameterNames() const override;
56 
57  ParametersSizeType GetNumberOfParameters() const override;
58 
59  ParameterNamesType GetStaticParameterNames() const override;
60 
61  ParametersSizeType GetNumberOfStaticParameters() const override;
62 
63  DerivedParametersSizeType GetNumberOfDerivedParameters() const override;
64 
65  DerivedParameterNamesType GetDerivedParameterNames() const override;
66 
67  mitk::ModelBase::DerivedParameterMapType ComputeDerivedParameters(
68  const mitk::ModelBase::ParametersType &parameters) const;
69 
70  protected:
72  ~T2DecayModel() override {};
73 
78  itk::LightObject::Pointer InternalClone() const override;
79 
80  ModelResultType ComputeModelfunction(const ParametersType& parameters) const override;
81 
82  void SetStaticParameter(const ParameterNameType& name,
83  const StaticParameterValuesType& values) override;
84  StaticParameterValuesType GetStaticParameterValue(const ParameterNameType& name) const override;
85 
86  private:
87 
88  //No copy constructor allowed
89  T2DecayModel(const Self& source);
90  void operator=(const Self&); //purposely not implemented
91 
92  };
93 }
94 
95 #endif
mitk::ModelBase::DerivedParameterNamesType
ModelTraitsInterface::DerivedParameterNamesType DerivedParameterNamesType
Definition: mitkModelBase.h:67
mitk::T2DecayModel::ParameterNameType
Superclass::ParameterNameType ParameterNameType
Definition: mitkT2DecayModel.h:37
mitk::ModelBase::ParameterNamesType
ModelTraitsInterface::ParameterNamesType ParameterNamesType
Definition: mitkModelBase.h:64
mitk::T2DecayModel::ParametersSizeType
Superclass::ParametersSizeType ParametersSizeType
Definition: mitkT2DecayModel.h:38
MitkModelFitExports.h
mitk::ModelBase::DerivedParametersSizeType
ModelTraitsInterface::DerivedParametersSizeType DerivedParametersSizeType
Definition: mitkModelBase.h:68
mitk::T2DecayModel::Superclass
mitk::ModelBase Superclass
Definition: mitkT2DecayModel.h:33
mitk::ModelBase::ParametersType
ModelTraitsInterface::ParametersType ParametersType
Definition: mitkModelBase.h:59
itk::SmartPointer< Self >
mitk::ModelBase::DerivedParameterMapType
std::map< ParameterNameType, DerivedParameterValueType > DerivedParameterMapType
Definition: mitkModelBase.h:75
mitk::T2DecayModel::Self
T2DecayModel Self
Definition: mitkT2DecayModel.h:32
MITKMODELFIT_EXPORT
#define MITKMODELFIT_EXPORT
Definition: MitkModelFitExports.h:15
mitkModelBase.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::T2DecayModel::~T2DecayModel
~T2DecayModel() override
Definition: mitkT2DecayModel.h:72
mitk::T2DecayModel::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkT2DecayModel.h:34
mitk::ModelTraitsInterface::FunctionStringType
std::string FunctionStringType
Definition: mitkModelTraitsInterface.h:44
mitk::T2DecayModel
Simple model of the MR T2 signal decay. This corresponds to an exponential decay in the form of: f(t)...
Definition: mitkT2DecayModel.h:28
mitk::T2DecayModel::T2DecayModel
T2DecayModel()
Definition: mitkT2DecayModel.h:71
mitk::T2DecayModel::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: mitkT2DecayModel.h:35
mitk::ModelBase::ParametersSizeType
ModelTraitsInterface::ParametersSizeType ParametersSizeType
Definition: mitkModelBase.h:65
mitk::ModelBase
Base class for (dynamic) models. A model can be used to calculate its signal given the discrete time ...
Definition: mitkModelBase.h:47