Medical Imaging Interaction Toolkit  2025.12.02
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 mitkIndexedValueFunctorPolicy_h
14 #define mitkIndexedValueFunctorPolicy_h
15 
16 #include "itkIndex.h"
18 #include "MitkModelFitExports.h"
19 
20 namespace mitk
21 {
22 
24  {
25  public:
28 
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
#define MITKMODELFIT_EXPORT
std::vector< InputImagePixelType > OutputPixelVectorType
std::vector< InputImagePixelType > InputPixelVectorType
FunctorType::InputPixelVectorType InputPixelVectorType
unsigned int GetNumberOfOutputs() const
std::vector< mitk::ScalarType > OutputPixelArrayType
bool operator!=(const IndexedValueFunctorPolicy &other) const
bool operator==(const IndexedValueFunctorPolicy &other) const
void SetFunctor(const FunctorType *functor)
OutputPixelVectorType operator()(const InputPixelVectorType &value, const IndexType &currentIndex) const
FunctorType::OutputPixelVectorType OutputPixelVectorType
IndexedValueFunctorBase::ConstPointer FunctorConstPointer
Find image slices visible on a given plane.