Medical Imaging Interaction Toolkit  2024.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 
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
MitkModelFitExports.h
mitk::IndexedValueFunctorBase
Definition: mitkIndexedValueFunctorBase.h:31
mitkIndexedValueFunctorBase.h
mitk::IndexedValueFunctorBase::InputPixelVectorType
std::vector< InputImagePixelType > InputPixelVectorType
Definition: mitkIndexedValueFunctorBase.h:42
mitk::IndexedValueFunctorPolicy::OutputPixelVectorType
FunctorType::OutputPixelVectorType OutputPixelVectorType
Definition: mitkIndexedValueFunctorPolicy.h:30
itk::SmartPointer< const Self >
mitk::IndexedValueFunctorPolicy::InputPixelVectorType
FunctorType::InputPixelVectorType InputPixelVectorType
Definition: mitkIndexedValueFunctorPolicy.h:29
mitk::IndexedValueFunctorPolicy::IndexType
FunctorType::IndexType IndexType
Definition: mitkIndexedValueFunctorPolicy.h:33
MITKMODELFIT_EXPORT
#define MITKMODELFIT_EXPORT
Definition: MitkModelFitExports.h:15
mitk::IndexedValueFunctorPolicy::FunctorConstPointer
IndexedValueFunctorBase::ConstPointer FunctorConstPointer
Definition: mitkIndexedValueFunctorPolicy.h:27
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::operator!=
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
mitk::IndexedValueFunctorPolicy
Definition: mitkIndexedValueFunctorPolicy.h:23
mitk::IndexedValueFunctorPolicy::FunctorType
IndexedValueFunctorBase FunctorType
Definition: mitkIndexedValueFunctorPolicy.h:26
mitk::IndexedValueFunctorPolicy::InputPixelArrayType
InputPixelVectorType InputPixelArrayType
Definition: mitkIndexedValueFunctorPolicy.h:31
mitk::IndexedValueFunctorBase::OutputPixelVectorType
std::vector< InputImagePixelType > OutputPixelVectorType
Definition: mitkIndexedValueFunctorBase.h:43
mitk::IndexedValueFunctorBase::IndexType
itk::Index< 3 > IndexType
Definition: mitkIndexedValueFunctorBase.h:46
mitk::IndexedValueFunctorPolicy::OutputPixelArrayType
std::vector< mitk::ScalarType > OutputPixelArrayType
Definition: mitkIndexedValueFunctorPolicy.h:34