Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkConvertToConcentrationRelativeFunctor.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 mitkConvertToConcentrationRelativeFunctor_h
14
#define mitkConvertToConcentrationRelativeFunctor_h
15
16
#include "
MitkPharmacokineticsExports.h
"
17
18
namespace
mitk
{
19
20
template
<
class
TInputPixel1,
class
TInputPixel2,
class
TOutputpixel>
21
class
MITKPHARMACOKINETICS_EXPORT
ConvertToConcentrationRelativeFunctor
22
{
23
24
public
:
25
ConvertToConcentrationRelativeFunctor
(): m_k(0.0) {} ;
26
~ConvertToConcentrationRelativeFunctor
() {};
27
28
void
initialize
(
double
factor)
29
{
30
31
m_k = factor;
32
}
33
34
bool
operator!=
(
const
ConvertToConcentrationRelativeFunctor
& other)
const
35
{
36
return
!(*
this
== other);
37
}
38
bool
operator==
(
const
ConvertToConcentrationRelativeFunctor
& other)
const
39
{
40
return
(this->m_k == other.m_k);
41
}
42
43
inline
TOutputpixel
operator()
(
const
TInputPixel1 & value,
const
TInputPixel2 & baseline)
44
{
45
TOutputpixel concentration(0);
46
47
if
(baseline != 0)
48
{
49
concentration = this->m_k * (double)(value- baseline)/baseline ;
50
}
51
52
return
concentration;
53
}
54
55
private
:
56
double
m_k;
57
58
};
59
60
}
61
#endif
MITKPHARMACOKINETICS_EXPORT
#define MITKPHARMACOKINETICS_EXPORT
Definition:
MitkPharmacokineticsExports.h:15
mitk::ConvertToConcentrationRelativeFunctor::operator!=
bool operator!=(const ConvertToConcentrationRelativeFunctor &other) const
Definition:
mitkConvertToConcentrationRelativeFunctor.h:34
mitk::ConvertToConcentrationRelativeFunctor::operator==
bool operator==(const ConvertToConcentrationRelativeFunctor &other) const
Definition:
mitkConvertToConcentrationRelativeFunctor.h:38
mitk::ConvertToConcentrationRelativeFunctor
Definition:
mitkConvertToConcentrationRelativeFunctor.h:21
mitk::ConvertToConcentrationRelativeFunctor::operator()
TOutputpixel operator()(const TInputPixel1 &value, const TInputPixel2 &baseline)
Definition:
mitkConvertToConcentrationRelativeFunctor.h:43
mitk::ConvertToConcentrationRelativeFunctor::initialize
void initialize(double factor)
Definition:
mitkConvertToConcentrationRelativeFunctor.h:28
MitkPharmacokineticsExports.h
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::ConvertToConcentrationRelativeFunctor::~ConvertToConcentrationRelativeFunctor
~ConvertToConcentrationRelativeFunctor()
Definition:
mitkConvertToConcentrationRelativeFunctor.h:26
mitk::ConvertToConcentrationRelativeFunctor::ConvertToConcentrationRelativeFunctor
ConvertToConcentrationRelativeFunctor()
Definition:
mitkConvertToConcentrationRelativeFunctor.h:25
src
MITK
Modules
Pharmacokinetics
include
mitkConvertToConcentrationRelativeFunctor.h
Generated on Sat Nov 23 2024 02:13:10 for Medical Imaging Interaction Toolkit by
1.8.17