Medical Imaging Interaction Toolkit  2018.4.99-6aa36ba9
Medical Imaging Interaction Toolkit
mitkIndexedValueFunctorPolicy.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 IndexedValueFunctorPolicy_H
14 #define IndexedValueFunctorPolicy_H
15 
16 #include "itkIndex.h"
18 #include "MitkModelFitExports.h"
19 
20 namespace mitk
21 {
22 
24  {
25  public:
28 
31  typedef InputPixelVectorType InputPixelArrayType;
32 
34  typedef std::vector<mitk::ScalarType> OutputPixelArrayType;
35 
37 
39 
40  unsigned int GetNumberOfOutputs() const;
41 
42  void SetFunctor(const FunctorType *functor);
43 
44 
45  bool operator!=(const IndexedValueFunctorPolicy & other) const;
46 
47  bool operator==(const IndexedValueFunctorPolicy & other) const;
48 
49  OutputPixelVectorType operator()(const InputPixelVectorType & value, const IndexType& currentIndex) const;
50 
51  private:
52 
53  FunctorConstPointer m_Functor;
54  };
55 
56 }
57 
58 
59 #endif // IndexedValueFunctorPolicy_H
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
FunctorType::InputPixelVectorType InputPixelVectorType
DataCollection - Class to facilitate loading/accessing structured data.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
#define MITKMODELFIT_EXPORT
FunctorType::OutputPixelVectorType OutputPixelVectorType
IndexedValueFunctorBase::ConstPointer FunctorConstPointer
std::vector< InputImagePixelType > OutputPixelVectorType
std::vector< mitk::ScalarType > OutputPixelArrayType
std::vector< InputImagePixelType > InputPixelVectorType