Medical Imaging Interaction Toolkit  2018.4.99-b585543d
Medical Imaging Interaction Toolkit
mitkAIFBasedModelParameterizerBase.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 #ifndef __AIFBASED_MODEL_PARAMETERIZER_BASE_H
13 #define __AIFBASED_MODEL_PARAMETERIZER_BASE_H
14 
17 #include "mitkAIFBasedModelBase.h"
18 
19 namespace mitk
20 {
23  template <class TAIFBasedModel>
25  <TAIFBasedModel>
26  {
27  public:
32 
34 
35  typedef typename Superclass::ModelBaseType ModelBaseType;
36  typedef typename Superclass::ModelBasePointer ModelBasePointer;
37 
38  typedef typename Superclass::ModelType ModelType;
39  typedef typename Superclass::ModelPointer ModelPointer;
40 
41  typedef typename Superclass::StaticParameterValueType StaticParameterValueType;
42  typedef typename Superclass::StaticParameterValuesType StaticParameterValuesType;
43  typedef typename Superclass::StaticParameterMapType StaticParameterMapType;
44 
45 
46  typedef typename Superclass::IndexType IndexType;
47 
49  itkGetConstReferenceMacro(AIF, mitk::AIFBasedModelBase::AterialInputFunctionType);
50 
51  itkSetMacro(AIFTimeGrid, mitk::ModelBase::TimeGridType);
52  itkGetConstReferenceMacro(AIFTimeGrid, mitk::ModelBase::TimeGridType);
53 
54 
58  StaticParameterMapType GetGlobalStaticParameters() const override
59  {
60  StaticParameterMapType result;
61  StaticParameterValuesType valuesAIF = mitk::convertArrayToParameter(this->m_AIF);
62  StaticParameterValuesType valuesAIFGrid = mitk::convertArrayToParameter(this->m_AIFTimeGrid);
63 
64  result.insert(std::make_pair(ModelType::NAME_STATIC_PARAMETER_AIF, valuesAIF));
65  result.insert(std::make_pair(ModelType::NAME_STATIC_PARAMETER_AIFTimeGrid, valuesAIFGrid));
66 
67  return result;
68  };
69 
70 
71  protected:
72 
74  {};
75 
77  {};
78 
79 
82 
83 
84  private:
85 
86  //No copy constructor allowed
87  AIFBasedModelParameterizerBase(const Self& source);
88  void operator=(const Self&); //purposely not implemented
89  };
90 
91 }
92 #endif // __AIFBASED_MODEL_PARAMETERIZER_BASE_H
AIFBasedModelParameterizerBase< TAIFBasedModel > Self
ConcreteModelParameterizerBase< TAIFBasedModel > Superclass
#define MITKPHARMACOKINETICS_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
itk::Array< double > TimeGridType
Definition: mitkModelBase.h:62
Superclass::StaticParameterMapType StaticParameterMapType
MITKPHARMACOKINETICS_EXPORT ModelBase::StaticParameterValuesType convertArrayToParameter(itk::Array< double > array)
Superclass::StaticParameterValueType StaticParameterValueType
Superclass::StaticParameterValuesType StaticParameterValuesType
itk::Array< double > AterialInputFunctionType
StaticParameterMapType GetGlobalStaticParameters() const override
mitk::AIFBasedModelBase::AterialInputFunctionType m_AIF