Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkSUVFunctorPolicy.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef SUVFUNCTOR_POLICY_H
18 #define SUVFUNCTOR_POLICY_H
19 
20 #include <vector>
21 #include <functional>
22 
23 #include "itkIndex.h"
24 #include "mitkNumericConstants.h"
25 
26 #include "MitkPETExports.h"
27 
28 namespace mitk
29 {
30 
33  {
34  public:
36 
37  typedef itk::Index<3> IndexType;
40  using DecayTimeFunctionType = std::function < double(const IndexType&) >;
41 
43 
45 
46  unsigned int GetNumberOfOutputs() const;
47 
49  void SetDecayTimeFunctor(const DecayTimeFunctionType& functor);
50 
51  void SetInjectedActivity(double a);
52 
53  void SetBodyWeight(double w);
54 
55  void SetHalfLife(double tau);
56 
57  bool operator!=(const SUVbwFunctorPolicy& other) const;
58 
59  bool operator==(const SUVbwFunctorPolicy& other) const;
60 
61  SUVPixelType operator()(const SUVPixelType& value,
62  const IndexType& currentIndex) const;
63 
64  private:
65 
67  double m_InjectedActivity;
69  double m_bodyweight;
71  double m_halfLife;
72 
73  DecayTimeFunctionType m_Functor;
74  };
75 
76 }
77 
78 
79 #endif // LEVENBERGMARQUARDTMODELFITFUNCTOR_H
mitk::SUVbwFunctorPolicy::DecayTimeFunctionType
std::function< double(const IndexType &) > DecayTimeFunctionType
Definition: mitkSUVFunctorPolicy.h:40
mitk::SUVbwFunctorPolicy::SUVPixelType
ScalarType SUVPixelType
Definition: mitkSUVFunctorPolicy.h:35
mitk::SUVbwFunctorPolicy
Definition: mitkSUVFunctorPolicy.h:32
MITKPET_EXPORT
#define MITKPET_EXPORT
Definition: MitkPETExports.h:15
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)
MitkPETExports.h
mitk::SUVbwFunctorPolicy::IndexType
itk::Index< 3 > IndexType
Definition: mitkSUVFunctorPolicy.h:37
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
mitkNumericConstants.h
mitk::ScalarType
double ScalarType
Definition: mitkNumericConstants.h:20