Medical Imaging Interaction Toolkit  2024.06.99-c1478648
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 mitkSimpleFunctorBase_h
14 #define mitkSimpleFunctorBase_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
MitkModelFitExports.h
mitk::SimpleFunctorBase::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: mitkSimpleFunctorBase.h:34
mitk::SimpleFunctorBase::OutputPixelVectorType
std::vector< InputImagePixelType > OutputPixelVectorType
Definition: mitkSimpleFunctorBase.h:40
itk::SmartPointer< Self >
mitk::SimpleFunctorBase::GridArrayType
itk::Array< double > GridArrayType
Definition: mitkSimpleFunctorBase.h:42
mitk::SimpleFunctorBase::InputImagePixelType
ScalarType InputImagePixelType
Definition: mitkSimpleFunctorBase.h:36
MITKMODELFIT_EXPORT
#define MITKMODELFIT_EXPORT
Definition: MitkModelFitExports.h:15
mitkModelBase.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::SimpleFunctorBase::InputPixelVectorType
std::vector< InputImagePixelType > InputPixelVectorType
Definition: mitkSimpleFunctorBase.h:39
mitk::SimpleFunctorBase::Superclass
itk::Object Superclass
Definition: mitkSimpleFunctorBase.h:32
mitk::SimpleFunctorBase::Self
SimpleFunctorBase Self
Definition: mitkSimpleFunctorBase.h:31
mitk::SimpleFunctorBase::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkSimpleFunctorBase.h:33
mitkVector.h
mitk::SimpleFunctorBase
Definition: mitkSimpleFunctorBase.h:28
mitk::ScalarType
double ScalarType
Definition: mitkNumericConstants.h:20