Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
mitkModelDataGenerationFunctor.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 MITKMODELDATAGENERATIONFUNCTOR_H
14 #define MITKMODELDATAGENERATIONFUNCTOR_H
15 
16 #include "mitkSimpleFunctorBase.h"
17 #include "mitkModelBase.h"
19 
20 #include <MitkModelFitExports.h>
21 
22 namespace mitk
23 {
24 
32  {
33  public:
34 
36  typedef itk::Object Superclass;
39 
40  itkFactorylessNewMacro(Self);
42 
43  typedef std::vector<std::string> ParameterNamesType;
45  typedef itk::Array<ModelBase::ParameterValueType> ModelParametersType;
46 
47  itkSetConstObjectMacro(ModelParameterizer, ModelParameterizerBase);
48  itkGetConstObjectMacro(ModelParameterizer, ModelParameterizerBase);
49 
50  SimpleFunctorBase::OutputPixelVectorType Compute(const InputPixelVectorType & value) const override;
51 
52  unsigned int GetNumberOfOutputs() const override;
53 
54  GridArrayType GetGrid() const override;
55 
56  protected:
58  ~ModelDataGenerationFunctor() override;
59 
60  private:
61  ModelParameterizerBase::ConstPointer m_ModelParameterizer;
62 
63  };
64 }
65 
66 #endif // MITKMODELDATAGENERATIONFUNCTOR_H
DataCollection - Class to facilitate loading/accessing structured data.
itk::Array< double > GridArrayType
#define MITKMODELFIT_EXPORT
itk::Array< ModelBase::ParameterValueType > ModelParametersType
ModelTraitsInterface::ModelResultType ModelResultType
Definition: mitkModelBase.h:55
std::vector< InputImagePixelType > InputPixelVectorType
std::vector< InputImagePixelType > OutputPixelVectorType
itk::SmartPointer< const Self > ConstPointer