Medical Imaging Interaction Toolkit  2026.06.00
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 
37  class MITKMODELFIT_EXPORT SimpleFunctorBase: public ::itk::Object
38  {
39  public:
41  typedef itk::Object Superclass;
44 
45  itkTypeMacro(SimpleFunctorBase, itk::Object);
46 
48  typedef std::vector<InputImagePixelType> InputPixelVectorType;
49  typedef std::vector<InputImagePixelType> OutputPixelVectorType;
50 
51  typedef itk::Array<double> GridArrayType;
52 
53  virtual GridArrayType GetGrid() const = 0;
54 
55  virtual OutputPixelVectorType Compute(const InputPixelVectorType & value) const = 0;
56 
61  virtual unsigned int GetNumberOfOutputs() const = 0;
62 
63  protected:
64 
66 
67  ~SimpleFunctorBase() override;
68 
69  };
70 
71 }
72 
73 
74 #endif
#define MITKMODELFIT_EXPORT
Abstract base class for simple functors used with itkMultiOutputNaryFunctorImageFilter.
virtual OutputPixelVectorType Compute(const InputPixelVectorType &value) const =0
virtual unsigned int GetNumberOfOutputs() const =0
virtual GridArrayType GetGrid() const =0
std::vector< InputImagePixelType > InputPixelVectorType
std::vector< InputImagePixelType > OutputPixelVectorType
itk::Array< double > GridArrayType
itk::SmartPointer< Self > Pointer
~SimpleFunctorBase() override
itk::SmartPointer< const Self > ConstPointer
Find image slices visible on a given plane.
double ScalarType
Scalar type used throughout MITK for geometric computations.