Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
mitkSimpleFunctorBase.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 SIMPLEFUNCTORBASE_H
14 #define SIMPLEFUNCTORBASE_H
15 
16 #include <itkObject.h>
17 
18 #include <mitkVector.h>
19 
20 #include "mitkModelBase.h"
21 
22 #include "MitkModelFitExports.h"
23 
24 namespace mitk
25 {
26 
28  class MITKMODELFIT_EXPORT SimpleFunctorBase: public ::itk::Object
29  {
30  public:
32  typedef itk::Object Superclass;
35 
36  itkTypeMacro(SimpleFunctorBase, itk::Object);
37 
39  typedef std::vector<InputImagePixelType> InputPixelVectorType;
40  typedef std::vector<InputImagePixelType> OutputPixelVectorType;
41 
42  typedef itk::Array<double> GridArrayType;
43 
44  virtual GridArrayType GetGrid() const = 0;
45 
46  virtual OutputPixelVectorType Compute(const InputPixelVectorType & value) const = 0;
47 
52  virtual unsigned int GetNumberOfOutputs() const = 0;
53 
54  protected:
55 
57 
58  ~SimpleFunctorBase() override;
59 
60  };
61 
62 }
63 
64 
65 #endif // SIMPLEFUNCTORBASE_H
itk::SmartPointer< Self > Pointer
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
itk::Array< double > GridArrayType
#define MITKMODELFIT_EXPORT
std::vector< InputImagePixelType > InputPixelVectorType
std::vector< InputImagePixelType > OutputPixelVectorType
itk::SmartPointer< const Self > ConstPointer