Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkConvertToConcentrationAbsoluteFunctor.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 mitkConvertToConcentrationAbsoluteFunctor_h
14 #define mitkConvertToConcentrationAbsoluteFunctor_h
15 
17 
18 namespace mitk {
19 
35  template <class TInputPixel1, class TInputPixel2, class TOutputpixel>
37  {
38 
39  public:
42 
45  void initialize(double factor)
46  {
47 
48  m_k = factor;
49  }
50 
53  {
54  return !(*this == other);
55  }
58  {
59  return (this->m_k == other.m_k);
60  }
61 
66  inline TOutputpixel operator()( const TInputPixel1 & value, const TInputPixel2 & baseline)
67  {
68  TOutputpixel concentration(0);
69 
70  concentration = this->m_k * (double)(value- baseline) ;
71 
72  return concentration;
73  }
74 
75  private:
76  double m_k;
77 
78  };
79 
80 }
81 #endif
#define MITKPHARMACOKINETICS_EXPORT
Binary functor that converts MR signal to concentration using absolute signal enhancement.
bool operator==(const ConvertToConcentrationAbsoluteFunctor &other) const
Equality comparison operator.
void initialize(double factor)
Initializes the functor with the scaling factor.
bool operator!=(const ConvertToConcentrationAbsoluteFunctor &other) const
Inequality comparison operator.
TOutputpixel operator()(const TInputPixel1 &value, const TInputPixel2 &baseline)
Computes concentration from signal and baseline pixel values.
Find image slices visible on a given plane.