Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkIndexedValueFunctorBase.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 IndexedValueFunctorBase_H
14 #define IndexedValueFunctorBase_H
15 
16 #include <itkObject.h>
17 #include <itkIndex.h>
18 #include <mitkVector.h>
19 
20 #include "mitkModelBase.h"
21 
22 #include "MitkModelFitExports.h"
23 
24 namespace mitk
25 {
26 
31  class MITKMODELFIT_EXPORT IndexedValueFunctorBase: public ::itk::Object
32  {
33  public:
35  typedef itk::Object Superclass;
38 
39  itkTypeMacro(IndexedValueFunctorBase, itk::Object);
40 
42  typedef std::vector<InputImagePixelType> InputPixelVectorType;
43  typedef std::vector<InputImagePixelType> OutputPixelVectorType;
44 
45  typedef itk::Array<double> GridArrayType;
47 
48  virtual OutputPixelVectorType Compute(const InputPixelVectorType & value, const IndexType& currentIndex) const = 0;
49 
50  virtual unsigned int GetNumberOfOutputs() const = 0;
51 
52  protected:
53 
55  {};
56 
58  {};
59 
60  };
61 
62 }
63 
64 
65 #endif // IndexedValueFunctorBase_H
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKMODELFIT_EXPORT
std::vector< InputImagePixelType > OutputPixelVectorType
itk::SmartPointer< const Self > ConstPointer
std::vector< InputImagePixelType > InputPixelVectorType