Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
Medical Imaging Interaction Toolkit
mitkParameterFitImageGeneratorBase.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 __MITK_PARAMETER_FIT_IMAGE_GENERATOR_BASE_H_
14 #define __MITK_PARAMETER_FIT_IMAGE_GENERATOR_BASE_H_
15 
16 #include <map>
17 
18 #include <mitkImage.h>
19 
20 #include "mitkModelBase.h"
21 
22 #include "MitkModelFitExports.h"
23 
24 namespace mitk
25 {
35  {
36  public:
38 
40 
44 
45  using ParameterImageMapType = std::map<ParameterNameType,Image::Pointer>;
46 
48  virtual double GetProgress() const = 0;
49 
56  void Generate();
57 
59  ParameterImageMapType GetParameterImages();
60 
62  ParameterImageMapType GetDerivedParameterImages();
63 
65  ParameterImageMapType GetCriterionImages();
66 
68  ParameterImageMapType GetEvaluationParameterImages();
69 
71  virtual ParameterNamesType GetParameterNames() const = 0;
72 
74  virtual ParameterNamesType GetDerivedParameterNames() const = 0;
75 
77  virtual ParameterNamesType GetCriterionNames() const = 0;
78 
80  virtual ParameterNamesType GetEvaluationParameterNames() const = 0;
81 
82  protected:
85 
86  virtual bool HasOutdatedResult() const;
89  virtual void CheckValidInputs() const;
90  virtual void DoFitAndGetResults(ParameterImageMapType& parameterImages, ParameterImageMapType& derivedParameterImages, ParameterImageMapType& criterionImages, ParameterImageMapType& evaluationParameterImages) = 0;
91 
92  itk::TimeStamp m_GenerationTimeStamp;
93 
94  private:
95 
96  ParameterImageMapType m_ParameterImageMap;
97  ParameterImageMapType m_DerivedParameterImageMap;
98  ParameterImageMapType m_CriterionImageMap;
99  ParameterImageMapType m_EvaluationParameterImageMap;
100  };
101 
102 }
103 
104 #endif // __MITK_PARAMETER_FIT_IMAGE_GENERATOR_H_
Base class for (dynamic) models. A model can be used to calculate its signal given the discrete time ...
Definition: mitkModelBase.h:47
double ScalarType
ModelBaseType::ParameterNamesType ParameterNamesType
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKMODELFIT_EXPORT
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
std::map< ParameterNameType, Image::Pointer > ParameterImageMapType
ModelTraitsInterface::ParameterNameType ParameterNameType
Definition: mitkModelBase.h:63
ModelTraitsInterface::ParameterNamesType ParameterNamesType
Definition: mitkModelBase.h:64