Medical Imaging Interaction Toolkit  2026.06.00
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 
33  {
34  public:
37 
41 
43  typedef std::vector<mitk::ScalarType> OutputPixelArrayType;
44 
46 
48 
49  unsigned int GetNumberOfOutputs() const;
50 
51  void SetFunctor(const FunctorType *functor);
52 
53 
54  bool operator!=(const IndexedValueFunctorPolicy & other) const;
55 
56  bool operator==(const IndexedValueFunctorPolicy & other) const;
57 
58  OutputPixelVectorType operator()(const InputPixelVectorType & value, const IndexType& currentIndex) const;
59 
60  private:
61 
62  FunctorConstPointer m_Functor;
63  };
64 
65 }
66 
67 
68 #endif
#define MITKMODELFIT_EXPORT
std::vector< InputImagePixelType > OutputPixelVectorType
std::vector< InputImagePixelType > InputPixelVectorType
Policy class adapting an IndexedValueFunctorBase for use with itkMultiOutputNaryFunctorImageFilter.
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.